Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2006-03-28, 10:34 AM   #3
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
the reason your earlier rules didn't work is that you were blocking the 'host' machine of domain.com from accessing your site. So, had their webserver tried to hit your server, they would have been blocked. This wasn't what you wanted.

In addition, by putting deny from domain.com in your .htaccess, you now forced apache to do a DNS lookup for EVERY request below that .htaccess -- that reverse dns lookup can really slow things down on a busy site.

The Rewrite Rules posted by xxxtreme look at the referrer as sent by the surfer's browser. I would suspect that is what you were really after.

if indeed it is a hitbot and not some form of hotlinking or unwanted traffic, your first rules would be correct, however, based on your test and stated results, I think you wanted to block the referrer, not the server.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:11 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc