0

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.

oshirowanen
  • 292
  • 3
  • 13

3 Answers3

4

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.

symcbean
  • 19,931
  • 1
  • 29
  • 49
2

See http://wiki.apache.org/httpd/RewriteImageTheft

PP.
  • 3,246
  • 6
  • 26
  • 31
1

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.

weeheavy
  • 4,039
  • 1
  • 27
  • 41