traffic blocking tool announcement

You Can Now Block Country Traffic to Protect your Website

The security of our clients’ websites has always been one of our top priorities and something that we continuously improve on. The latest tool in our website protection arsenal, available for FREE on all hosting plans, is the option to easily block the traffic coming to your site from specific countries. This will not only increase your website security, but can also help website performance by decreasing resource usage when blocking the traffic coming from locations you would rather not get traffic from.

When to consider blocking the traffic from a specific country?

There are different reasons why someone would like to block the traffic from a specific country to their site, but the most common are the following:

  • To Stop Malicious Traffic

If you notice abnormally high traffic from a country that your site is not targeting as audience, or you start receiving too many spam comments from such a country on your blog posts, or you identify any other behavior you consider suspicious, coming from a geographic region that’s not your main user target, it may be a wise idea to block the traffic from this location.

  • To Streamline Your Business

There are various reasons due to which you might not be willing or able to do business with certain countries. Some examples are expensive and/or complicated deliveries; legal requirements that prevent you from providing your service, heavy taxation requirements, etc. Now, if you need to stop access to your site from a specific country due to such reasons, this can be easily done through your Site Tools.

How does SiteGround country block work?

Adding a country to your Blocked list is easy. You need to go to your Site Tools > Security > Blocked Traffic  > Block Country section:

Once a country is blocked, all visitors coming from an IP address that we identify as being located in this country will start seeing our default Country Block HTML page.

The tool allows you to block multiple countries, and also to block certain countries from accessing your main domain, or specific sub-domains. You can review the list of all countries you have denied access to, and/or add or remove countries from it with a click of a button at any time. 

Our new Country blocking option is also fully compatible with our SiteGround CDN and visitors from blocked countries would not be able to access your website pages whether you have our CDN service activated or not.

Access email sent!

Sign Up For
More Awesome Content!

Subscribe to receive our monthly newsletters with the latest helpful content and offers from SiteGround.

Thanks!

Please check your email to confirm your subscription.

Daniel Kanchev

Director Product Development

Daniel is responsible for bringing new products to life at SiteGround. This involves handling all types of tasks and communication across multiple teams. Enthusiastic about technology, user experience, security and performance, you can never be bored hanging around him. Also an occasional conference speaker and travel addict.

Comments ( 71 )

author avatar

Dozza

Oct 06, 2022

This is a welcome addition to our toolset and something i've tried before with htaccess or plugins. Most of our sites are for UK audience, but get plenty of malicious attacks from Asia/Russia

Reply
author avatar

Gergana Zhecheva Siteground Team

Oct 07, 2022

Glad you like it!

Reply
author avatar

Alicat

Jan 20, 2024

It would be better if the message stated that the site does not exist, rather than state that "country is blocked". The viewer could just change his VPN IP address and gain access that way?

Reply
author avatar

Ivan Naidenov Siteground Team

Jan 25, 2024

Hello Alicat and thank you for commenting. The intention of this tool is to be utilized by a wide range of websites. Those include blogs, e-commerce, and business pages to name a few. Showing a message akin to "this site does not exist" may confuse and generate questions directed at the site owner from existing clients who are accessing the site from a different country temporarily as one case example. Still, we understand where you're coming from and we're noting your feedback, appreciate it!

Reply
author avatar

James

Oct 06, 2022

This is fantastic! I've been missing this feature since Cloudflare was disconnected. Is there a way to only allow traffic from certain countries? Is there a limit to the number of countries we can block?

Reply
author avatar

Gergana Zhecheva Siteground Team

Oct 07, 2022

Happy to hear you find the feature useful! For the time being, there is no option for allowing traffic only from certain countries, but we will forward your suggestion to our R&D Team. There is no limit on the number of countries you can add in the Blocked countries list.

Reply
author avatar

Kevin

Nov 03, 2022

I second this suggestion. It would be much easy to select the few countries some sites need to reach rather than having to select so many to restrict.

Reply
author avatar

Mila Kanazirska Siteground Team

Nov 12, 2022

We see your point, and we will further look into this option.

Reply
author avatar

Alex

Jan 14, 2024

Is this being implimented? Time myself doing manual blocks 25+ minutes. Only need to allow 4-7 would take a few minutes.

Reply
author avatar

Ivan Naidenov Siteground Team

Jan 16, 2024

Thank you for the comment, Alex! Suggestions are implemented based on the volume of requests we get from our users, their impact and the overall direction we're taking with the service. Although we're not able to give a specific date when this particular feature request will be ready, we can assure you that your feedback is noted. We appreciate it as this really helps us in prioritising the requests we get.

Reply
author avatar

Philip

Jun 05, 2024

Is there any news on this being implemented?

Reply
author avatar

