Quantcast
Channel: Apache 2: Prevent image hotlinking serverwide - Server Fault
Viewing all articles
Browse latest Browse all 5

Answer by f.ederi.co for Apache 2: Prevent image hotlinking serverwide

$
0
0

I have something like this in my httpd.conf:

RewriteCond "%{HTTP_REFERER}" !=""RewriteCond "%{HTTP_REFERER}""!^http://www.mydomain.com/.*$" [NC]RewriteRule "\.(jpg|png)$ - [F]

You might need to use this as well if you haven't used RewriteConds and RewriteRules before:

RewriteEngine On

I found it googleing or in the Apache Cookbook. Can't remember anymore.


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>