The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hi peeps
Whats the info i need to add to my .htaccess file to prevent hotlinking please |
|
#2
|
|||
|
|||
|
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpe?g|png|bmp)$ [F,NC]
To have it show an image. Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com(/)?.*$ [NC]
RewriteRule \.(gif|jpe?g|png|bmp)$ /images/whatever.gif [L,NC]
|
|
#3
|
|||
|
|||
|
Thanks Chris, can i add movies to this should i need to?
e.g. RewriteRule \.(gif|jpe?g|png|bmp|mpg|avi|mpeg)$ /images/whatever.gif [L,NC] |
|
#4
|
|||
|
|||
|
I've actually never tried it with movies, but that should work, yep.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|