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, 57 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Leeching files and Stealing Bandwidth please help [ ]
 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
garofwar
Nuke Soldier
Nuke Soldier


Joined: Mar 16, 2003
Posts: 12


PostPosted: Mon May 26, 2003 9:14 pm Reply with quoteBack to top

Is they a file i can add to stop this ppl form Leeching my files and Stealing my Bandwidth
Find all posts by garofwarView user's profileSend private message
sixonetonoffun
Major
Major


Joined: Jan 13, 2003
Posts: 892


PostPosted: Mon May 26, 2003 10:17 pm Reply with quoteBack to top

There is a phpnuke downloads hack that adds a sec code to the downloads module for 6.0 I can't remember who did it so can't point ya to the link for it. Its a fairly good way to prevent leeching. yet allow non registered folks download.

_________________
www.netflake.com
www.glowoptics.com
Find all posts by sixonetonoffunView user's profileSend private message
luchtzak
Support Mod
Support Mod


Joined: Mar 19, 2003
Posts: 308


PostPosted: Wed May 28, 2003 5:56 am Reply with quoteBack to top

garofwar wrote:
Is they a file i can add to stop this ppl form Leeching my files and Stealing my Bandwidth


Put it on 'Members only'

ciao,

luchtzak

_________________
Luchtzak Aviation - Snookerforum Belgium
Find all posts by luchtzakView user's profileSend private messageVisit poster's website
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Wed May 28, 2003 7:07 am Reply with quoteBack to top

This is what we use.
http://www.andrewkimball.com/products/scripts/leecher.php

Works great.

Alos, if you KNOW who is leeching your files, you can use .htaccess file to somewhat protect them. But you would need to know the web address of the culprit.

mikem

_________________
Getting Started | My Projects
Find all posts by mikemView user's profileSend private message
foxyfemfem
Support Staff
Support Staff


Joined: Jan 23, 2003
Posts: 668

Location: USA

PostPosted: Wed May 28, 2003 7:21 am Reply with quoteBack to top

Hello,

Add one of the following codes to your .htaccess file.
Code:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com [NC]
RewriteCond %{HTTP_REFERER} !^http://yoursite.com [NC]
RewriteRule [^/]+.(gif|jpg)$ - [F]

If you have another domain you can insert the following underneath line 3:
Code:

RewriteCond %{HTTP_REFERER} !^http://www.yoursite2.com [NC]
RewriteCond %{HTTP_REFERER} !^http://yoursite2.com [NC]

If you wish to return an image, stating they're not permitted to access your images, modify this line:
Code:
RewriteRule [^/]+.(gif|jpg)$ - [F]

to these lines:
Code:

RewriteCond %{REQUEST_URI} !^/restricted_image.jpg
RewriteRule +.(gif|jpg|GIF|JPG)$ http://www.yoursite.com/hotlink.jpg

You do not need to capitalized alternates unless you have them on your server.

You can use most extensions, such as:

RewriteRule +.(gif|jpg|mp3|htm|html|php)$ - [F]

For sub domains
Code:

RewriteCond %{HTTP_REFERER} !^http://sub.yoursite.com/ [NC]
RewriteRule [^/]+.(gif|jpg)$ - [F]

If you have many subdomains, you can use this code:
Code:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+)?yoursite.com/
RewriteRule +.(gif|jpg)$ - [F]

_________________
If you shoot for the moon and miss, you'll still be amongst the stars.
Find all posts by foxyfemfemView user's profileSend private message
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Wed May 28, 2003 7:57 am Reply with quoteBack to top

Yeah that method works for the htaccess file. But it doesn't seem to work with zip extensions. Mostly it only works with image files. And if you change the Rewrite Rule to guard php and html files, then no one will be able to access any file with a php extension...umm like your Main page. Or won't it?

Here's the method in the .htaccess that can be used to BLOC a particular site that is leeching your files.

Code:
ErrorDocument 403 SetEnvIfNoCase http://www.YourSite.com/leech.html

SetEnvIfNoCase Referer "^http://www.LeechJerks.com/" BadReferrer

order deny,allow
deny from env=BadReferrer


What that does is block a particular site you specify with
Code:
SetEnvIfNoCase Referer "^http://www.LeechJerks.com/" BadReferrer

You can add more of those lines with more sites.
The page they will get will be a 403 error page so you can redirtect them to an html file on your server telling them they are leeching.

Code:
http://www.YourSite.com/leech.html


Here is what our leech page looks like. You can get really rude if you want to.
http://www.nukemods.com/images/leech/leech.html

We don't use the .htaccess file anymroe since we found that program I piosted above.

mikem

_________________
Getting Started | My Projects
Find all posts by mikemView user's profileSend private message
Tank863
Lieutenant
Lieutenant


Joined: Feb 21, 2003
Posts: 195

Location: Philadelphia

PostPosted: Thu May 29, 2003 11:12 am Reply with quoteBack to top

mikem,

like the leech page.. made me feel Embarassed just looking at it.. lol

Thnaks for all the input here.,..
although I don't have any leechers yet.. doesn't mean that I can't implement this Wink

Tank863
Find all posts by Tank863View user's profileSend private messageVisit poster's websiteICQ Number
allevon
Site Mod
Site Mod


Joined: Nov 22, 2002
Posts: 716

Location: New Jersey

PostPosted: Thu May 29, 2003 2:02 pm Reply with quoteBack to top

Good stuff People.

