The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. International Issues
    4. Block access to site from everywhere but north america

    Block access to site from everywhere but north america

    International Issues
    8 3 465
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Atomicx
      Atomicx last edited by

      I have a site that is being attacked very hard by bots, malware, etc. Most of it seems to be originating from Asia and Eastern Europe so I want to block off access to the site to everybody but people in North America. We do not ship out of the country anyways so it really does not need to be seen by people around the world.

      How can I set this up?

      1 Reply Last reply Reply Quote 0
      • Carloseo
        Carloseo last edited by

        Hi Noah,

        Excluding the whole world would be a drastic solution, I know the spam is a bad issue, but you could be missing real traffic even if you are a local website, and even if you don't, you will still be getting spam coming from USA and there is quite some. I recommend you to try other solution a filter based on your hostnames.

        This solution requires a little more time to set up, but it has 3 huge advantages, and you won't have to exclude all the world except USA.

        • You will stop the spam before it hits you, adding a filter for the referral after you see it will stop it, but by the time you apply it you will have already hits of the spam.
        • You will need only ONE filter to stop all ghost spam, instead of creating various sets of filters.
        • Lately, some of the spammers(e.g. free-social-buttons) have been hitting GA accounts with fake direct visits along with the referral, the filter for the referral won’t stop the direct visit, on the other hand. The Valid hostname filter will stop ALL ghost spam in any form whether it shows as a referral, keyword or direct visit.

        This is what I've been using on my accounts for the last moths and I haven't received a single hit of ghost spam. You can find more information of how this filter works and a detailed guide to set it up in this article.

        http://www.ohow.co/what-is-referrer-spam-how-stop-it-guide/

        If you are not convinced and still want to exclude all countries you can follow the same guide for the valid hostname on the article and just change the filter field for Country and put United States in the filter pattern

        Hope it helps,

        Atomicx 1 Reply Last reply Reply Quote 1
        • Atomicx
          Atomicx @Carloseo last edited by

          It is drastic but it's needed/ We do not ship anywhere outside of the continent so there really is no need for traffic from Russia.

          I want an easy solution that I an put in the robots.txt file or something

          Carloseo 1 Reply Last reply Reply Quote 0
          • Carloseo
            Carloseo @Atomicx last edited by

            Then you can follow the last part of my previous answer. Which are the spammers that you are seeing? If it's ghost spam like 4webmasters, free-social-buttons, then the only way to stop them is with filters in google analytics

            Atomicx 1 Reply Last reply Reply Quote 0
            • CandymanKen
              CandymanKen last edited by

              Hi-

              We had a similar situation which got even worse when someone initiated a DDOS attack on our site from out of the country. Since then we have used cloudflare.com and things have been a lot better.

              Good Luck

              Ken

              1 Reply Last reply Reply Quote 0
              • Atomicx
                Atomicx @Carloseo last edited by

                It is people that are duplicating our website, hacking other servers, then uploading our modified malware filled site to these servers.

                I do not care about fake referral traffic. I just need to totally 100% block traffic from Russia. I do not want them to even see the site.

                CandymanKen 1 Reply Last reply Reply Quote 0
                • CandymanKen
                  CandymanKen @Atomicx last edited by

                  That is exactly the problem we had. Cloudflare helped with that as well as blocking  the ips with our old webhost.

                  Also, make sure that you disavow the links from those domains in webmaster tools as well.

                  Good luck

                  Ken

                  Atomicx 1 Reply Last reply Reply Quote 1
                  • Atomicx
                    Atomicx @CandymanKen last edited by

                    I do not see that function in the free version of cloud flare? I am adding the "challenge" rule to hopefully cut back. My client does not have the money for the paid plans.

                    My next step is to go disavow those links.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • Help! Choosing a domain for a European sub-brand when working as a partner in North America
                      gfiorelli1
                      gfiorelli1
                      0
                      3
                      52

                    • Need help with search results for US site for a compnay that has many international sites
                      katemorris
                      katemorris
                      0
                      3
                      68

                    • International site
                      vanGoGh-creative
                      vanGoGh-creative
                      0
                      5
                      88

                    • Which will rank higher: Non-mobile friendly site in native language vs. mobile friendly global site in English?
                      katemorris
                      katemorris
                      0
                      8
                      143

                    • E-commerce : 1 site per country or 1 site per language?
                      Travis_Bailey
                      Travis_Bailey
                      0
                      3
                      134

                    • Multilingual site - Best choice?
                      BlueprintMarketing
                      BlueprintMarketing
                      0
                      5
                      199

                    • International Duplicate Contenton for Ecommerce Site: Is it considered duplicate content if we translate out US English site into French to luanch on .fr domain?
                      Audiohype
                      Audiohype
                      0
                      2
                      400

                    • Different Countries, Same Site
                      RyanKent
                      RyanKent
                      0
                      2
                      793

                    Get started with Moz Pro!

                    Unlock the power of advanced SEO tools and data-driven insights.

                    Start my free trial
                    Products
                    • Moz Pro
                    • Moz Local
                    • Moz API
                    • Moz Data
                    • STAT
                    • Product Updates
                    Moz Solutions
                    • SMB Solutions
                    • Agency Solutions
                    • Enterprise Solutions
                    • Digital Marketers
                    Free SEO Tools
                    • Domain Authority Checker
                    • Link Explorer
                    • Keyword Explorer
                    • Competitive Research
                    • Brand Authority Checker
                    • Local Citation Checker
                    • MozBar Extension
                    • MozCast
                    Resources
                    • Blog
                    • SEO Learning Center
                    • Help Hub
                    • Beginner's Guide to SEO
                    • How-to Guides
                    • Moz Academy
                    • API Docs
                    About Moz
                    • About
                    • Team
                    • Careers
                    • Contact
                    Why Moz
                    • Case Studies
                    • Testimonials
                    Get Involved
                    • Become an Affiliate
                    • MozCon
                    • Webinars
                    • Practical Marketer Series
                    • MozPod
                    Connect with us

                    Contact the Help team

                    Join our newsletter
                    Moz logo
                    © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                    • Accessibility
                    • Terms of Use
                    • Privacy