Production mode

Production mode

 

Continuing on the theme of security, another idea: having php.ini switch production=On. What it would so is: 

  • display_errors automatically disabled - or filenames, etc. are removed from error messages
  • phpinfo() doesn’t work - this is protection for people leaving debug pages for Google to grab and for automated exploit scritpts to visit then. Maybe too harsh - alternatively - doesn’t work if requestor is not localhost? This might be a problem with insecure URL fopen though.
  • expose_php off or stripped to not give out full version
  • max_execution_time and memory_limit ensured to not be unlimited
  • other things people constantly forget to configure correctly?

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.