It indeed WOULDN'T make the file unreadable to other users, however, it WOULD force the web server to run the .php3 file. .inc files are no doubt unknown by the web server, so they would be passed on to the browser.
Renaming the file is the best solution.
The other thing that can be done is to turn off directory browsing in the web server. This isn't a 100% solution, but it would surely cut down on the odds of a breakin.
nico wrote:
Why would that make the file unreadable for other users?
I wouldn't know any real solution for this problem, tho.. here's something i just came up with:
making sure that nobody can list your directory contents is a partial solution, but then people can still know what your php files are called if they go to your website.
unless you make an x.php which includes the other files (and you get urls like yourdom.com/?p=pagecode&otherparams=some_more)! and then make a .htaccess with DirectoryIndex x.php and people will never know what files you have in your dir, and if they don't know the names, they cant read them 🙂
however, if they manage to find out the name, then you're screwed.
i'm no unix guru so there might be other ways to get the dir's contents, but i've never heard of them..
hmm, just thought of the fact that if there is no readable index.php they might just try to read .htaccess 🙂
anyway, this at least blocks some people.