If I just disable error reporting across my website am I safe from anyone discovering the information in my SQL databases?
also, would this prevent XSS attacks completely?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Turning off error reporting is to preventing database injection/XSS attacks as closing your eyes is to preventing getting mugged. Nothing protects you from attacks like actually going through your code and covering up each individual security risk manually (whether that’s blacklisting
exec()-type commands, using prepared statements, timeouts, those too-many-failed-tries-counters, whatever it may be).