Lina Asenova Siteground Team

Jun 06, 2024

Hey there, the implementation of this feature is on our roadmap for future updates. Although we cannot provide a specific timeline right now, rest assured that we will make an announcement as soon as the functionality becomes available. In the meantime, your patience is highly appreciated.

Reply
author avatar

Brayan

Nov 09, 2024

Looking forward to have this feature

Reply
author avatar

Kate

Nov 03, 2022

I, too, would like to block traffic from ALL countries except my own.

Reply
author avatar

Flip

Nov 16, 2022

Yes likewise... that would be a great addition.. we only do business with a few countries

Reply
author avatar

Dimitar Dimitrov Siteground Team

Nov 18, 2022

Thank you for the suggestion - we would have it in mind when we add new features to the tool in the future.

Reply
author avatar

Q

Dec 15, 2022

add one more up vote for blocking ALL countries except...

Reply
author avatar

linclinc

Feb 23, 2023

Add another upvote for blocking all countries, unless chosen.

Reply
author avatar

Bruce

Apr 11, 2023

This will be used! Blocking every country, will this have any negative effects like inadvertently blocking wanted countries?

Reply
author avatar

Gabriela Andonova Siteground Team

Apr 13, 2023

Thanks for the comment, Bruce. The option to block every country is not yet available (though it’s already been forwarded to our R&D team). In any case, even if you add a country to your blocked countries list by mistake, it can be reverted from your Site Tools -> Blocked Traffic menu at any time. For more information, check out our tutorial.

Reply
author avatar

Dennis

Oct 06, 2022

This is great! But what if I want to block traffic to all countries except one country? It all has to be done one at a time? And, if I block a country, am I also block Google's bots from those countries? Thanks!

Reply
author avatar

Gergana Zhecheva Siteground Team

Oct 07, 2022

If you want to restrict the traffic from several countries, you'll have to add them one by one in the Blocked Countries list. As for Google crawler bot, its activity should not be affected unless you block the traffic from United States.

Reply
author avatar

mark

Oct 07, 2022

Where to find the "site tools/security/blocked countries" menu spec'd above? Not on my wordpress site and not on siteground .com site

Reply
author avatar

Gergana Zhecheva Siteground Team

Oct 07, 2022

You can find the menu in Site Tools, once you click Security on the left.

Reply
author avatar

Joe

Oct 08, 2022

Are there logs and statistics we can review about the blocked traffic?

Reply
author avatar

Gergana Zhecheva Siteground Team

Oct 17, 2022

Excellent question, Joe! For the time being, there are no stats for the blocked traffic, but the logs are visible in Site Tools > Statistics > Access Logs, once you search with the code "418". Hope that helps!

Reply
author avatar

Jayavigneshwaran

Oct 11, 2022

This feature is very useful! And I want to customize the default Country Block HTML page content or display another page. Is that possible now?

Reply
author avatar

Gergana Zhecheva Siteground Team

Oct 17, 2022

The option for page customization is not included yet.

Reply
author avatar

Jonathan

Oct 12, 2022

Once we block a country, Site Tools does not display the country we've blocked. What's going on?

Reply
author avatar

Gergana Zhecheva Siteground Team

Oct 17, 2022

This is not the usual behaviour of the interface. We are glad to see our Support reps helped you get that resolved. :)

Reply
author avatar

Jonathan

Oct 12, 2022

It's me again :) Please consider adding to your list of countries, the following: TOR and Unknown Countries or Entities (same as Cloudflare does). Details: https://prnt.sc/95nTGW-l8XQM

Reply
author avatar

Gergana Zhecheva Siteground Team

Oct 17, 2022

Thank you for the recommendation! Your suggestion was forwarded to our DevOps Team.

Reply
author avatar

Dennis

Oct 26, 2022

Thanks for this addition. I am glad that I have started using SiteGround as my hosting provider for my sites. You have not disappointed me yet and I am a very grumpy old man!

Reply
author avatar

Gergana Zhecheva Siteground Team

Oct 27, 2022

Happy to hear we are living up to your high standards, Dennis.

Reply
author avatar

Charlie

Oct 19, 2022

Love this idea. Unfortunately I feel it's incomplete. Realistically most sites I deal with do not need ANY other country to access them outside of the USA, really even outside of just a couple states. But I'd be happy with USA or North America. I understand I could go one by one and deny countries but that would be pretty painful to do for several sites.

Reply
author avatar

Gergana Zhecheva Siteground Team

Oct 19, 2022

Thank you for your feedback, Charlie. For now, the Blocked Country menu does not allow the option for blocking multiple countries at once, but your feedback was forwarded to our R&D Team for consideration.

Reply
author avatar

British Guy

Oct 25, 2022

