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)
-   -   I need some .htaccess help please (https://gfy.com/showthread.php?t=415468)

Dennis69 01-12-2005 08:30 AM

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>
RewriteEngine on
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

newjersey 01-12-2005 08:57 AM

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

Dennis69 01-12-2005 09:02 AM

Thanks newjersey... that http://antihotlinking.com/ looks like a sweet deal :thumbsup


All times are GMT -7. The time now is 03:30 PM.

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