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, 61 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 - Stop Bandwidth Theft Mod Rewrite [ ]
 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
sixonetonoffun
Major
Major


Joined: Jan 13, 2003
Posts: 892


PostPosted: Sat Jul 19, 2003 5:25 pm Reply with quoteBack to top

I use this nice example to prevent hot linking images.

Code:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?this.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://(www.)?this.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.)?froogle.google.com/.*$ [NC]
RewriteRule .(gif|jpg|png)$ - [F]


This works nice allows froogle and my domain (this.com) to grab images.

But I do have a question. Will this block google image search? I think it would but don't know of any of our images to test that.
Find all posts by sixonetonoffunView user's profileSend private message
MikeMiles
Lieutenant
Lieutenant


Joined: May 29, 2003
Posts: 231


PostPosted: Sun Jul 20, 2003 12:16 am Reply with quoteBack to top

It will block Google (as well as anyone else) from displaying images from your pages unless Google uses the "froogle" subdomain. For the image search, it kinda looks like they pull it from the cache. So, you probably should either add all subdomains form Google or add their IPs.

If your server does not automatically add a slash on the domain name, you might want to change the first two to get rid of the trailing slash like this: http://(www.)?this.com.*$ . If you have pages on a subdomain, you'll need to add another rule or modify this one to include them.
Find all posts by MikeMilesView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sun Jul 20, 2003 5:19 am Reply with quoteBack to top

I've never implemented that here because of the uploads section. I don't mind if its used, but if it ever got abused, then the service would turn premium.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
MikeMiles
Lieutenant
Lieutenant


Joined: May 29, 2003
Posts: 231


PostPosted: Sun Jul 20, 2003 7:31 am Reply with quoteBack to top

Sixone shows graphics, but it could be used for any extension. If used, it doesn't prevent people, who come to your site, from downloading. It prevents folks from direct linking to your files from their sites. If you made downloads a premium service or available only to those who sign in, you would still need to protect the directory contents. If someone knew the url to the files, he could still download everything.

I haven't had any problems at all with attempted hotlinking....knock on wood. Mine has been keeping out damn spybots. I have a friend who had problems with the bots wandering into his download directory and running up his bandwidth by constantly trying to download files. An entry in robots.txt fixed it, but it was kinda funny watching it happen.
Find all posts by MikeMilesView user's profileSend private message
sixonetonoffun
Major
Major


Joined: Jan 13, 2003
Posts: 892


PostPosted: Sun Jul 20, 2003 8:38 am Reply with quoteBack to top

Yeah I'm fairly sure this is the basic code gallery uses if you choose during config to not allow hotlinking.

Steve:
You'd just add the robots useragent to your robots text.
User-agent: Steeler
Disallow: /
or
User-agent: Steeler
Disallow: /images

Something like that. This is kinda why I was playing with this.
I like the idea of blocking but for those I allow.
It's interesting anyway. I might change foogle.google.com to to google.com (froogle still works then from the testing I did do).
Find all posts by sixonetonoffunView user's profileSend private message
sixonetonoffun
Major
Major


Joined: Jan 13, 2003
Posts: 892


PostPosted: Sun Jul 20, 2003 10:54 am Reply with quoteBack to top

Ands thanks to MikeMiles for pointing out the importance of the trailing slash. That should about polish off the use instructions.
Find all posts by sixonetonoffunView 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.180 Seconds - 195 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::