Forum Moderators: coopster & phranque

Message Too Old, No Replies

Block To Specific Country

How Can I Do This

         

wharsono

10:33 am on Jan 23, 2003 (gmt 0)

10+ Year Member



I Have a NON commercial site, there are more than 4000 Pages, I want to block some country, which try to spam and waisting our bandwidth for nothing, everyday and everyday, but i dont want to search engine robots blocked.

I try to use this script.

AuthName "Specific Country Access Blocked ...!"
AuthType Basic
<Limit GET POST>
order allow,deny
allow from all
deny from 64.XX
deny from 80.XX
deny from 213.XXX
</Limit>

RewriteEngine on
RewriteBase /
RewriteRule!\.(php¦htm¦cgi)$ /opini.php?URLB=%{REQUEST_URI}

Is That Script is Correct?, and lets robots to crawl my site.

ThX

PS : How Bad is My English, and May Be Is Wrong Post Category

lazerzubb

2:52 pm on Jan 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Haven't done it, and you never know what IP's Google and other search engines will use for their bots in the future.

I found these threads which might help
Google search for Block ip's [google.com]