Hotlinking :: Preventing?  | | |
January 11th, 2003, 12:46 PM
|
#1 (permalink)
| | Registered User
Join Date: Oct 2001
Posts: 4,097
| Hotlinking :: Preventing?
How can I find out if someone is hotlinking to my site?
And is there a way to prevent this?
Thanks. |
| |
January 13th, 2003, 12:09 PM
|
#2 (permalink)
| | Registered User
Join Date: Oct 2001
Posts: 4,097
| |
| |
January 13th, 2003, 12:45 PM
|
#3 (permalink)
| | Rather Large Member
Join Date: Oct 2001 Location: Vernon, BC, Canada
Posts: 9,243
|
From what I found you can prevent this at the server. Check with your hosting service to see what tools they are equipped with.
Here's the Yahoo search results for, "prevent hotlinking".
Cheers! |
| |
January 13th, 2003, 01:02 PM
|
#4 (permalink)
| | Not Really a Member
Join Date: Oct 2001
Posts: 25,385
|
You can check your web logs to see where requests are coming from. If anythign you can get something like webtrends to see if individual images are being requested from a specific IP. (the location of those logs depends on your webserver, and your OS)
This is from an apache log (its ugly  )
(ViewersIP) 100.200.100.200 - - [05/Jan/2003:05:59:32 -0500] "GET /subdirectory/copyrightimage.jpg HTTP/1.1" 200 126789 "http://domainfilewascalledby/subdirectory/callingfile.html" "Opera/7.0 (Windows 2000; U) [en]"
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
|
| |
January 13th, 2003, 02:50 PM
|
#5 (permalink)
| | ph34r t3h g04t
Join Date: Oct 2001 Location: Kingsford, MI
Posts: 19,552
|
I think there may be a way to do it with a scripting language. One of my friends has pretty much everything on his site hidden from direct links. He uses PHP. |
| |
January 13th, 2003, 03:17 PM
|
#6 (permalink)
| | Real gangstas sip on Yacc
Join Date: Oct 2001 Location: Suckas-ville
Posts: 4,552
|
Well if you are looking to prevent hotlinking to pages, then you could do it with any scripting language in the page (Javascript, asp, PHP, Perl, etc.).
As far as hotlinking images and/or other files (non source files be they of HTML or scripted) then you will have to use a server setting, as no language can be used like that to run when something is hotlinked.
A server setting could eaisly be setup to do that though IMO.
Jkroh
__________________
Signatures blow hard
If your signature contains an ad of any kind, congratulations, you're on my ignore list.
|
| |
January 13th, 2003, 03:40 PM
|
#7 (permalink)
| | Banned
Join Date: Nov 2002 Location: Seattle, WA
Posts: 3,312
|
Use .htaccess to prevent it |
| |
January 13th, 2003, 06:31 PM
|
#8 (permalink)
| | Rather Large Member
Join Date: Oct 2001 Location: Vernon, BC, Canada
Posts: 9,243
| |
| |
January 14th, 2003, 06:56 AM
|
#9 (permalink)
| | Registered User
Join Date: Oct 2001
Posts: 4,097
|
Excellent! Thanks very much for the info, I am using PHP, and will edit .htaccess once I get home.
Thanks again  |
| |
January 14th, 2003, 07:09 AM
|
#10 (permalink)
| | Registered User
Join Date: Oct 2001
Posts: 4,097
|
Last edited by ClubMed : January 14th, 2003 at 07:11 AM.
|
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |