[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Restricting Access



----Original Message-----
From: Bob G7 [mailto:Bob_G7@xxxxxxxxxx]
Sent: Thursday, September 12, 2002 11:55 PM
To: Cobalt-Users@xxxxxxxxxxxxxxx
Subject: [cobalt-users] Restricting Access


This may sound offbeat, so here goes.

I keep a directory on my RaQ4 for people to upload images so they can show
off there trucks on a message board hosted on another server/host. This is a
club I belong to and we share some resources so to keep down the cost
overhead.

Anyways, I would like to be able to restrict this image directory so that
the images can only be seen by the message board it's intended for. If
someone places the link into another message board or webpage they won't get
anything.

I have tried the honor system and that has worked for the most part, but a
few are not following the rules so I need to find a way of restricting
access to this directory. I have a feeling it has something to do with
htaccess, but I'm not sure how to set that up to do as I want.

If anyone has any ideas or suggestions that would help, please let me know.
------------------------------
You should be able to put a rewrite/condition/reqrite rule in an .htaccess
file inside the image direcory.

The rewrite condition would check the HTTP_REFERER and if it was not from
the message board, generate an error or redirect to a page with an error
message on it.