QUESTION - Robots.txt Location

1 replies
  • SEO
  • |
Hi guys,

is it possible to disallow traffic from particular location over robots.txt? I have fake traffic from Bellingham, Washington and would like to disallow that location in robots.txt if something like that is possible.

Thanks
#location #question #robots.txt #robotstxt
  • Profile picture of the author nik0
    Banned
    I don't think you can do that in robots.txt but instead you have to use the .htaccess file.

    You can find out the IP range(s) from those unwanted visitors in your Cpanel / bandwith-traffic stats I think. Or you can take it one step further and try to find out the IP ranges from regional ISP's.

    You can add this to your .htaccess file:

    Code:
    order allow,deny
    deny from 123.45.6.7
    deny from 012.34.5.
    allow from all
    As you can see I left the last digit from 012.34.5.xx empty, that means it will block all IP addresses like:

    012.34.5.100
    012.34.5.200
    etc.

    More info here: http://www.javascriptkit.com/howto/htaccess5.shtml

    You can also buy the SpyderRanker plugin where you can load the IP's that need to be blocked.
    {{ DiscussionBoard.errors[8851815].message }}

Trending Topics