GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   code help needed (https://gfy.com/showthread.php?t=313498)

DVTimes 06-16-2004 12:18 PM

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?

DVTimes 06-16-2004 12:38 PM

bump :thumbsup

skinnay 06-16-2004 12:41 PM

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

DVTimes 06-16-2004 01:17 PM

Quote:

Originally posted by skinnay
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
cool

I will test it.
http://www.dvtimes.com/files/123.jpg

DVTimes 06-16-2004 01:24 PM

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

dimonka 06-16-2004 02:04 PM

I see you already got your assistance... :)

kaktusan 06-16-2004 11:52 PM

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 :)

fris 06-16-2004 11:55 PM

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

DVTimes 06-17-2004 12:43 AM

cool

.


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