Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Pages: [1]
Send this topic | Print
Topic: Hide files  (Read 918 times)
« on: May 31, 2008, 11:08:04 AM »
martin Offline
Newbie

View Profile
*
Posts: 2



How can I prevent users from see certain files from their browser? For instance if I make a file containing passwords I don't want anybody to be able to read it but at the same time it must be readable for scripts. Is this possible?
Report to moderator   Logged

 
« Reply #1 on: June 12, 2008, 12:34:45 AM »
chickenmeister Offline
master of chickens
Global Moderator
Member

View Profile WWW
*****
Posts: 220



You can change the permissions on the file (via chmod, etc), such that others cannot access the file. However, this won't work if your on a free t35 hosting plan, as it disregards file permissions.
Report to moderator   Logged

Hello world!
« Reply #2 on: June 12, 2008, 08:36:28 AM »
Alex Melen Offline
President / Founder
Administrator
Addict

View Profile WWW
*****
Posts: 2,175



You should be able to chmod permissions on free hosting. You just can't use any permission based commands via .htaccess (since that's disabled). I know a few of our members use php password protection scripts (I remember there was one on hotscripts that was popular).
Report to moderator   Logged

« Reply #3 on: June 12, 2008, 06:27:49 PM »
martin Offline
Newbie

View Profile
*
Posts: 2



Thank's for your replies, guys.

I've already solved it by just storing the hashed password.
Report to moderator   Logged
« Reply #4 on: August 24, 2008, 01:03:28 PM »
Webbie Offline
Newbie

View Profile
*
Posts: 10



You could also set the permission via .htaccess file in your public_html folder.
Report to moderator   Logged
 
Pages: [1]
Send this topic | Print
Jump to:  

Powered by SMF | SMF © 2006-2008, Simple Machines LLC