I'm designing my first "serious" website at the moment as a bit of a personal project and I've been reading around about website security but wanted to pose my question here :)
I'm aware of the possibilities of SQL injections, JavaScript injections and cookie sniffing/spoofing and have taken a few measures I believe will work to prevent these happening (encrypting cookies (using SHA512, was using md5 but I read that it's not very secure), making sure user input gets sanitized, making most forms send information with the "post") but I'm not entirely sure if I'm being naive and missing things out...
It's the first time I've done something like this (and coincidentally my first thread on these forums) and I want to do it right so any help is appreciated :)
I've written the site using PHP and mySQL (on top of the standard HTML, CSS and JavaScript) and it uses quite a lot of AJAX too. It is not hosted yet either, using wamp to host it locally and develop it. What I'd like to know are the possibilities and measures you can take to prevent bad things from happening.
I'm aware of the possibilities of SQL injections, JavaScript injections and cookie sniffing/spoofing and have taken a few measures I believe will work to prevent these happening (encrypting cookies (using SHA512, was using md5 but I read that it's not very secure), making sure user input gets sanitized, making most forms send information with the "post") but I'm not entirely sure if I'm being naive and missing things out...
It's the first time I've done something like this (and coincidentally my first thread on these forums) and I want to do it right so any help is appreciated :)
I've written the site using PHP and mySQL (on top of the standard HTML, CSS and JavaScript) and it uses quite a lot of AJAX too. It is not hosted yet either, using wamp to host it locally and develop it. What I'd like to know are the possibilities and measures you can take to prevent bad things from happening.
Comment