Answers for "block direct access to php images"

PHP
1

block direct access to php images

RewriteEngine on 
RewriteCond %{HTTP_REFERER} !^http://(www\.)?localhost [NC] 
RewriteCond %{HTTP_REFERER} !^http://(www\.)?localhost.*$ [NC] 
RewriteRule \.(gif|jpg|png|bmp)$ - [F]
Posted by: Guest on March-27-2022

Browse Popular Code Answers by Language