|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Aug 2005
Posts: 106
|
[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..... Hopefully you guys understand what I mean. |
|
|
|
|
|
#2 |
|
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
|
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 |
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Feb 2004
Posts: 4,076
|
Or you could use .htaccess to password protect the directory
|
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Aug 2005
Posts: 106
|
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.
|
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Aug 2005
Posts: 106
|
thread goes bumpy
|
|
|
|
|
|
#6 | |
|
Registered User
Join Date: Feb 2005
Location: Minnesota
Posts: 19
|
Quote:
|
|
|
|
|
|
|
#7 |
|
Confirmed User
Join Date: Jun 2005
Location: Irvine, CA
Posts: 2,442
|
create ~/public_html/.htaccess
put 'options -indexes' in the file |
|
|
|
|
|
#8 |
|
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
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...
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
|
|
|
|
|
#9 | |
|
Confirmed User
Join Date: Aug 2005
Posts: 106
|
Quote:
it brings me to the root directory of all the files which are located in /elite/ |
|
|
|
|
|
|
#10 |
|
Confirmed User
Join Date: Aug 2002
Location: Atlanta
Posts: 936
|
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
__________________
National Net Hosting. Handled. See our new line of inexpensive Dedicated Servers | Cabinets starting at $795 | CDN [email protected] | 888-4-NATNET | www.nationalnet.com |
|
|
|
|
|
#11 | |
|
Confirmed User
Join Date: Aug 2005
Posts: 106
|
Quote:
Thanks you so much!.. the problem was that I put index.html with a capital letter! |
|
|
|
|