Return to CGI Library
Return to htaccess
Sad but true: There often comes a time when the "open" nature of internet becomes a problem. This can be by accident (a badly behaving
robot) or on purpose (someone attacking a banner network). In either case, the first level response is the same: block access with your
.htacccess file :-).
This isn't meant to be a full fledged tutorial, but a quick example of the more common needs.
The most common scenario is where you want everyone except a few visitors to be able to get to your site. Your .htaccess file would
start like this:
order allow,deny
allow from all
Then you follow that with lines to specify the addresses that you want to block:
deny from 192.168.128.14
deny from 192.168.128.
deny from somehost.example.com
deny from .example.com
|