![]() |
[chmod] Help!
I want to denie /public_html/ only!... But if I put [CHMOD] 666 .. Then I am un able to view my documents/text files inside my directory! :/
I don't want the public knowing what I have inside, but then again I want to be able allow access to specific material to the name I only know..... :helpme Hopefully you guys understand what I mean. |
ummmm... you want only yourself to be able to access shit inside?
.htaccess order allow,deny allow from yo.ur.ip.address deny from all |
Or you could use .htaccess to password protect the directory
|
I don't want /public_html/ to be viewed online at all!.... I only want to be able to point to a file example /public_html/Wokring_Project.txt ... and only it be visiable online for other people.
|
thread goes bumpy :(
|
Quote:
|
create ~/public_html/.htaccess
put 'options -indexes' in the file |
public_html is meant to be viewable from the web, if you want to store some stuff non-viewable from the web, just creat a seperate dir for that...
|
Quote:
it brings me to the root directory of all the files which are located in /elite/ |
First of all, the reason you couldn't see your files when you did a "chmod 666" is that directories have to be executable or you will not be able to enter or access any files in them.
If I understand what you're requesting, you want the directory to be accessible to the web, but you want it so that you have to know the name of the file in order to read it. If that's the case, do this. 1. Set your directory to 755 (if you haven't already fixed that problem) 2. put a blank index.html in the directory (NOT Index.html...keep it all lower case) 3. As an added measure, as recommended above, upload (IN ASCII MODE) a .htaccess file in the directory (that's DOT htaccess) and in that file, put the following lines in it (use a text editor like notepad to create this file. Do NOT use Word or something similar) Options -Indexes DirectoryIndex index.html index.htm Now, no one can view the files in that directory unless they know exactly what the file name is. -- Bill |
Quote:
Thanks you so much!.. the problem was that I put index.html with a capital letter! |
| All times are GMT -7. The time now is 11:09 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123