|
| Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
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 |
|
|
#2 |
|
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. |
|
|
#3 |
|
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 |
|
|
#4 |
|
Guest
Posts: n/a
|
I have given you the best and only way to accomplish what you're asking for.
|
|
|
#5 |
|
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... ![]() |
|
|
![]() |
| Thread Tools | |
|
|