Help - Search - Members - Calendar
Full Version: Plesk/Apache hotlinking now fails
The Planet Forums > Control Panels > Plesk
beggers
I've just realized that somewhere along the line my image hotlinking code stopped working. This is what I've been using for years:

CODE
RewriteEngine on

RewriteCond %{HTTP_REFERER} !^$

RewriteCond %{HTTP_REFERER} !^http://(www.)?wwe-club.com(/)?.*$     [NC]

RewriteCond %{HTTP_REFERER} !^http://(www.)?brachman.com(/)?.*$     [NC]

RewriteCond %{HTTP_REFERER} !^http://(www.)?totalhits.com(/)?.*$     [NC]

RewriteRule .*.(gif|jpg|jpeg|bmp)$ [url="http://www.totalhits.com/theft/wweclub1.gif"]http://www.totalhits.com/theft/wweclub1.gif[/url] [R,NC]

The above code just substituted a small image instead of the requested image. Doesn't work anymore, though.

I just tried some code suggested by another user here but it also fails:

CODE
RewriteCond %{HTTP_REFERER} ^https?://

RewriteCond %{HTTP_REFERER} !^https?://(www.)?(wwe-club.com|vegasnews.com)(/.*)?$ [NC]

RewriteRule .(ra?m|zip|[jm]pe?g|mp3|wmv)$ [url="http://wwe-club.com/nohotlink.html"]http://wwe-club.com/nohotlink.html[/url] [R,L,NS,NC]

I don't know what changed, but any help would be appreciated.
4PSA
Just enable mod_rewrite log and increase the log level. You will see why it fails. The directives look ok.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.