View Full Version : htaccess question to stop hitbot
BobbyR
08-16-2001, 11:37 AM
My server is getting hit hard by someone using a hitbot. My logs reveal the referring domain. I want to deny access to my site from this domain. I am not interested in redirecting the hits, just denying access to my server. Will this work if I had this code to my .htaccess file?
<Limit GET>
deny from .banneddomain.com
allow from all
</Limit>
Energy Hosting
08-16-2001, 12:52 PM
No, that will not work.
Try searching this bbs, remember someone posting a solution for a similar problem.
Ludedude
08-17-2001, 10:53 AM
No, that won't work because the code you posted will only deny access if the person is coming from within that domain, not referred by it. There's a big difference.
BobbyR
08-17-2001, 11:47 AM
ok thanks Ludedude
what do you suggest to use to deny access to a person referred by a domain?
andy2000
08-17-2001, 02:57 PM
try this
AddType text/x-server-parsed-html .html
Options FollowSymLinks Indexes ExecCGI Includes
RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} banneddomain1.com [OR]
RewriteCond %{HTTP_REFERER} banneddomain2.com
RewriteRule /* http://www.sendnoplace.com
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.