Quantcast
Channel: Apache 2: Prevent image hotlinking serverwide - Server Fault
Browsing latest articles
Browse All 5 View Live

Answer by pQd for Apache 2: Prevent image hotlinking serverwide

referer checking not always works, some proxies or even browsers strip HTTP_REFERER header from http requests. it's much better to check some cookies in your content-generating code [ eg index.php that...

View Article



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

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...

View Article

Answer by BlaM for Apache 2: Prevent image hotlinking serverwide

I have a solution, even if it is not very beautiful, because it leaves the default error 403 document changed even if the image is not hotlinked:This goes into apache2.conf: SetEnvIfNoCase Referer...

View Article

Answer by Iain for Apache 2: Prevent image hotlinking serverwide

The only effective way to do is is with mod rewrite rules. If the referrer is not from your own domain, then rewrite the image url to be one that is non-existant, somewhere else, or a 1px by 1px...

View Article

Apache 2: Prevent image hotlinking serverwide

I'm trying to block access to images on my server if they are linked from some common "baddies", i.e. sites with users that tend to use other peoples...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images