![]() |
![]() |
![]() |
||||
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: Feb 2003
Location: Dreamland
Posts: 1,685
|
I need some .htaccess help please
I am currectly using this to protect movies in my members area from hotlinking and bookmarking
Code:
<SCRIPT LANGUAGE="javascript">document.cookie = "id=valid; path=/"</SCRIPT> RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*YOURSITE.com/ [NC] RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*cyberavs.com/ [NC] RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$) RewriteRule /* http://%{HTTP_HOST}/ [R,L] My problem is now I want to be able to use those same movies in another members area on another domain. Doing this with images is easy but I have no idea how to make it work for movies. Anybody know what I need to add to my .htaccess to make this work Thanks |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Registered User
Join Date: Mar 2003
Posts: 15
|
Hey Dennis,
You need to load that cookie from the same domain the movies are on for this to work. Your choices are.. 1. send the visitor to your site first so they can pick up the cookie 2. have the remote site load a frame or iframe with a page from your site with the cookie on it 3. Use http://antihotlinking.com 's application for this.. it's $$ but much more elegant
__________________
xxxwebhosting.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Feb 2003
Location: Dreamland
Posts: 1,685
|
Thanks newjersey... that http://antihotlinking.com/ looks like a sweet deal
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |