Results 1 to 5 of 5
  1. #1

    bandwidth protection script?

    not sure if this is posted in the right forum, if it isn't, I apologize

    A while back, I had a friend who ran a big command and conquer fansite.. being the big site he was, people linked directly to his files and "stole" his bandwidth, until he moved servers which had some kinda server side bandwidth protection script which didn't allow anyone to directly link to his files..

    not sure what it was called.

    anyone know of anything like this?


  2. #2
    Join Date
    Apr 2002
    You can do this if your server supports mod_rewrite (assuming its an Apache server). I'm not sure exactly how this works, but there are plenty of websites out there that tell you how. One way to this if you do not have mod_rewrite is to use the following in your .htaccess file:

    SetEnvIfNoCase Referer "" local_ref=1
    <FilesMatch ".(gif|jpg)">
    Order Allow,Deny
    Allow from env=local_ref

    You can change the file types to whatever would be desired. I have had great luck with this script, on our servers that do not have mod_rewrite.

  3. #3
    Join Date
    Jun 2001
    Chicago, IL
    First find out if mod rewrite is installed as said before(this can be done if its your server by httpd -l or just ask the host)

    second search for hotlinking on this forum, pretty simple to implement and works wonders.
    Chicago Electronic Cigarettes: Tobacco Free, Smoke Free. 3 E-Cig Models, 11 flavors, and accessories.

  4. #4
    thanks alot guys
    it is an apache server, and will try it soon

  5. #5
    Join Date
    Jul 2002
    Atlanta, Georgia
    any way you could point that to another file?

Posting Permissions

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