Country block is a fantastic addition. I would like to see bulk upload for country block because we have a business that can only trade and deliver within the UK. It is taking ages to select each country to block. Unless of course you offer allow only the following countries at access website.

Reply
author avatar

Gergana Zhecheva Siteground Team

Oct 26, 2022

We are glad you like the feature, your feedback was forwarded to our Product & Technology Development Team. Our colleagues would consider your suggestion for future releases.

Reply
author avatar

Mark

Nov 12, 2022

PLEASE allow the option to select only ONE country to KEEP and the rest to delete. ALL Local websites do NOT want traffic from other countries or even out of their geographical area. If SG examines their data, I would guess most websites are not global and may not even want traffic outside of their own country. This looks like a great tool for all 50+ websites that do business in the USA ONLY, but I would have to go through EACH website and go through EACH country to block them. SiteGround is a great company and I hope you are able to investigate and resolve this issue. Thank you!

Reply
author avatar

Mila Kanazirska Siteground Team

Nov 14, 2022

We received other requests for similar functionality, and as we always aim to provide features that will be useful to our customers, we are glad to say this is already on our list for future research and development. We do not have an ETA, but it will definitely be something we will look into.

Reply
author avatar

Nicolay

Oct 29, 2022

Perhaps a reverse selection method would be easier for the developer team: ONLY accept visitors from THESE countries?

Reply
author avatar

Gergana Zhecheva Siteground Team

Oct 31, 2022

Thank you for your suggestion, Nikolay, we will look into it.

Reply
author avatar

Estella

Nov 03, 2022

I believe this is more practical.

Reply
author avatar

Jeff

Nov 03, 2022

Yes, a reverse selection would be great. I'd like to block all but the US and Canada. Thank you!

Reply
author avatar

Mila Kanazirska Siteground Team

Nov 12, 2022

Thank you for the feedback. This has been added to our list for further research, and we will have it in mind for future development.

Reply
author avatar

The Body Guard

Nov 03, 2022

brilliant add-on

Reply
author avatar

Frederike

Nov 03, 2022

This is a great addition. I manage over 100 websites on Siteground for my Australian clients. I would love to add a block for all of them for certain countries but it will be painful for me to do this one by one for each website. It would be great to have the ability to select multiple websites and apply the block to all of those at the same time.

Reply
author avatar

Mila Kanazirska Siteground Team

Nov 12, 2022

There is no limit to how many countries you will select, but we see your point, and we will research how we can ease the process.

Reply
author avatar

Kip

Nov 06, 2022

Thanks for this tool, and for all of your great security work! I'm curious what percentage of the time the use of VPNs defeats GeoIP blocking. We have site-resident security software that dropped this feature because it was ineffective against VPNs who spoof their originating IP. Also, it may not happen often, but legitimate traffic could be blocked that appears to come from a "forbidden" country, but really originates in an "allowed" country?

Reply
author avatar

Mila Kanazirska Siteground Team

Nov 14, 2022

Hello Kip, you have an interesting question. We don't have statistics on how many customers use VPNs, and it is not something we can track on our end. It is possible to be caught by such a Geo Block tool in case you use a VPN, but we believe customers understand the risks vs. the advantages of using the tool.

Reply
author avatar

Joseph

Dec 16, 2022

This feature is great! We are an agency with almost 200 websites and most of them provide local service. Please have the option to block traffic from ALL countries except my country.

Reply
author avatar

Ivan Naidenov Siteground Team

Dec 20, 2022

We appreciate the positive feedback and thank you for the suggestion, noted!

Reply
author avatar

Jasmine

Dec 18, 2022

I just found out about this tool. The magic that was missing.

Reply
author avatar

Mark

Jul 24, 2023

So many people commenting that it would be MUCH more useful to block all countries except one! How is it that this update has not been made yet?

Reply
author avatar

Gabriela Andonova Siteground Team

Jul 24, 2023

Hey Mark! We appreciate your feedback and suggestion. Our customers' input is very important to us, and we are committed to constantly improving our services. While we cannot provide an exact ETA, rest assured that your request has been taken into consideration as we strive to enhance our tools. If you have any more ideas or questions, please don't hesitate to share them with us.

Reply
author avatar

DigNap15

Dec 03, 2023

Wow, I just found out about this! It is something that I have wanted for a long time. Most of the users I want are from only a few countries, and I get a lot of spam etc from certain other countries. I will be able to block those. Thanks for this new feature

Reply
author avatar

Gabriela Andonova Siteground Team

Dec 04, 2023

Hey there! You are most welcome! We're happy to hear that our Country Blocking feature is exactly what you've been looking for! It's always rewarding to know that the tools we develop are making a real difference for our users. We understand how important it is to maintain a secure and efficient online presence, and we're glad that this feature will help you manage your traffic more effectively, keeping spam at bay. Thank you for choosing SiteGround!

