Greenguy's Board


Go Back   Greenguy's Board > Link Lists & Getting Listed
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-01-14, 12:19 AM   #1
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
Code:
###HOTLINKING BEGIN
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://thissite.com [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thissite.com [NC]
RewriteCond %{HTTP_REFERER} !^http://othersite.com [NC]
RewriteCond %{HTTP_REFERER} !^http://www.othersite.com [NC]
!^http://1.2.345.678.9[NC]
RewriteRule .*\.([Jj][Pp][Gg]|[Gg][Ii][Ff])$ http://www.someplacetoredirect404.c...EMOVE/NO_NO.gif  [R,L]
###HOTLINKING END
First, you don't need the .*$ at the end, that requires an end of line match anchor which just wastes regexp processing. Even with your existing rules, your first rule would have also matched your third rule with the :80.*

Fewer rules = better, however, there are certain regexp rules that take more processing than chained rules.

anchored matches are always better
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Reply


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 03:19 AM.


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