Can't stop Image Hotlinking. Please check my code.
-
This is my code in .htaccess
Hotlink protection is not working for me.
I want to show a custom image.
What I am doing wrong? Check my code and please tell me what should I do to correct it.# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?hotmug.org [NC] RewriteRule \.(jpg|jpeg|png|gif)$ hotmug.org/no-hotlink.png [NC,R,L] </ifModule> # END WordPress
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Can't stop Image Hotlinking. Please check my code.’ is closed to new replies.