Geoff wrote:
For instance, if you wanted to reduce the amount of government surveliance traffic to your site, could you reject .gov, .mil and .us addresses? Any thoughts would be appreciated.
Something like:
if(ereg("[gov|mil|us]$",gethostbyaddr($REMOTE_ADDR)) {
do the auth stuff;
}
Keep in mind:
1) If anyone is truly trying to be sneaky, their IP is unlikely to resolve at all.
2) This will make php try to resolve every address, which will slow down your script (You can use $REMOTE_HOST if your apache is already resolving for logs)
Have fun,
Ken
PHP Jobs - http://www.kefta.com/job.html