Forum Moderators: phranque
Thanks,
Billy
SetEnvIf User-agent ^Front.?Page getout
Deny from getout
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} Front.?Page [NC]
RewriteRule .* - [F]
If you need a jump-start, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].
Jim
You can't use the .htaccess code with iis, but if you are using php (unlikely?) you can use something like this:
if (ereg('(.*(Frontpage)¦(curl)¦(libwww)¦(Wget)¦(wget)¦(ownloader).*)', getenv("HTTP_USER_AGENT"))) {
header("HTTP/1.1 404 Not Found");
exit();
} at the top of your script.
Maybe asp would be more appropriate... :)