Allow access to specific files only
I think this is the correct thread for this question?
I want to restrict the type of files that can be accessed on my web server.
For example only flash movies (SWF files) and one specific PHP file.
I can think of a number of ways of doing this:
1. Linux file permissions, but since the SWF files need to access various PHP files and those PHP files need access to other files themselves that may not work.
2. Using mod_rewrite if that is possible, I don't know as I have never used it.
Or is there some other method?
|