Results 1 to 18 of 18
Thread: No-leech
-
08-30-2002, 05:43 AM #1Disabled
- Join Date
- Jul 2002
- Posts
- 14
No-leech
Does anyone know any good cgi, php no-leech script?
-
08-30-2002, 07:22 AM #2Web Hosting Evangelist
- Join Date
- Jan 2002
- Posts
- 453
you mean to stop hotlinking of images?
look on hotscripts.com. great resource for things like that.
-
08-30-2002, 08:32 AM #3Web Hosting Master
- Join Date
- Sep 2001
- Location
- Vienna, Austria
- Posts
- 1,074
how about to stop hotlinking of mp3s?
-
08-30-2002, 01:52 PM #4Web Hosting Master
- 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]
-
08-30-2002, 03:41 PM #5Disabled
- Join Date
- Jul 2002
- Posts
- 14
but when visitors use right click and click save as target, it won't let them...
-
08-30-2002, 04:59 PM #6Web Hosting Master
- Join Date
- Mar 2001
- Location
- Downunder..
- Posts
- 2,612
cgi.resourceindex.com
php.resourceindex.com
-
08-31-2002, 03:28 AM #7Disabled
- Join Date
- Jul 2002
- Posts
- 14
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.
-
08-31-2002, 05:02 AM #8Web Hosting Guru
- 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]
-
08-31-2002, 03:38 PM #9Disabled
- Join Date
- Jul 2002
- Posts
- 14
Hm.. how about I only dont want them to leech zip files?
not images.
-
08-31-2002, 03:44 PM #10Web Hosting Master
- 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.
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]
-
08-31-2002, 06:50 PM #11Disabled
- Join Date
- Jul 2002
- Posts
- 14
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.
-
08-31-2002, 06:55 PM #12WHT Addict
- 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!"
-
08-31-2002, 07:16 PM #13Disabled
- Join Date
- Jul 2002
- Posts
- 14
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?
-
08-31-2002, 07:24 PM #14Web Hosting Master
- 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
-
08-31-2002, 07:27 PM #15Web Hosting Guru
- 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??
-
08-31-2002, 07:31 PM #16Disabled
- Join Date
- Jul 2002
- Posts
- 14
thx anyway
-
08-31-2002, 07:37 PM #17Disabled
- Join Date
- Jul 2002
- Posts
- 14
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.
-
09-02-2002, 02:08 AM #18Disabled
- Join Date
- Jul 2002
- Posts
- 14
possible?