Albert Cardona<p><span class="h-card"><a href="https://mastodon.world/@mlanger" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>mlanger</span></a></span> <span class="h-card"><a href="https://mastodon.world/@mrbadger42" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>mrbadger42</span></a></span> <span class="h-card"><a href="https://mastodon.social/@Sheril" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>Sheril</span></a></span> </p><p>Of course. There are many examples online, here is my .htaccess:</p><p>RewriteEngine on<br>RewriteCond %{HTTP_REFERER} !^$<br>RewriteCond %{HTTP_REFERER} !^http://(albert|www)\.rierol\.net/.*$ [NC]<br>RewriteRule \.(jpg|png|jpeg|gif)$ - [F]</p><p>Means:<br>Line 1: switch on.<br>Line 2: calling page can't be nothing.<br>Line 3: calling page can't be anything other than my own (sub)domains.<br>Line 4: if the file has an image extension, then fail.</p><p><a href="https://mathstodon.xyz/tags/htaccess" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>htaccess</span></a> <a href="https://mathstodon.xyz/tags/HttpTips" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HttpTips</span></a> #</p>