hotlinking protection doesn’t seem to work
-
Hi,
I’m generally very happy with this plugin and use it on various website. I decided to test the image hotlinking feature and ticked the box to prevent image hotlinking here https://[mysite]/wp-admin/admin.php?page=aiowpsec_firewall&tab=tab5
But when I test whether an image can be hotlinked, it’s still possible to do so.
So it looks like the feature to prevent image hotlinking doesn’t currently work.I’ve used this site to test: https://altlab.com/hotlinkchecker.php
I can see this code on my .htaccess file:
#AIOWPS_PREVENT_IMAGE_HOTLINKS_START <IfModule> RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g?|png)$ [NC] RewriteCond %{HTTP_REFERER} !^http(s)?://(.*)?\.mywebsite\.com [NC] RewriteRule \.(gif|jpe?g?|png)$ - [F,NC,L] </IfModule> #AIOWPS_PREVENT_IMAGE_HOTLINKS_END
This is a fresh wordpress installation (version 5.8.2) with the default theme (twentytwentyone) and the latest version of AIOWPS (version 4.4.9). The site has no other plugins and no other modifications.
- The topic ‘hotlinking protection doesn’t seem to work’ is closed to new replies.