PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old May 19th, 2005, 11:31 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 41
.htaccess question

I don't want to allow hot linking to all of my categories, but I would like to allow it in some of them - the user specific ones which should have their own directory if I understand it right...

Do I need to manually set up the .htaccess in that case? What do I need to put in the /files dir to block hot linking, and in the user dirs to allow it?
Greebo is offline   Reply With Quote
Old May 19th, 2005, 11:40 AM   #2 (permalink)
Brian
Guest
 
Posts: n/a
Re: .htaccess question

The images are stored according to the userid, so I'm not sure that disabling hotlinking per category would be easy to do.
  Reply With Quote
Old May 19th, 2005, 11:42 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 41
Re: .htaccess question

I was looking at the sub dirs under /files, and it looks like the first folder created under /files is based on the category id.

So in theory if my category id for my Member category is 2, couldn't I put an .htaccess file in that dir to override the .htaccess in /files ?

I THINK its just a question of what I need to put into /files/2/.htaccess to override the Rewrite code in /files/.htaccess

I could be completely zonkers on this, tho, I admit. Not an apache guru by any measure...
Greebo is offline   Reply With Quote
Old May 19th, 2005, 12:34 PM   #4 (permalink)
Brian
Guest
 
Posts: n/a
Re: .htaccess question

The files are not stored by the categoryid.
  Reply With Quote
Old May 19th, 2005, 12:38 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 41
Re: .htaccess question

Oh, I see... its by each number in the users userid, right? user 257 would go in /files/2/5/7 ...

Yes, I can see how that would make things much more complicated. :/
Greebo is offline   Reply With Quote
Old May 19th, 2005, 12:45 PM   #6 (permalink)
Brian
Guest
 
Posts: n/a
Re: .htaccess question

Yup, that is how they're stored. Originally the images were going to be stored according to the categoryid, but we opted for this method since it doesn't require the physical images on the server to be moved if you change the image's category and such.
  Reply With Quote
Old May 19th, 2005, 01:06 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Jan 2005
Posts: 41
Re: .htaccess question

Yeah, user ids aren't likely to change.

Hmm - well darn - I was hoping to be able to say "this usergroup can hotlink" and offer it as another feature for subscribers. Ah well, c'est la vie.
Greebo 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
Hotlinking and .htaccess tmhall vBGallery Suggestions 25 February 12th, 2008 03:19 AM
Is this possible with a .htaccess file? Johnny Doomo General Discussion 1 March 31st, 2005 08:42 PM
.htaccess oldengine Bugs From 1.0.0 2 February 14th, 2005 11:03 AM
Movies & htaccess SLix General Discussion 1 October 1st, 2004 07:31 PM
htaccess for specific category? shamrox General Discussion 4 August 25th, 2004 12:09 PM


All times are GMT -5. The time now is 10:16 AM.

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