Forum Moderators: phranque
So I see the initial IP address is mine - BT Internet, then the referrer is http://www.example.com/test.html. It was originally making sense to me to use:
RewriteCond %{REMOTE_REFERER} ^http://www\.example\.com.*$ [NC]
but as with either REMOTE_HOST or REMOTE_ADDR using the IP for example.com the alternative image is not displayed.
REMOTE_HOST should be looking for the IP of the user that you want to block not set to the IP of your website.
why are you still using REMOTE_REFERER?
I don't think he is really. I think it's just his cat editing the posts.
The referer for an image is the page the image lives on. Or the CSS, in the case of a background image and a separate style sheet. Or nothing, in the case of a robotic request.