You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 59 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Script to stop leeching [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Dauthus
Sergeant
Sergeant


Joined: Feb 12, 2003
Posts: 82

Location: USA

PostPosted: Wed Aug 13, 2003 3:40 pm Reply with quoteBack to top

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.


The address is: http://www.bootleghollow.com/modules.php?name=My_eGallery use any image there except the Avatars. I haven't loaded the script there as of yet.

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.

Image

Hmmm....works?

_________________
Image
Vivere disce, cogita mori
Find all posts by DauthusView user's profileSend private messageVisit poster's website
oprime2001
Lieutenant
Lieutenant


Joined: Jul 13, 2003
Posts: 165


PostPosted: Thu Aug 14, 2003 5:17 am Reply with quoteBack to top

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.

Users can both display and reference images from your site on another site. See http://members.lycos.co.uk/sqrlspam/leech.htm

Hope that helps.
Find all posts by oprime2001View user's profileSend private message
Dauthus
Sergeant
Sergeant


Joined: Feb 12, 2003
Posts: 82

Location: USA

PostPosted: Sat Aug 16, 2003 10:02 am Reply with quoteBack to top

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.

_________________
Image
Vivere disce, cogita mori
Find all posts by DauthusView user's profileSend private messageVisit poster's website
Dauthus
Sergeant
Sergeant


Joined: Feb 12, 2003
Posts: 82

Location: USA

PostPosted: Sat Aug 16, 2003 6:17 pm Reply with quoteBack to top

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.

_________________
Image
Vivere disce, cogita mori
Find all posts by DauthusView user's profileSend private messageVisit poster's website
oprime2001
Lieutenant
Lieutenant


Joined: Jul 13, 2003
Posts: 165


PostPosted: Sat Aug 16, 2003 6:46 pm Reply with quoteBack to top

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.
Find all posts by oprime2001View user's profileSend private message
Dauthus
Sergeant
Sergeant


Joined: Feb 12, 2003
Posts: 82

Location: USA

PostPosted: Sat Aug 16, 2003 7:08 pm Reply with quoteBack to top

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.

_________________
Image
Vivere disce, cogita mori
Find all posts by DauthusView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.313 Seconds - 213 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::