I have installed a small script on my site to stop leeching and was wondering if anyone would be willing to try and leech one of the images on my site to see if the thing works.
Right now it is set up for jpg and gif extensions, but if it works, I am going to try and see if I can get it set up for zip and tar.gz files. The script shouldn't stop the right click and save, or the downloading directly from the site, but it should not allow anyone to leech from the site.
Let me know, or maybe show me how to leech from my own site. Thanks in advance.
I am actually going to try and link an image to this site, to see if it works too.
Hmmm....works?
_________________ Vivere disce, cogita mori
oprime2001 Lieutenant
Joined: Jul 13, 2003
Posts: 165
Posted:
Thu Aug 14, 2003 5:17 am
Dauthus:
I setup a sample webpage that references and loads an image from your website. The sample webpage also has a link to download the image from your website.
I take it you viewed the image before you created the page. If you did this, the image may be loading from the memory, and not from the site. I had to delete files under tools, internet options of IE before I could get an actual complete test.
I can't get anything to display, and the link gives me Forbidden
You don't have permission to access /modules/My_eGallery/gallery/comedy/T-Shirts7.jpg on this server.
You say you can display and reference the images? Can everyone else see this, or am I the only one who can't?
Thanks oprime2001 for the help.
_________________ Vivere disce, cogita mori
Dauthus Sergeant
Joined: Feb 12, 2003
Posts: 82
Location: USA
Posted:
Sat Aug 16, 2003 6:17 pm
Here's what I am using. It seems to work for me. I created .htaccess files in each directory I wanted to protect. I ain't sure if it was needed, but what the heck. It doesn't take too much room.
Put the contents of this file into your .htaccess file (should be in your webroot directory, create one if you don't have one) and then tweak to suit (add/remove any file extensions to protect, and change the first line to match your site - consult the PHP documentation for more on how Regular Expressions work). If your ISP/webhost doesn't let you change Apache settings for your site with a .htaccess file, this will not work and cannot be made to work. It doesn't work on Geocities.
Code:
SetEnvIfNoCase Referer "^http://[0-9a-z]*\.?yourdomain\.com/" local_ref=1
SetEnvIfNoCase Referer "^$" local_ref=1
<FilesMatch "\.(gif|jpg|png|pdf|swf)">
Order Allow,Deny
Allow from env=local_ref
</FilesMatch>
I honestly don't remember where this came from, but if anyone does, be sure and give them the credit they deserve.
_________________ Vivere disce, cogita mori
oprime2001 Lieutenant
Joined: Jul 13, 2003
Posts: 165
Posted:
Sat Aug 16, 2003 6:46 pm
But I think that if you DISABLE javascript on your browser, you can see the image. If javascript is ENABLED, you get the message about the RIAA .... leeching etc.
However, I cannot confirm this now because of this 500 internal Server Error message that I am encountering. I will try again later.
Dauthus Sergeant
Joined: Feb 12, 2003
Posts: 82
Location: USA
Posted:
Sat Aug 16, 2003 7:08 pm
Hmmm. I will have to look into that. I don't know why javascript would have anything to do with the .htaccess file, but then again I never said I was good at this stuff.
Thanks again for all your help. Guess I will keep working on it.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum