Possible Duplicate:
Best way to prevent SQL injection in PHP?
I am creating a news site and I have written down a list of things need for achieving security.
User + Site interaction
- sanitize all POST/GET functions with html-entities & mysql_real_escape_string
- if site is about to be online, TURN OFF, error reporting or customize it
- I don't use cookies, only sessions (Because sessions are less vulnerable)
- turn off directory listing
- make robot.txt to prevent indexing unwanted files
- For passwords, use salt + Md5
- only make ADMIN site accessible from one PC and one browser by getting ip, and browse info, otherwise throw in 404 Error.
I have implemented all those in my site. I know most of you will say use PDO / Msqli to sanitize, but I am a beginner in PHP and it is difficult for me to learn PDO/Mysqli or OOP
So, anything other you can provide will be awesome. thanks.