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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-07-2005, 10:57 AM   #1
tw1st3d
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.
tw1st3d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-07-2005, 11:03 AM   #2
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
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
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-07-2005, 11:14 AM   #3
Thumbler
Confirmed User
 
Join Date: Feb 2004
Posts: 4,076
Or you could use .htaccess to password protect the directory
__________________
Thumbler is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-07-2005, 11:34 AM   #4
tw1st3d
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.
tw1st3d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-07-2005, 07:07 PM   #5
tw1st3d
Confirmed User
 
Join Date: Aug 2005
Posts: 106
thread goes bumpy
tw1st3d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-07-2005, 07:46 PM   #6
PolySix
Registered User
 
Join Date: Feb 2005
Location: Minnesota
Posts: 19
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.
PolySix is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-07-2005, 07:52 PM   #7
studiocritic
Confirmed User
 
Join Date: Jun 2005
Location: Irvine, CA
Posts: 2,442
create ~/public_html/.htaccess
put 'options -indexes' in the file
studiocritic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-07-2005, 08:01 PM   #8
woj
<&(©¿©)&>
 
woj's Avatar
 
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
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-08-2005, 06:29 AM   #9
tw1st3d
Confirmed User
 
Join Date: Aug 2005
Posts: 106
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/
tw1st3d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-08-2005, 07:54 AM   #10
LBBV
Confirmed User
 
LBBV's Avatar
 
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
LBBV is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-08-2005, 11:19 AM   #11
tw1st3d
Confirmed User
 
Join Date: Aug 2005
Posts: 106
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!
tw1st3d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.