Forum Moderators: phranque

Message Too Old, No Replies

hotlinks on system error log

is there a way to show hotlinks on the system error log?

         

schulerlab

6:19 pm on May 24, 2006 (gmt 0)

10+ Year Member



I've been trying different ways to prevent hotlinking.

when I saw this:
[webmasterworld.com...]
(see JDMorgan's code):

RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://(www\.)?mydomain\.com [NC]
RewriteRule \.(jpe?g¦gif¦png¦bmp¦mp3¦mov¦wmv¦rm¦ram¦wma)$ - [NC,F]

I thought that this would generate a "forbidden" (403?) error in the system error log. So, I put the code in the htaccess log, and tried it. It works, but nothing in the system error log.

Is there any way to track who is hotlinking to you?

jdMorgan

9:56 pm on May 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The requests that result in 403 should be visible in your server access log.

Jim

schulerlab

1:45 am on May 26, 2006 (gmt 0)

10+ Year Member



thanks. I appreciate it.

the error log is a bit easier to look at. ;) That's why I was wondering if there was a way to see the hotlinks in there.