Webmaster Sun Login
Not a member yet? Sign up

How to block traffic from selected country

  • HOME
  • FORUMS
  • BLOGS
  • MARKETPLACE
  • ADVERTISING
  • SPECIAL OFFERS
  • WEB HOSTING
  • QUICK MENU
  • REGISTER HERE - Join us for FREE
Results 1 to 6 of 6
    Stick this thread
  1. #1
    Join Date
    Dec 2016
    Posts
    34
    Thumbs Up/Down
    Received: 4/0
    Given: 1/0
    Thanks
    0
    Thanked 1 Time in 1 Post

    How to block traffic from selected country

    Hi everyone
    How to block traffic from selected country?

  2. #2
    Join Date
    Jun 2013
    Posts
    596
    Thumbs Up/Down
    Received: 90/1
    Given: 361/0
    Thanks
    254
    Thanked 130 Times in 102 Posts
    You can block traffic from selected country by block IP addresses (or IP ranges) from that country.

    Read more on this guide

    http://forumweb.hosting/13837-how-to-block-visitors-from-specific-countries.html

    Hope that helps!

  3. #3
    Join Date
    Dec 2016
    Posts
    34
    Thumbs Up/Down
    Received: 4/0
    Given: 1/0
    Thanks
    0
    Thanked 1 Time in 1 Post
    I think, this is very helpful, especially

    ip2location.com/blockvisitorsbycountry.aspx

    Thank you Alex

  4. #4
    Join Date
    Nov 2016
    Location
    CA
    Posts
    43
    Thumbs Up/Down
    Received: 11/0
    Given: 2/0
    Thanks
    0
    Thanked 4 Times in 3 Posts
    To block traffic from specific country, you can apply filter on geopgraphy.

    For example you want to block russian traffic from Google analytics, follow the below stepes:


    Filter Type: Custom filter > Include

    Filter Field: Country

    Filter Pattern: Russia

  5. #5
    Join Date
    Jun 2017
    Location
    India
    Posts
    10
    Thumbs Up/Down
    Received: 1/0
    Given: 0/0
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello,

    First of install the csf on the serer after that Click on the Firewall Configuration button to open the configuration file and page, scroll down to the Country Code Lists and Settings section.

    ## Use the CC_DENY field to block by country code:
    The CC_DENY field accepts two-letter country codes.
    such as “US” for the United States of America, “GB” for Great Britain, and “DE” for Germany.
    IN this way the specific country code traffic has deny to server.

  6. #6
    Join Date
    Oct 2016
    Location
    Milwaukee, WI
    Posts
    54
    Thumbs Up/Down
    Received: 3/0
    Given: 11/0
    Thanks
    4
    Thanked 2 Times in 2 Posts
    You can do this with Cloudflare or a .htaccess rule.
    Free SSL & WordPress Optimized SSD Fast Hosting by Host Little

Newer Threads

  1. John Ryan
    Make Money on jvzoo
    By John Ryan in forum Make Money Online
    daniel27lt
    Replies: 15 | Views: 1629
    Last post by daniel27lt, 07-17-2017, 01:54 PM
  2. YacaZG
    daniel27lt
    Replies: 9 | Views: 941
    Last post by daniel27lt, 02-20-2017, 07:19 AM
  3. Webynk
    sushmanayan82
    Replies: 17 | Views: 1404
    Last post by sushmanayan82, 01-11-2017, 01:39 PM
  4. YacaZG
    YacaZG
    Replies: 6 | Views: 814
    Last post by YacaZG, 12-06-2016, 06:35 AM
  5. EpicGlobalWeb
    Ron Killian
    Replies: 3 | Views: 653
    Last post by Ron Killian, 01-28-2017, 04:34 AM

Older Threads

  1. John Ryan
    SEO my site
    By John Ryan in forum Search Engine Optimization
    backlinkfy
    Replies: 21 | Views: 2034
    Last post by backlinkfy, 12-22-2016, 11:45 PM
  2. YacaZG
    Audience Network
    By YacaZG in forum Facebook
    YacaZG
    Replies: 4 | Views: 726
    Last post by YacaZG, 12-09-2016, 06:40 AM
  3. YacaZG
    YacaZG
    Replies: 4 | Views: 648
    Last post by YacaZG, 12-03-2016, 06:21 PM
  4. YacaZG
    ngoctam699
    Replies: 9 | Views: 724
    Last post by ngoctam699, 12-04-2016, 03:16 AM

Latest Threads

  1. daikaads
    daikaads
    Replies: 0 | Views: 11
    Last post by daikaads, Today, 12:35 PM
  2. daikaads
    smsmbooster
    Replies: 1 | Views: 14
    Last post by smsmbooster, Today, 11:19 AM
  3. daikaads
    daikaads
    Replies: 0 | Views: 11
    Last post by daikaads, Today, 10:18 AM
  4. DuyLinh
    DuyLinh
    Replies: 0 | Views: 13
    Last post by DuyLinh, Today, 09:28 AM
  5. daikaads
    vishwa
    Replies: 2 | Views: 21
    Last post by vishwa, Today, 08:47 AM

Similar Threads

  1. Harry P
    Do you block spiders?
    By Harry P in forum Web Hosting
    cre8ivemedia
    Replies: 5 | Views: 1097
    Last post by cre8ivemedia, 03-14-2017, 02:54 PM
  2. Tshepo
    hostslim
    Replies: 2 | Views: 910
    Last post by hostslim, 11-19-2015, 11:02 AM
  3. JoanHumphreys
    TheLifeStyleMentor
    Replies: 1 | Views: 816
    Last post by TheLifeStyleMentor, 06-18-2015, 11:48 AM
  4. success druggy
    aliblogger
    Replies: 10 | Views: 2291
    Last post by aliblogger, 12-24-2014, 06:58 PM
  5. vaneetagoswami
    Dopani
    Replies: 1 | Views: 1460
    Last post by Dopani, 12-12-2014, 03:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Internet Marketing Forum

Webmaster Sun is a forum where you’ll find in-depth discussions and resources to help you succeed on the web whether you are new or experienced. You’ll find it all here. With topics ranging from internet marketing, search engine optimization, social networking, make money online, web hosting, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.

Come Hang Out With Us

    Facebook Twitter Webmaster Forum Google+

    Webmaster Sun Logo
Copyright ©2012 - 2017, WebmasterSun.com. All rights reserved. Internet marketing forum for internet marketers, webmasters, web hosting providers, designers and affiliate marketers.

Welcome to Webmaster Sun

The World's Number 1 Webmaster Community, SEO and Marketplace

Log in!

Continue with Facebook
Continue With Email. By signing up you indicate that you have read and agree to the Terms of Service and Privacy Policy.

Sign in Manually

Need an account? Sign up now!