Reply
author avatar

Roland

Feb 15, 2024

Please have the option to block traffic from ALL countries except my country. It is extremely inefficient to try to click and submit one country at a time to block. I manage many websites and we really need to limit the scam/spam/bot/irrelevant traffic from other countries. Thank you.

Reply
author avatar

Lina Asenova Siteground Team

Feb 16, 2024

Hey there, Roland, thank you for giving us the chance to address this. As it has been requested by other users as well, we've passed the feedback to our research and development team for consideration. Please keep in mind that blocking multiple countries simultaneously is not recommended, as such actions can affect legitimate indexing bots that contribute to your website's visibility. Instead, we recommend a targeted approach: identify the countries responsible for irrelevant or spam traffic and use our tool to block traffic from these specific regions. If you require further assistance or have any other questions, don't hesitate to reach out to us via the Help Center in your Client Area. Our support team will be happy to assist you.

Reply
author avatar

Andre

May 17, 2024

Server level blocking is the best, but the usability of this feature is terrible. Ability to select multiple countries at once should be available. The current functionality is painful enough to simple not use it.

Reply
author avatar

Lina Asenova Siteground Team

May 20, 2024

Hey there, thank you for reaching out and for your feedback. We will make sure to forward your suggestion to the appropriate team for consideration. We are continually working to improve our services and appreciate your input on how we can make our features more user-friendly. If you have any more suggestions or need assistance, please don't hesitate to reach out. Here are the steps to contact us: https://stgrnd.co/contactus.

Reply
author avatar

Marius

May 23, 2024

Hello, Isn't it posible to 'personalise' the 'Blocked Country" page? For example to only show your email adress? (I have blocked some countries for copyright reasons, but I would like to give some people in those countries the opportunity to contact me. Now they think that their government has closed the website..

Reply
author avatar

Lina Asenova Siteground Team

May 28, 2024

Hey there, thank you for reaching out. Currently, the error page displayed when a country is blocked cannot be customized to show specific content such as your email address. However, we will make sure to forward your suggestion to the appropriate team for consideration. If you have any other questions, please don’t hesitate to reach out by following the steps outlined here: https://stgrnd.co/contactus. We are available 24/7 and would be happy to help!

Reply
author avatar

joha

Jun 28, 2024

107.150.100.153 this ip address from china . i have blocked . sending invaild traffic and clicks on my website

Reply
author avatar

Mila Kanazirska Siteground Team

Jun 28, 2024

Thank you for informing us. Blocking the IP address 107.150.100.153 is a wise step to prevent invalid traffic and clicks. We recommend monitoring your website's traffic closely to identify any further suspicious activity. If you need further assistance, please feel free to reach out through your Client Area > Help Center.

Reply
author avatar

alvin

Jul 11, 2024

How to edite the Country Blocked pade? I don`t want to show"Country Blocked", I want it show 404

Reply
author avatar

Lina Asenova Siteground Team

Jul 11, 2024

Thank you for your question, Alvin. Currently, it's not possible to customize the default Country Blocked page or change it to display as a 404 error. We appreciate your feedback and will pass it on to our development team for consideration in future updates. If you have any other questions or concerns, don't hesitate to reach out directly to our support team. They are available 24/7 and will be happy to assist you. Here are the steps to contact us: https://stgrnd.co/contactus

Reply
author avatar

Clarrence

Sep 16, 2024

Would be great if there was also an option to Whitelist a country instead of blocking it. So I can block the others and only let countries under the whitelist to view my site.

Reply
author avatar

Ivan Naidenov Siteground Team

Sep 17, 2024

Thank you for your suggestion, Clarence. We're glad to inform you that this feature has been requested by other users as well and it's currently on our development roadmap. We'll make sure to notify our clients once it becomes available. In the meantime, you can achieve a similar result by using our existing features in Site Tools. You have the ability to block specific countries from accessing your site, which allows you to effectively create a "whitelist" by blocking all countries except those you want to allow access.

Reply
author avatar

Josh

Oct 29, 2024

is there still no way to edit the "Your Country is Blocked" page? It's very direct, often businesses don't want blocked countries to know they have been blocked, but rather to load a 404 page, coming soon page, or just a blank page - not what their is now. If we won't be allowed to customise it ourselves, can you at lease delete the heading saying "Country Blocked"? it is not required and does more harm to the end users than good. Thank you, Josh

Reply
author avatar

Lina Asenova Siteground Team

Oct 30, 2024

Thank you for your feedback, Josh. Unfortunately, it is still not possible to customize this page. We understand your concerns, and have forwarded your suggestion to our development team for consideration in future updates.

Reply

Start discussion