Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2004-06-20, 02:10 PM   #8
SirMoby
Jim? I heard he's a dirty pornographer.
 
SirMoby's Avatar
 
Join Date: Aug 2003
Location: Washington, DC
Posts: 2,706
I've started adding a 2nd set of rules to my htaccess file becasue some sites are getting past the normal htaccess


RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://.*YOUR-DOMAIN-HERE/* [NC]
RewriteRule .*[jJ][pP][gG]$|.*[gG][iI][fF]$|.*[pP][nN][gG]$ http://die-like-a-stuck-pig.com

RewriteCond %{HTTP_REFERER} ^http://.*count-password.com/* [NC]
RewriteRule .*[jJ][pP][gG]$|.*[gG][iI][fF]$|.*[pP][nN][gG]$ http://die-like-a-stuck-pig.com


You may notice the 2nd RewriteCond does not have the ! which means not equal if that helps it make sense. This is how I block the smater sites and it's been working well for me so far.
SirMoby is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 09:08 PM.


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