I never heard about that program before. Thanks for the tip, you saved me some work.

_________________
"Give Me Liberty, Or Give Hackerz Death!!!"
Patrick Henry Revised for 21st century.
Let The Bodies Hit The Floor! Let The Bodies Hit The Floor!
Find all posts by allevonView user's profileSend private messageVisit poster's website
intel352
Lieutenant
Lieutenant


Joined: Mar 11, 2003
Posts: 180


PostPosted: Sun Jun 01, 2003 12:05 am Reply with quoteBack to top

how about this fellas...

how could i use .htaccess/httpd.conf to give full access to the files from http://www.csmapcentral.com, but require a username/password for ne1 else?? i just found out how to use basic http auth, but i dunno how i could allow *only* csmapcentral full access, and require login for everyone else...

i need it setup that way, so that the downloads still work for a remote installer that i created, and the installer software has support built in for basic http auth, which is why i'd like to use the httpd.conf method

_________________
Image
CSMapCentral || NukeBBMods
Find all posts by intel352View user's profileSend private messageVisit poster's websiteICQ Number
checksum
Sergeant
Sergeant


Joined: Apr 30, 2003
Posts: 122


PostPosted: Mon Oct 13, 2003 5:37 am Reply with quoteBack to top

foxyfemfem wrote:
Hello,

Add one of the following codes to your .htaccess file.
Code:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com [NC]
RewriteCond %{HTTP_REFERER} !^http://yoursite.com [NC]
RewriteRule [^/]+.(gif|jpg)$ - [F]

If you have another domain you can insert the following underneath line 3:
Code:

RewriteCond %{HTTP_REFERER} !^http://www.yoursite2.com [NC]
RewriteCond %{HTTP_REFERER} !^http://yoursite2.com [NC]

If you wish to return an image, stating they're not permitted to access your images, modify this line:
Code:
RewriteRule [^/]+.(gif|jpg)$ - [F]

to these lines:
Code:

RewriteCond %{REQUEST_URI} !^/restricted_image.jpg
RewriteRule +.(gif|jpg|GIF|JPG)$ http://www.yoursite.com/hotlink.jpg

You do not need to capitalized alternates unless you have them on your server.

You can use most extensions, such as:

RewriteRule +.(gif|jpg|mp3|htm|html|php)$ - [F]

For sub domains
Code:

RewriteCond %{HTTP_REFERER} !^http://sub.yoursite.com/ [NC]
RewriteRule [^/]+.(gif|jpg)$ - [F]

If you have many subdomains, you can use this code:
Code:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+)?yoursite.com/
RewriteRule +.(gif|jpg)$ - [F]


I tried this on my site:

Code:
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com/modules/Gallery/gallery/OtherVideo/ [NC]
RewriteRule [^/]+.(wmv|rm|swf)$ - [F]


To protect my media files in the directory /OtherVideo from being hotlinked, but now the files won't even play from my own site.
Any ideas how I can make it work? So that it plays only from my site.
Find all posts by checksumView user's profileSend private message
brokenpillar
Nuke Cadet
Nuke Cadet


Joined: Dec 10, 2003
Posts: 7


PostPosted: Tue Jan 27, 2004 12:29 pm Reply with quoteBack to top

i don't believe you need the whole path to OtherVideo at the end of yours....

try it as
Code:
RewriteCond %{HTTP_REFERER} !^http://www.mysite.com[NC]
RewriteRule [^/]+.(wmv|rm|swf)$ - [F]

_________________
a hardcore/metal music community. songs, not scenes.
Find all posts by brokenpillarView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
di11rod
Nuke Soldier
Nuke Soldier


Joined: Jan 14, 2004
Posts: 26


PostPosted: Thu Jan 29, 2004 2:23 am Reply with quoteBack to top

I think the solution presented by FoxyFemFem is the MOST elegant solution. The regular expression matching all capitalizations of JPEG|jpg|JPG|jpeg|gif|GIF|png|PNG should be sufficient to block the majority of your bandwidth thieves and allow for natural variations in your file extensions.

Hey, don't fool with adding php or html in that regular expression. There's no way people are going to steal your bandwidth by linking to html or php files. If it's your goal to prevent people framing your site inside of theirs, then you just need to add a header to all your php files that checks to see if it's being framed..

I think you're gonna get the best performance if you put this in the .htaccess file of the base directory that stores your image files. If you put this in httpd.conf, then your web server is gonna have to apply the regular expression check against every dang file served from anywhere on your site.

Hope this helps to back up what FoxyFemFem said.

di11rod
Find all posts by di11rodView user's profileSend private message
ryan1918
Sergeant
Sergeant


Joined: Aug 16, 2003
Posts: 144


PostPosted: Sun Feb 08, 2004 10:05 pm Reply with quoteBack to top

if you have CPanel turn on hotlinking
Find all posts by ryan1918View user's profileSend private messageVisit poster's website
beltwaymike
Nuke Cadet
Nuke Cadet


Joined: Apr 09, 2004
Posts: 1


PostPosted: Fri Apr 09, 2004 9:03 am Reply with quoteBack to top

A cluster of hacker web sites is sending millions of hits to a nonexistent image on our server.

The incoming hits and resulting error messages have consumed all our bandwidth.

How do we deflect (block) the incoming requests WITHOUT sending a bandwidth-eating error message?

Any guidance would be greatly appreciated.
Find all posts by beltwaymikeView user's profileSend private message
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.464 Seconds - 293 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::