Hi. I have a blog in wordpress with many visits, and many images. This images are being hotlinked by another webs, and this is fatal for my server. I'm trying to configure in the ISPConfig panel, on "SITES/Configuration/" but the images are still being showed. How can I do that? PD: sorry about my poor english.
You can do this with .htaccess files. Example 1 disables hotlinking: Code: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com/.*$ [NC] RewriteRule \.(gif|jpg|png)$ - [F] Example 2 disables hotlinking and shows error message: Code: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com/.*$ [NC] RewriteRule \.(gif|jpg|png)$ http://www.yourdomain.com/error_message.png [R,L]
Where must I locate this .htaccess ? If I put this on web folder, I get error 500. All what i've read is that all htaccess sentences must be on ISPCONFIG Panel, on Sites/configuration...