PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > vBGallery Support > vBGallery Suggestions

vBGallery Suggestions Post your comments, suggestions, and other feedback about PhotoPost vBGallery here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old May 14th, 2005, 12:23 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jun 2004
Posts: 55
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.
tmhall is offline   Reply With Quote
Old May 14th, 2005, 01:20 PM   #2 (permalink)
Ultimate Member
Verified Customer
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 2,240
Send a message via MSN to mholtum Send a message via Yahoo to mholtum
Re: Hotlinking and .htaccess

what do you have in your htaccess file?

I use this:
Code:
Content visible to verified customers only.
if you notice this line:
Code:
Content visible to verified customers only.
it displays a image instead of the image they are trying to get.. If you use your imagination, it can be quite fun.
mholtum is offline   Reply With Quote
Old May 14th, 2005, 01:45 PM   #3 (permalink)
Member
Verified Customer
 
Lizard King's Avatar
 
Join Date: Nov 2005
Posts: 143
Re: Hotlinking and .htaccess

It is a perfect picture mholtum
Lizard King is offline   Reply With Quote
Old May 14th, 2005, 01:57 PM   #4 (permalink)
Ultimate Member
Verified Customer
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 2,240
Send a message via MSN to mholtum Send a message via Yahoo to mholtum
Re: Hotlinking and .htaccess

I love it too!
mholtum is offline   Reply With Quote
Old May 14th, 2005, 02:09 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jun 2004
Posts: 55
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.
tmhall is offline   Reply With Quote
Old May 14th, 2005, 03:29 PM   #6 (permalink)
Ultimate Member
Verified Customer
 
ConqSoft's Avatar
 
Join Date: Nov 2003
Location: Raleigh, NC
Posts: 1,413
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
ConqSoft is offline   Reply With Quote
Old May 14th, 2005, 03:53 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Jun 2004
Posts: 55
Re: Hotlinking and .htaccess

Quote:
Originally Posted by ConqSoft
If the browser doesn't send the http referer, then they aren't going to be able to see the image.
Yeah, that's a good point. I realized after my last post that the way the .htacess file is written it rejects blank as well as foreign referers. I can't figure out why some of my users keep insisting that they can still hotlink to the gallery but for now I'll have to assume they're just on crack.
tmhall is offline   Reply With Quote
Old May 14th, 2005, 04:00 PM   #8 (permalink)
Ultimate Member
Verified Customer
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 2,240
Send a message via MSN to mholtum Send a message via Yahoo to mholtum
Re: Hotlinking and .htaccess

Why dont you try to hot link here. See what happens.
mholtum is offline   Reply With Quote
Old May 14th, 2005, 04:39 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Jun 2004
Posts: 55
Re: Hotlinking and .htaccess

Quote:
Originally Posted by mholtum
Why dont you try to hot link here. See what happens.
I would, but I'm too paranoid. I prefer to keep my forum location out of discussions about the underlying software to avoid giving too much info to potentially malicious readers.
tmhall is offline   Reply With Quote
Old May 15th, 2005, 10:06 AM   #10 (permalink)
Member
Verified Customer
 
Join Date: Jun 2004
Posts: 55
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.
tmhall is offline   Reply With Quote
Old June 8th, 2005, 01:26 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Nov 2004
Posts: 89
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:
Originally Posted by mholtum
what do you have in your htaccess file?

I use this:
Code:
Content visible to verified customers only.
if you notice this line:
Code:
Content visible to verified customers only.
it displays a image instead of the image they are trying to get.. If you use your imagination, it can be quite fun.
Globalbuzz is offline   Reply With Quote
Old June 8th, 2005, 01:34 AM   #12 (permalink)
Ultimate Member
Verified Customer
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 2,240
Send a message via MSN to mholtum Send a message via Yahoo to mholtum
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.
mholtum is offline   Reply With Quote
Old June 8th, 2005, 01:58 AM   #13 (permalink)
Member
Verified Customer
 
Join Date: Nov 2004
Posts: 89
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
Globalbuzz is offline   Reply With Quote
Old June 8th, 2005, 02:05 AM   #14 (permalink)
Ultimate Member
Verified Customer
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 2,240
Send a message via MSN to mholtum Send a message via Yahoo to mholtum
Re: Hotlinking and .htaccess

I placed it i my gallery dir. Works like a charm
mholtum is offline   Reply With Quote
Old June 8th, 2005, 02:15 AM   #15 (permalink)
Member
Verified Customer
 
Join Date: Nov 2004
Posts: 89
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
Globalbuzz is offline   Reply With Quote
Old June 8th, 2005, 08:48 AM   #16 (permalink)
Ultimate Member
Verified Customer
 
ConqSoft's Avatar
 
Join Date: Nov 2003
Location: Raleigh, NC
Posts: 1,413
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.
ConqSoft is offline   Reply With Quote
Old June 8th, 2005, 09:30 AM   #17 (permalink)
Member
Verified Customer
 
Join Date: Nov 2004
Posts: 89
Re: Hotlinking and .htaccess

Quote:
Originally Posted by ConqSoft
I use my .htaccess in the root of my site so that no images anywhere can be hotlinked from other sites.
OK ... that is execellent to hear .. so I am supposing that we just load the .htaccess file to the root, same as where the index file would be?

Thanks

G
Globalbuzz is offline   Reply With Quote
Old June 28th, 2005, 04:28 AM   #18 (permalink)
Member
 
Join Date: Mar 2005
Posts: 82
Re: Hotlinking and .htaccess

I was trying to do the same thing and found this thread very helpful. Thanks
Grae is offline   Reply With Quote
Old August 28th, 2005, 02:56 PM   #19 (permalink)
Member
 
Join Date: Feb 2005
Posts: 111
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.
Da GoTTi is offline   Reply With Quote
Old August 28th, 2005, 05:21 PM   #20 (permalink)
Member
 
Join Date: Feb 2005
Posts: 111
Re: Hotlinking and .htaccess

nevermind i got it.
Da GoTTi is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Allow hotlinking from only one catergory Borgs8472 How Do I? - vBulletin 3.0.X 2 October 3rd, 2005 02:25 AM
hotlinking on same site DJDarknez Before You Buy 1 July 11th, 2005 10:05 AM
Watermark / hotlinking wattie Installs and Upgrade - vBulletin 3.0.X 9 June 14th, 2005 05:33 PM
Avoid Hotlinking Globalbuzz vBGallery Suggestions 14 February 23rd, 2005 01:22 PM
Image Hotlinking... MajorFm Installs and Upgrade - vBulletin 3.0.X 11 February 20th, 2005 11:14 AM


All times are GMT -5. The time now is 10:13 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0