Hey everyone on forum, my code is: #### stop image hijacking (anti-hotlinking) $HTTP["referer"] !~ "^(http://website\.com|http://www\.website\.com)" { url.access-deny = ( ".jpg", ".jpeg", ".png", ".gif", ".bmp" ) } Code (markup): but i have a problem, this code is blocking all direct images on the webpage (is not blocking normal show images, only direct!!), and i would need allow in one folder to direct linking.. i just want please about your help how i have to do it? thank you all for answer
Looks like you;re only allowing for the home page on your site. Please give this a read: http://www.cyberciti.biz/tips/lighttpd-stop-bandwidth-thief-image-hotlinking.html Please note the trailing * after the com. Hope this helps, -drmike
i tried add this command: but without change.. default is set up to disable directlink on the whole website and i need enable direct linking for folder "thumbs". is it for image host. similarly like having big image hosts.
ok, so i find out one thing, if i deleted $HTTP["referer"] !~ "^(http://website\.com|http://www\.website\.com)" { Code (markup): and added only $HTTP["url"] =~ "^/images/" { } Code (markup): so content of whole website was enable with except folder "images"..but that folder images is blocking completly...does not work viewer of pictures.. for example: all pictures i have in folder "images" which have to be blocking.. direct link: http://www.website.com/images/8751395548712.jpg Code (markup): this is blocking, its good i want that. viewer link: http://www.website.com/viewer.php?img=8751395548712.jpg Code (markup): also this is blocking, its wrong for me, i need allow it. how to do it? thanks my mates so much.
my code: #### stop image hijacking (anti-hotlinking) $HTTP["url"] =~ "^/images/" { url.access-deny = ( ".jpg", ".jpeg", ".png", ".gif", ".bmp" ) } Code (markup):
Its possible to do this in the lighttpd.conf however on my image host i use php to control hotlink protection and find this a much better solution as it allows you to be more flexible.