View Single Post
Old 02-14-2005, 11:50 AM  
nico-t
emperor of my world
 
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
Quote:
Originally Posted by swedguy
Should work...

RewriteEngine On
RewriteCond %{HTTP_REFERER} ^.*fusker.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^.*usefulidiot.*$ [NC]
RewriteRule \.(jpe?g|gif|bmp|png)$ /test/hotlinkimg-d.gif [L]

There should be an OR in all the RewriteCond's except that last one.
this kinda misses the point im making i think? This has nothing to do with working with folders, this is just the code itself...
And the code itself is working, the OR in it doesnt matter... thanks ne way for you input hehe...

anyway, I think its working properly now... let me give u my site structure to show what ive done and what id like:

LEVEL 1 - ROOT FOLDER
htaccess file with only 404 and 403 redirection in it

LEVEL 2 - FOLDER 1, FOLDER 2, FOLDER 3
folder 1: htaccess with anti hotlinking from all sites
folder 2: htaccess with anti hotlinking from all sites
folder 3: htaccess without anti hotlinking, except fusker and usefulidiot

^^^ this seems to work, but that are alot htaccess files...


A question to Project-Shadow: so when i put the anti hotlink in the root again, and just a blank htaccess in 'folder 3', it accepts hotlinking from files in folder 3? But what if i only wanna block fusker in folder 3? Is there another way to do that then what i just did?
nico-t is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote