Results 1 to 9 of 9

Thread: Need script to protect wmv video files

  1. #1
    MaleLockerRoom
    Guest

    I Wonder? Need script to protect wmv video files

    Need script to protect .wmv video files


    Using .htaccess and that doesn't stop wmv files from being linked to from other sites or people cutting and paste it into browser.

    seeking cgi/perl that prevents people accessing the wmv files

    thanks


    Jon


  2. #2
    You do realize by 'gay' I mean a man who has sex with other men?
    Join Date
    Oct 2003
    Location
    New Orleans, Louisiana.
    Posts
    21,635
    Well there is this script...

    http://www.antihotlinking.com

    Although i was always under the impression you could use .htacess to stop hotlinking of movies by altering the code.

    More on this here:

    http://www.arsresources.com/articles...s-movies.shtml

    Regards,

    Lee


  3. #3
    MaleLockerRoom
    Guest

    Sad

    If I try to use the following, I get "Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request."


    AuthType Basic
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^http://www.gayteenmale.com/ [NC]
    RewriteCond %{HTTP_REFERER} !^http://gayteenmale.com/ [NC]
    RewriteCond %{HTTP_REFERER} !=""
    RewriteCond %{HTTP_COOKIE} !^.*ssid=valid.*$
    RewriteRule .*\.(gif|GIF|jpg|JPG|mpg|MPG|Mpeg|mpeg|MPEG|rm|RM| wmv|WMV)$
    http://www.mydomain.com/403.htm [R,L]


    Any free scripts available?
    Last edited by MaleLockerRoom; 01-24-2004 at 05:59 PM.


  4. #4
    You do realize by 'gay' I mean a man who has sex with other men?
    Join Date
    Oct 2003
    Location
    New Orleans, Louisiana.
    Posts
    21,635
    You might want to check with your host that they allow wmv protection in .htaccess i know a few of them dont.

    Regards,

    Lee


  5. #5
    virgin by request ;) Chilihost's Avatar
    Join Date
    Oct 2003
    Posts
    4,496
    Lee speaks wisely! You should contact your host and get the proper way to protect your files since sometimes there are specific lines in the htaccess file that you have to use, plus sometimes the server itself is not setup to "AllowOverride". If your host does not help you or does not know how to help you, its time to look around for a quality hosting company that will help you!


    cheers,

    Luke


  6. #6
    MaleLockerRoom
    Guest

    Sad

    No my host says you can't protect movie files using .htaccess

    quote:
    "movie players do not pass back a valid page referrer"

    Waiting for a tech guy who gets back on Monday, he maybe able to help me with setting up a script.


    thanks


    Jon


  7. #7
    Moderator Bec's Avatar
    Join Date
    Nov 2003
    Location
    Ohio
    Posts
    8,419
    You might want to take a look at this program:

    Robot Control Pro

    I'm pretty sure Rene sells one site license for $25.00 and I know it stops .wmv hotlinking. He's also top notch in the customer care dept!


  8. #8
    southernexposure
    Guest
    Options +FollowSymLinks
    Options +SymLinksIfOwnerMatch
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/ [NC]
    RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/ [NC]
    RewriteCond %{HTTP_REFERER} !=""
    RewriteCond %{HTTP_COOKIE} !^.*ssid=valid.*$
    RewriteRule .*\. (gif|GIF|jpg|JPG|mpg|MPG|Mpeg|mpeg|MPEG|rm|RM|wmv|
    WMV)$
    http://www.yourdomain.com/403.htm [R,L]

    Insert this in between your <head></head> tags on the movie page..

    script
    type="text/javascript" language="Javascript">
    var expires = new Date ();
    expires.setTime(expires.getTime() + 24 * 60 * 60 * 1000);
    document.cookie = "ssid=valid; path=/" + "; expires=" + expires.toGMTString();
    script
    Last edited by southernexposure; 01-31-2004 at 11:16 PM.


  9. #9
    southernexposure
    Guest
    script

    type="text/javascript" language="Javascript">
    var expires = new Date ();
    expires.setTime(expires.getTime() + 24 * 60 * 60 * 1000);
    document.cookie = "ssid=valid; path=/" + "; expires=" + expires.toGMTString();


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •