Tech ok on my site i want to make it so nobody can get into a directory (Read 987 times)

  • Avatar of cowardknower
  • The MONSTER that lives inside of your COUCH!
  • PipPipPipPipPipPipPip
  • Group: Premium Member
  • Joined: Aug 7, 2002
  • Posts: 1807
How do i do it?  HELP ME
  • Avatar of GZ
  • Gythol Granditti will be out "soon". Honest.
  • PipPipPipPipPip
  • Group: Premium Member
  • Joined: Jan 16, 2003
  • Posts: 789
most sites do this by default if you do not have an index.html / index.htm / index.php file. your host however may be blocking this by showing a generic error page. basically if this is the case, you would need a PHP script to do this. what is your host?
  • Avatar of Bobberticus
  • now that's what I'm talking about
  • PipPipPipPipPipPip
  • Group: Premium Member
  • Joined: Sep 20, 2003
  • Posts: 888
http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/
fuck it all, dd is dead
  • Avatar of Lord Kamina
  • MAZIIIIIN GO!! PILEDER ON!!!
  • PipPipPipPipPip
  • Group: Premium Member
  • Joined: Jan 31, 2003
  • Posts: 775
You don't really need to set a password even, you can just add a "deny from all" or something like that in the htaccess, look it up because I don't recall the actual syntax.

if you're a vegan you support baby killers
  • Avatar of pburn
  • What, me worry?
  • PipPipPipPipPipPipPip
  • Group: Premium Member
  • Joined: Jan 1, 2004
  • Posts: 1752
Couldn't you just connect to your webhost on FTP, right click the folder, and edit the folder permissions?
  • Avatar of dada
  • VILLAIN
  • PipPipPipPipPipPipPipPip
  • Group: Administrator
  • Joined: Dec 27, 2002
  • Posts: 5538
So many people eager to help despite not really knowing how...

If your server runs Apache, you can make a file called .htaccess (yes, including the dot) and stuff it with the following:
Options -Indexes
And that's it. You yourself won't be able to see the index either.

If that somehow doesn't work, just make an empty index.html file, that's just as effective (although it takes more effort).
  • Avatar of dom
  • Chapter Four: The Imagination And Where It Leads
  • PipPipPipPipPipPipPip
  • Group: Premium Member
  • Joined: Nov 9, 2003
  • Posts: 1022
the question is why you want something in a public directory that noone can get access to???
  • Avatar of cowardknower
  • The MONSTER that lives inside of your COUCH!
  • PipPipPipPipPipPipPip
  • Group: Premium Member
  • Joined: Aug 7, 2002
  • Posts: 1807
the host is bluehost.  And actually yeah itd be better if I could password it that would be sweet.
  • Avatar of GZ
  • Gythol Granditti will be out "soon". Honest.
  • PipPipPipPipPip
  • Group: Premium Member
  • Joined: Jan 16, 2003
  • Posts: 789
the host is bluehost.  And actually yeah itd be better if I could password it that would be sweet.
instead of doing all this complicated stuff why don't you just make an obscure directory? as long as you only tell the people who matter it exists you really wouldn't need this stuff. for instance i have secret junk i only share with a few people, and i just put it on a random host of mine and only tell them the file location. basically, the key is the folder name in this instance.

i am pretty sure you can do wacky htaccess stuff to do this, but it seems a bit impractical. if you were some big company or something, i could understand this, but who's going to go snooping in CONCHFELDS WEBSITE and look for secret files (hack conchfeld???)? some guy here will probably answer this the proper way but it just seems like a lot of hoops to jump through when there are easier ways.
  • Avatar of cowardknower
  • The MONSTER that lives inside of your COUCH!
  • PipPipPipPipPipPipPip
  • Group: Premium Member
  • Joined: Aug 7, 2002
  • Posts: 1807
well no see when i google emFrik my mp3 directory comes up and i do not want that to happen.  and i do not want every tom dick and harry to be able to go in there and DL stuff it is just not good!
  • BAA2U
  • PipPipPipPipPipPipPip
  • Group: Premium Member
  • Joined: Aug 7, 2007
  • Posts: 1403
What is your purpose for even having the mp3 folder there in the first place?
  • Avatar of dom
  • Chapter Four: The Imagination And Where It Leads
  • PipPipPipPipPipPipPip
  • Group: Premium Member
  • Joined: Nov 9, 2003
  • Posts: 1022
http://www.htaccesstools.com/htaccess-authentication/

use this and the htpasswd entry generator to make a password protected directory
  • Avatar of dada
  • VILLAIN
  • PipPipPipPipPipPipPipPip
  • Group: Administrator
  • Joined: Dec 27, 2002
  • Posts: 5538
well no see when i google emFrik my mp3 directory comes up and i do not want that to happen.  and i do not want every tom dick and harry to be able to go in there and DL stuff it is just not good!
You can still do what GZ suggests. Make your root folder inaccessible to everybody, then give the MP3 folder an obscure name that nobody will be able to guess. It'll vanish from Google that way too.