![]() |
code help needed
How simple is it to set up hotlink prevention?
I am only wanting to add the code to one page but not bothered if the rest of the site has some sort of hotlink stopper on it. Is it a simple code or do I need to get hold of a fancy script? |
bump :thumbsup
|
assuming you're using apache, you just need to install mod_rewrite and use .htaccess to do the job. just look on google for an example
|
Quote:
I will test it. http://www.dvtimes.com/files/123.jpg |
In case others want the code, this is it:
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?dvtimes.com/.*$ [NC] RewriteRule \.(gif|jpg)$ http://www.dvtimes.com/nasty.gif [R,L] Then save as .htaccess Chance dvtimes to your site name, and add your own pic, save as nasty.gif |
I see you already got your assistance... :)
|
Yea these .htaccess things work...but I suppose they work only for images... how about movies? I think you must have something special for the movies....
If you need more help request it :) We will help :) |
movies is different, because it sends different referals everytime. can send a blank refer, can send a WMP refer. can send a website refer. i will give some code.
http://www.videodump.com/htaccess.txt that allows linking locally so files have to be loaded from your server only |
|
All times are GMT -7. The time now is 07:31 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123