Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 4 down vote accepted


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

Hmm, try a 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

Your Answer


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.