Hi, I'm trying to avoid seeing my non-registered user images unless they have logged in and the php file contains a code like this:
<img src="<?php if(isset($profile_picture)) echo $profile_picture; ?>" class="img img-rounded" width="100"/>
For that I have written in my .htaccess file the following code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?blueemon90.xyz [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
Options All -Indexes
Which blocks access to the image with urls how are you www.mipagina.com/fotos/mifoto.jpg but I realized that by placing this address www.mipagina.com/fotos the index of the page appears and if I click on the photo if it is displayed, for which I decided to disable the indexing of the page, it is enough security with my code in .htaccess and disable indexing?