![]() |
Hotlinking and .htaccess I opened a ticket about .htaccess not working to prevent people from hotlinking to images in our gallery, and I thought it was resolved. As it turns out I don't think the problem was with the .htaccess file not working, but with the fact that it only works when the viewer's browser sends http referer headers - and some browsers don't always send those headers.* So anyway... is there a way to provide tighter restrictions on the images in the gallery, maybe through the forum permissions system? Or could there be? :) * It seems that Firefox, for example, has a lot of referer bugs. It doesn't always send those headers when it should, and in addition they make it very easy for users to manually disable them through a config setting. |
Re: Hotlinking and .htaccess what do you have in your htaccess file? I use this: Code: Content visible to verified customers only.Code: Content visible to verified customers only. |
Re: Hotlinking and .htaccess It is a perfect picture mholtum :D |
Re: Hotlinking and .htaccess I love it too! |
Re: Hotlinking and .htaccess I've only been using the default .htaccess file that's created when you select to restrict access via the Gallery settings in the ACP. But I don't think it matters what's in your .htaccess file if the viewer's browser doesn't send the http referer headers. |
Re: Hotlinking and .htaccess If the browser doesn't send the http referer, then they aren't going to be able to see the image. On my "alternate" image, I have a note telling them that: http://www.fireblades.org/images/leech.gif |
Re: Hotlinking and .htaccess Quote:
|
Re: Hotlinking and .htaccess Why dont you try to hot link here. See what happens. |
Re: Hotlinking and .htaccess Quote:
|
Re: Hotlinking and .htaccess Okay I've figured out that the .htaccess solution is preventing hotlinking, however when someone hotlinks to a gallery image it shows up as a broken image link, and if the person then right clicks on the image and chooses "view image" then they can see it. So the .htaccess method is a good solution for preventing hotlinking, but not useful to prevent people from sharing images altogether. But then again, there is nothing to stop anyone from just copying the images and uploading them somewhere else either, so it's probably not a big deal. Sorry to waste your time. :) |
Re: Hotlinking and .htaccess Hi mholtum am I to understand, that the referrers you put in the http referer line are allowed to have access to the images then. What I am asking is are these urls mentioned allowed to hotlink, then? if this is the case, it looks quite nifty Thanks G Quote:
|
Re: Hotlinking and .htaccess Yes, anything listed are allowed to hotlink. If a site isnt listed it gets my default image. :) If the URL isnt listed they get this: Code: Content visible to verified customers only. |
Re: Hotlinking and .htaccess excellent ... so one simply places the htaccess into the image folder where you would like it to apply? this is a God send .. thanks G |
Re: Hotlinking and .htaccess I placed it i my gallery dir. Works like a charm |
Re: Hotlinking and .htaccess I will use this on a few of the other websites where I would like to block hotlinking but also allow my other sites to pull images for use on that site Site A has all the images and Site B - C and D pull images from that folder so in my understanding all I need do is provide the url of the site or do I need to be specific to the folder or does this only apply for subdomains which you seem to be using, please? Thanks G |
Re: Hotlinking and .htaccess I use my .htaccess in the root of my site so that no images anywhere can be hotlinked from other sites. |
Re: Hotlinking and .htaccess Quote:
Thanks G |
Re: Hotlinking and .htaccess I was trying to do the same thing and found this thread very helpful. Thanks :) |
Re: Hotlinking and .htaccess i DONT understand this option. i set the htaccess to yes and nothing happend. there is no .htaccess file being created in my files folder... and i took a image, and placed it in a .html file, uploaded it to a different domain and its still being viewed. please explain what i gotta do. thanks. |
Re: Hotlinking and .htaccess nevermind i got it. |
| All times are GMT -5. The time now is 09:53 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0