home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Hotlinking :: Preventing?

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2263
Discussions: 200,937, Posts: 2,379,251, Members: 246,302
Old January 11th, 2003, 12:46 PM   Digg it!   #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.
ClubMed is offline   Reply With Quote
Old January 13th, 2003, 12:09 PM     #2 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 4,097
^Bump
ClubMed is offline   Reply With Quote
Old January 13th, 2003, 12:45 PM     #3 (permalink)
Rather Large Member
 
Beemer's Avatar
 
Join Date: Oct 2001
Location: Vernon, BC, Canada
Posts: 9,243
Send a message via MSN to Beemer
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!
Beemer is offline   Reply With Quote
Old 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.
vass0922 is offline   Reply With Quote
Old January 13th, 2003, 02:50 PM     #5 (permalink)
ph34r t3h g04t
 
Whir's Avatar
 
Join Date: Oct 2001
Location: Kingsford, MI
Posts: 19,552
Blog Entries: 7
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.
Whir is online now   Reply With Quote
Old January 13th, 2003, 03:17 PM     #6 (permalink)
Real gangstas sip on Yacc
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Suckas-ville
Posts: 4,552
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
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.
jkrohn is offline   Reply With Quote
Old January 13th, 2003, 03:40 PM     #7 (permalink)
Banned
 
Join Date: Nov 2002
Location: Seattle, WA
Posts: 3,312
Send a message via AIM to iNeb
Use .htaccess to prevent it
iNeb is offline   Reply With Quote
Old January 13th, 2003, 06:31 PM     #8 (permalink)
Rather Large Member
 
Beemer's Avatar
 
Join Date: Oct 2001
Location: Vernon, BC, Canada
Posts: 9,243
Send a message via MSN to Beemer
And here is a link that will help you out with .htaccess . http://www.javascriptkit.com/howto/htaccess.shtml

Cheers!
Beemer is offline   Reply With Quote
Old 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
ClubMed is offline   Reply With Quote
Old January 14th, 2003, 07:09 AM     #10 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 4,097
Testing the function:







Working

Last edited by ClubMed : January 14th, 2003 at 07:11 AM.
ClubMed is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2905)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Wireless Televisions. (8)
California Passes Anti-Flat-HDTV Le.. (43)
Obama the Muslim (14)
Is the PSU I received dead? (11)
windows vista security holes (9)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (11)
Print spooler problem (13)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
Recent Discussions
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)
Is the PSU I received dead? (11)
Have you switched yet? (85)
Regular Build (4)
Point and Shoot Camera Suggestions. (2)
Modern Warfare 2 freeze (13)
Wireless Televisions. (8)
wireless user (1)
World's largest Monopoly Game using G.. (332)
Ideal cheap graph card for PC-Gaming? (17)
BIOS won't read disk when I try to fl.. (0)
Install XP pro and a Vista laptop ?? (11)
Graphics Card Upgrade Question (1)
favorit (1)
solutions for virtical white lines on.. (1)
Fire in DVD (2)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)
Wireless Router+Cable Modems and Much.. (0)
Optical Audio A-B Switch (1)
windows vista security holes (9)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)


All times are GMT -4. The time now is 12:46 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28