I saw some guy selling an anti hotlinking script for some $$$. But why pay.
Create a .htaccess file with this
Create a .htaccess file with this
Code:
RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^[url]http://[/url]([a-z0-9-]+\.)*yourdomain.com/ [NC] // yourdomain to allow hotlinkings
RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$)
RewriteRule /*$ [url]http://www.aftonbladet.com/[/url] [L,R] //redirect hotlinkers to this url

Comment