I need some .htaccess help please

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dennis69
    Confirmed User
    • Feb 2003
    • 1685

    #1

    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
    HaHaHa
  • newjersey
    Registered User
    • Mar 2003
    • 15

    #2
    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

    Comment

    • Dennis69
      Confirmed User
      • Feb 2003
      • 1685

      #3
      Thanks newjersey... that http://antihotlinking.com/ looks like a sweet deal
      HaHaHa

      Comment

      Working...