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)
-   -   .Htaccess question? (https://gfy.com/showthread.php?t=71527)

minimouse 08-09-2002 02:23 PM

.Htaccess question?
 
Is there a way to prevent hotlink to movie files with htaccess?

Nbritte 08-09-2002 02:57 PM

RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://*www.yoursite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://*yoursite.com/.*$ [NC]
RewriteRule .*[Mm][Pp][Gg]$|.*[Mm][Pp][Ee][Gg]$ http://www.sendthemhere.com

might work

Brian

salsbury 08-09-2002 03:32 PM

not really with .htaccess - movie players don't usually use referrers.

your best bet is to create a system that generates one-time-use/one-IP URLs, or maybe time-limited URLs, then "protect" that generator.

vending_machine 08-09-2002 03:38 PM

I've thought about this before, and the best solution I came up with is something like the following:

Have an html page which is protected via .htaccess, that html page has an ssi include, the include file and the movie file(s) change names every once in a while (well, the contents of the include file changes, not its name).

(Hi Salsbury :) )

salsbury 08-09-2002 03:40 PM

oh great i have another stalker

vending_machine 08-09-2002 03:43 PM

Quote:

Originally posted by salsbury
oh great i have another stalker
I know where you work, muhahahahaha

Nbritte 08-09-2002 03:58 PM

a cgi script to redirect to the mpeg url might work also


Brian


All times are GMT -7. The time now is 03:36 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123