Forum Moderators: coopster
At the moment, the only php files that are in my public_html folder at ones that only have include()s in them to server side code files. All the page coding is kept outside public_html. I did this thinking that if someone hacks my public_html folder, they still can't get to the actual server side code files. But in reality, is that even necessary? If someone hacks your site, they will get everything....making this is useless precaution, right?
Basically, is it a good precaution to keep all your code files outside of public_html or are they just as secure from inside public_html?
Thanks for your help
-EMAN
Even the non-sensitive include files can do that, as then they will not be independently spidered by search engines, and you won't have to rely on a robots.txt file to suggest that they stay out.