View Single Post
Old 01-12-2008, 08:06 AM   PM User | #5
shyam
Senior Coder

 
shyam's Avatar
 
Join Date: Jul 2005
Posts: 1,563
Thanks: 2
Thanked 163 Times in 160 Posts
shyam will become famous soon enough
[QUOTE=lmabee;645457]
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} badsite\.com [NC,OR]
RewriteCond %{HTTP_REFERER} anotherbadsite\.com
RewriteRule .* - [F]

Quote:
Originally Posted by lmabee View Post
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mysite.com/.*$ [NC]
RewriteRule \.(gif|jpg|wmv|avi|mp3|png|mov)$ - [F]

Is the latter going to overwrite the former? Because the coding is pretty much the same thing. SO, it's my understanding that the first bit of code is to make the "bad sites" not be able to access my website, and the second part of the code is to make my site the only own who can access all the media. Is my understanding correct?

IndexIgnore *.gif *.jpg *.wmv *.avi *.mp3 *.png *.mov

Am I correct in saying all my media will not show when someone accesses my directories?
2 points scored 1 for each correct answer
__________________
You never have to change anything you got up in the middle of the night to write. -- Saul Bellow
shyam is offline   Reply With Quote