Never sure what part of the forum questions like this should go in....
Using the file found here: http://www.countryipblocks.net/count...-allow-format/ I have set up an .htaccess file to only allow USA visitors to my site.
My goal is to stop getting contacts from various up and coming countries offering to sell me unwanted SEO services.
However, shortly after adding the ip ranges to my .htaccess file on my server, I had a hit from pakistan, not one of the allowed IP Ranges.
I have the .htaccess set up like this:
If you are not from the USA, can you successfully see my website here?: http://www.kallenweb.comOptions +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^kallenweb.com
RewriteRule (.*) http://www.kallenweb.com/$1 [R=301,L]
# prevents a directory listing when typing in the directory path in the browser
Options -Indexes
#
# ONLY ALLOWING USA IPS V4 ONLY
# USING A LIST FROM HERE ww w.countryipblocks.net/country-blocks/htaccess-allow-format/
order deny,allow
deny from all
# Country: UNITED STATES
# ISO Code: US
allow from 3.0.0.0/8
allow from 4.0.0.0/8
allow from 6.0.0.0/8
allow from 7.0.0.0/8
allow from 8.0.0.0/8
allow from 9.0.0.0/8
allow from 11.0.0.0/8
etc etc - thousands of lines of allowed US IP ranges
Anyone have any knowledgeable suggestions for my .htaccess file?
Submit Your Article
Forum Rules

Reply With Quote

