I noticed that someone was trying to get site info by modifying site URL by appending
/page.php../../../../../../../../../../../../../../../etc/passwd
I tried and got some server info. None of it is vital, but I'd like to be able to hide that too. Is there a way to stop this sort of attacks?
Perhaps I can evaluate URL request and if it contains ../../ redirect somewhere. Maybe I can do something via .htaccess file?