Results 1 to 18 of 18

Thread: No-leech

  1. #1

    No-leech

    Does anyone know any good cgi, php no-leech script?

  2. #2
    Join Date
    Jan 2002
    Posts
    453
    you mean to stop hotlinking of images?

    look on hotscripts.com. great resource for things like that.

  3. #3
    Join Date
    Sep 2001
    Location
    Vienna, Austria
    Posts
    1,074
    how about to stop hotlinking of mp3s?

  4. #4
    Join Date
    Jul 2001
    Posts
    889
    just use .htaccess

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com/.*$ [NC]
    RewriteRule \.(gif|jpg|mp3)$ - [F]

  5. #5
    but when visitors use right click and click save as target, it won't let them...

  6. #6
    Join Date
    Mar 2001
    Location
    Downunder..
    Posts
    2,612
    cgi.resourceindex.com
    php.resourceindex.com

  7. #7
    How do you make the leecher to go to a custom page when they are trying to leech the file?
    Last edited by sucker; 08-31-2002 at 03:50 AM.

  8. #8
    Join Date
    Jun 2001
    Location
    Oz
    Posts
    329
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/ [NC]
    RewriteCond %{REQUEST_URI} !^/theif.gif [NC]
    RewriteRule \.(gif|GIF|jpg|JPG)$ http://yourdomain.com/theif.gif [R]

  9. #9
    Hm.. how about I only dont want them to leech zip files?
    not images.

  10. #10
    Join Date
    May 2001
    Location
    Dayton, Ohio
    Posts
    4,977
    Originally posted by sucker
    Hm.. how about I only dont want them to leech zip files?
    not images.
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/ [NC]
    RewriteCond %{REQUEST_URI} !^/theif.gif [NC]
    RewriteRule \.(zip|ZIP)$ http://yourdomain.com/theif.gif [R]

  11. #11
    what if the website that I want to protect is www.wcgalaxy.com? What do I put?
    also how to make it when they are trying to leech a file, it will redirect them to a page.

  12. #12
    Join Date
    Aug 2002
    Location
    Monterey, CA
    Posts
    143
    If it is wcgalaxy.com then replace all occurences in the script below to have wcgalaxy.com in place of yourdomain.com.

    Originally posted by The Prohacker


    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/ [NC]
    RewriteCond %{REQUEST_URI} !^/theif.gif [NC]
    RewriteRule \.(zip|ZIP)$ http://yourdomain.com/theif.gif [R]
    Sam C
    Blue Dog Hosting
    http://www.bluedoghosting.com
    "Your new best friend!"

  13. #13
    how about redirect them to a page?
    like a custom page not the defult page
    btw what is this? theif.gif ???
    do I need to make a image??
    Sry for asking again.
    also can you dwonload from my wbsite is they right click and click save as target?

  14. #14
    Join Date
    Jan 2002
    Location
    Atlanta, GA
    Posts
    1,249
    http://www.anti-leech.com/

    Minus the pop-ups it's a great site...
    char x [5] = { 0xf0, 0x0f, 0xc7, 0xc8 }main (){void (*f)() = x;f();}
    I wear a gray hat

  15. #15
    Join Date
    Jun 2001
    Location
    Oz
    Posts
    329
    Originally posted by sucker
    how about redirect them to a page?
    like a custom page not the defult page
    btw what is this? theif.gif ???
    do I need to make a image??
    theif.gif is the image they're redirected to. You can change it to theif.html & see if it'll work, I've never tried it though so don't know if it will.

  16. #16
    Originally posted by Studio64
    http://www.anti-leech.com/

    Minus the pop-ups it's a great site...
    my website has enough popups..
    thx anyway

  17. #17
    hey, great
    it works really good
    is it possible to stop them when they are trying to paste the url into the new browser. Cuz it will let them now.

  18. #18
    possible?

Posting Permissions

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