troubleshooting Question

limit access

Avatar of Konstantin Krolikov
Konstantin KrolikovFlag for Israel asked on
PHPLinux
20 Comments1 Solution330 ViewsLast Modified:
hello experts, i need to limit the access to files or directory to some users, and i have no idea how i do this.
im working with linux..

i want that only php page will have the access to get files from directory and if someone will search the file url he will get no access, he will get 403 error..

example:
i have directory of messages, witch called messages.
i want to load file 4065. so i write on the url, http://localhost/messages/4065.txt - and i'll get the result, the content that was inside the file..
i want to make sure that only when user login, the php file will be the only one whom can access the messages directory or to the files inside..

how do i do this?
how i block from everyone to access folder and only some php files have access..

lot's of thanks ahead.. :)
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 20 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 20 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros