Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Not sure if this is the right stackexchange site to post this question, but I wanted to know if it is possible to get a list of all websites which are hot linking to images on my website, and how to stop them from hot linking.

I have a redhat server and am using apache.

share|improve this question
add comment

3 Answers

up vote 4 down vote accepted

Yes....

You could start logging mime types and referer (sic) (using mod_log_config, %{Content-Type}i, %{Referer}i) and see which requests don't originate from your site for image content.

There are lots of ways to prevent people from hot-linking - google will list a few. But the easiest is to ensure that the user has a current session - but this requires some smarts on your webserver, and usually that the user allows cookies.

share|improve this answer
add comment

Hmm, try a link:yoursite.com search on google, this shows all indexed sites linking to your domain. Maybe there's an API to fetch these results so you can filter by images.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.