View Full Version : .htaccess question
May 19th, 2005, 10:31 AM
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?
May 19th, 2005, 10:40 AM
The images are stored according to the userid, so I'm not sure that disabling hotlinking per category would be easy to do.
May 19th, 2005, 10:42 AM
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...
May 19th, 2005, 11:34 AM
The files are not stored by the categoryid.
May 19th, 2005, 11:38 AM
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. :/
May 19th, 2005, 11:45 AM
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.
May 19th, 2005, 12:06 PM
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.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.