Go Back   Trackpads Community > General Discussions > Computer and Technology > Web Design

Web Design Forums and discussions on webdesign

Web Design

Reply
 
LinkBack Thread Tools
Old 05-28-2005, 08:00   #1 (permalink)
jon
Civilians

 
Default Best way to protect a directory

Hello,
I would like to try to protected a directory on my website and would like to
know what are some of the best ways to do this.
Thank you


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 05-28-2005, 12:00   #2 (permalink)
nospam@geniegate.com
Civilians

 
Default Re: Best way to protect a directory

In: <8WVle.1257$s64.567@newsread1.news.pas.earthlink.n et>, "jon" <jon@no_more-spam.invalid> wrote:
>Hello,
>I would like to try to protected a directory on my website and would like to
>know what are some of the best ways to do this.
>Thank you


On a UNIX platform you could install a dog device:

mknod dog c|b <major> <minor>

Where major and minor are the device numbers that correspond to the
dog device.

c or b are block or character devices. (If your dog has a lot of
character you'd use 'c' but if it's a block shaped dog, use a b.)

dog is an arbitrary name, but should follow conventions.

IMPORTANT:

After you have installed your dog, you MUST ensure it doesn't get
out of the directory and chase after other peoples files.

To do this, a variety of strategies are used, but the easiest
is simply to link it to the directory you are trying to protect,
to do this, you would use the 'ln' command.

ln dog anchor

A well trained dog doesn't actually need a hard link, as for such
a dog, the chain is only symbolic, for a symbolic link, you would
use the -s option.

ln -s dog anchor

You could also protect your directory with a daemon, but this isn't
recommended practice.


Jamie
--
http://www.geniegate.com Custom web programming
guhzo_42@lnubb.pbz (rot13) User Management Solutions
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-28-2005, 12:00   #3 (permalink)
Toby Inkster
Civilians

 
Default Re: Best way to protect a directory

nospam wrote:

> After you have installed your dog, you MUST ensure it doesn't get
> out of the directory and chase after other peoples files.
>
> ln dog anchor


Or just use chroot.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-28-2005, 16:00   #4 (permalink)
MGW
Civilians

 
Default Re: Best way to protect a directory

On 28 May 2005 12:42:31 GMT, nospam@geniegate.com wrote:

>IMPORTANT:
>
>After you have installed your dog, you MUST ensure it doesn't get
>out of the directory and chase after other peoples files.


But watch out if you try to cat anything - all bets are off then ;-P

MGW

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-31-2005, 16:00   #5 (permalink)
Karim
Civilians

 
Default Re: Best way to protect a directory

On Sat, 28 May 2005 08:25:40 GMT, jon wrote:

> Hello,
> I would like to try to protected a directory on my website and would like to
> know what are some of the best ways to do this.
> Thank you



Specify what web server you're on. The solution depends on it.


Karim
--
http://www.cheapesthosting.com - Innovative Web Hosting since 1998
Spam and Virus protected email - Online calendars with email notification
Camera phone photos automatic transfers to your photo album (RSS Enabled
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-31-2005, 20:00   #6 (permalink)
Joe
Civilians

 
Default Re: Best way to protect a directory

> Specify what web server you're on. The solution depends on it.

Well, I dont know about the OP, but Im on a Windows 2003 server & Id
like to do it!

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-03-2005, 04:00   #7 (permalink)
jon
Civilians

 
Default Re: Best way to protect a directory


"Karim" <karim3411@yahoo.com> wrote in message
news:jryd33hkkrev.18xta451mnhyl$.dlg@40tude.net...
> On Sat, 28 May 2005 08:25:40 GMT, jon wrote:
> Specify what web server you're on. The solution depends on it.
>
>
> Karim
> --
> http://www.cheapesthosting.com - Innovative Web Hosting since 1998
> Spam and Virus protected email - Online calendars with email notification
> Camera phone photos automatic transfers to your photo album (RSS Enabled

Hello,
Opps my mistake I am currently using cpanel 9.9.9-STABLE 15 on linux version
2.4.21-32.0.1.EL


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools

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
IIS Directory Listing Dylan Parry Web Design 1 10-12-2005 02:03
linking to a directory. Stan Blazejewski Web Design 3 06-09-2005 04:00
Directory Assistance Snowden Humor 2 03-21-2005 09:43
macro to move from directory to directory davegb Microsoft Applications 19 02-06-2005 20:00
MS LDAP Directory? Hamish McStill Microsoft Applications 3 07-23-2004 16:37


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 12:17.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 0.89358 seconds with 19 queries