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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-12-2005, 08:30 AM   #1
Dennis69
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>
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
Dennis69 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2005, 08:57 AM   #2
newjersey
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
newjersey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2005, 09:02 AM   #3
Dennis69
Confirmed User
 
Join Date: Feb 2003
Location: Dreamland
Posts: 1,685
Thanks newjersey... that http://antihotlinking.com/ looks like a sweet deal
Dennis69 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.