PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > The PowWeb Platform > General Issues / Questions
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools
Old 12-11-01, 11:24 PM   #1
Adrian
Guest
 
Posts: n/a
external links

Someone is putting direct links to pictures on my web site on their web site. I have asked the web master to upload the picture to his account instead of using my precious bandwidth, but is there a way that I can I stop these external links from working? An .htaccess entry perhaps? I'm sure I read something about that, but I can't find it now.

Thanks!


Adrian
 
Old 12-12-01, 02:37 AM   #2
Starr
Guest
 
Posts: n/a
You can do this via an .htaccess file. Create one and place the following in it in your htdocs directory:

<Limit GET POST>
order allow,deny
deny from host.net
deny from 0.0.0.
deny from 0.0.0.0
allow from all
</Limit>

NOTE: I use "host.net" and "0.0.0.0" as examples. Replace them with the hostname or the IP or subnet you want to block from accessing your site.
 
Old 12-12-01, 03:20 AM   #3
Adrian
Guest
 
Posts: n/a
Thanks for your quick response, but isn't there a better solution? Since my previous post, I have discovered a few more sites which also have links to my pictures. I can't keep checking my logs and adding addresses to the deny list.

My log entries are like this...

"GET /gallery/beasup/01.jpg HTTP/1.1" 200 157390 "http://www.hal-9000.net/wwwboard/messages/3/5/356993.html"

... and this...

"GET /gallery/misc/01.gif HTTP/1.1" 200 1905 "http://olivialufkinonline.com/gallery/misc/en.html"

So, surely there is a way to check if olivialufkinonline.com appears in the path, and if not, deny the access. I certainly I hope so. I believe that a lot of free web hosts now block external requests, so there must be a simple way to do this, rather than checking the logs and updating a deny list.


Adrian
 
Old 12-12-01, 03:21 AM   #4
Starr
Guest
 
Posts: n/a
I have given you the best and only way to accomplish what you're asking for.
 
Old 12-12-01, 04:06 AM   #5
grahm
 
Join Date: Nov 2001
Location: Does it matter?
Posts: 335
Reputation: 5
here's a few links..

they have each have a Perl script to stop the hotlinkers.

http://www.confine.com/programs.shtml - look for "Antileech"

http://www.custom-cgi.com/free/bandwidth_protector/

http://www.spaceports.com/~scifi/bandwidthbob.html

hope these help...
grahm is offline  
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:10 PM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.