By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,968 Members | 1,684 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,968 IT Pros & Developers. It's quick & easy.

Securing the Web Folder

P: 25
Hi,
I have a folder in a server where all my php files reside. I mean the whole content of the web site is in that folder. So the problem is that if someone knows the filename of any php file, they can directly open the file without login in . I know that there are couple of ways to avoid this. Like adding a line of code to check session at the start of each page. Or to make an .htaccess file.
I am aware of the first method which is using sessions. But i dont have much idea on making a .htaccess file inside the folder which will prevent the user to access each file seperately.
Anyone has any idea . or comment which one is better or is there any other way to do this.
Thanks
Feb 25 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.