I have the following .htaccess file contents:
The file is clipped for brevity.
Options -Indexes
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://192.168.4.2 [NC]
RewriteCond %{HTTP_REFERER} !http://192.168.4.2 [NC]
RewriteRule \.(jpg)$ - [F]
The idea is that the jpg
extension is forbidden (using the F|forbidden flag).
This works fine in all environments except for my IP at http://192.168.4.2
.
Any clarification would be appreciated.