Security in PHP

3

I'm new to php security and would like to know if the items listed below would help make my site safer.

  • SSL (Secure Socket Layer)
  • PHP
  • Remove all possible information referencing the server (PHP and apache).
  • Use the most current version of PHP whenever possible.
  • Handle any error.
  • Never display any MySQL, PHP, and server errors.
  • Avoid session and cookie theft.
  • Sanitize all input.
  • Obfuscate
  • JavaScript
  • JSON
  • asked by anonymous 06.05.2015 / 14:23

    1 answer

    1

    Interesting, but such measures would you be implementing in the solution?

    All these measures are valid but I would also add:

    • Use token to submit forms.

    • Validation of client-side and server-side forms.

    • ACL Settings.

    Anyway, there are a number of other factors that would help with security.

    I'm not going into details about time and difficulty, some of these things take a while.

        
    17.08.2015 / 21:06