GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   [chmod] Help! (https://gfy.com/showthread.php?t=525402)

tw1st3d 10-07-2005 10:57 AM

[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.

Lycanthrope 10-07-2005 11:03 AM

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

Thumbler 10-07-2005 11:14 AM

Or you could use .htaccess to password protect the directory

tw1st3d 10-07-2005 11:34 AM

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.

tw1st3d 10-07-2005 07:07 PM

thread goes bumpy :(

PolySix 10-07-2005 07:46 PM

Quote:

Originally Posted by tw1st3d
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.

Just put a blank index.html under your web root.

studiocritic 10-07-2005 07:52 PM

create ~/public_html/.htaccess
put 'options -indexes' in the file

woj 10-07-2005 08:01 PM

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...

tw1st3d 10-08-2005 06:29 AM

Quote:

Originally Posted by PolySix
Just put a blank index.html under your web root.

All right I did that. However, it does not find Index.html the main file to actiave it ones I type url : http://blahablahablh.com/~jussss/elite/

it brings me to the root directory of all the files which are located in /elite/

LBBV 10-08-2005 07:54 AM

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

tw1st3d 10-08-2005 11:19 AM

Quote:

Originally Posted by LBBV
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



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