![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jun 2002
Location: Home
Posts: 1,493
|
.Htaccess question?
Is there a way to prevent hotlink to movie files with htaccess?
__________________
Dead |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Sep 2001
Location: Kentucky USA
Posts: 689
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Feb 2002
Location: Seattle
Posts: 1,070
|
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.
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
|
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Feb 2002
Location: Seattle
Posts: 1,070
|
oh great i have another stalker
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Sep 2001
Location: Kentucky USA
Posts: 689
|
a cgi script to redirect to the mpeg url might work also
Brian |
![]() |
![]() ![]() ![]() ![]() ![]() |