Gaming World Forums
General Category => Technology and Programming => Topic started by: cowardknower on June 17, 2008, 01:15:58 am
-
How do i do it? HELP ME
-
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?
-
http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/
-
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.
-
Couldn't you just connect to your webhost on FTP, right click the folder, and edit the folder permissions?
-
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).
-
the question is why you want something in a public directory that noone can get access to???
-
the host is bluehost. And actually yeah itd be better if I could password it that would be sweet.
-
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.
-
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!
-
What is your purpose for even having the mp3 folder there in the first place?
-
http://www.htaccesstools.com/htaccess-authentication/
use this and the htpasswd entry generator to make a password protected directory
-
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.