Re: Doubt about disabling access to PHP files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This directory should not be under your document root, instead it should lie outside the web server root, and you should use a php script to handle the download and the file and folder listing.
This way when the user clicks on "http://example.org/foo/bar/word.doc"; the "/foo/bar/word.doc" will be stripped of with a rewrite rule and sent to "download-or-list.php (for example) which should access the file and send it along or list the contents (in the case of clicking on "http://example.org/foo/bar/";) and output that.

You would then use permissions to allow access to the files on the shared drive by the domin user that the apache web server (and php running inside it as a module) - and these should be as restrictive as you need to make them.

Sent from my BlackBerry® wireless device


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux