@FireQuacker Accepted answers should be given a bonus, like 25% or 50% of their score, in the ordering. Because if we do not give an incentive or a reason to accept answers, the site should just stop accepting answers altogether. However, answers that are significantly better than the accepted one should be ordered before to reflect what the community thinks is the best (or more up to date) answer, despite what the OP though at the time (s)he accepted an answer.
Inevitably, you will see a comment from someone with security knowledge saying that this is insecure, followed by OP saying "Thanks, works perfectly now!"
it's because I am still to see good tutorials on anything that says "for increased security, we will have to do this and that BEFORE doing what you want to do"
most are "security are left as an exercise to the reader" or "this is insecure, don't put into production" but never tells why is insecure or how to secure things
and they expect someone that don't even know how to connect to a database be able to protect it against SQLi, against hard-coded credentials, how to connect over TLS, how to validate the certificate...
@MechMK1 I worked on more than one soft house... I've lost count of how many "fix this latter" comments are on the code...
there are security embedded in, but when the release window is closing and one pesky upload form is not working properly, "Accept-Origin: *" is pushed and it's done...
Everything would be so much more secure if it weren't for people
That would make an interesting motivation for a robot-apocalypse story... Instead of "keep humans from starting a nuclear war and killing themselves", have robots that are passionate about security who start killing off all the programmers
Shouldn't we ban all robot apocalypse stories? I'm afraid that robots may one day watch the Matrix, decide that the Matrix is a really cool concept, and set out to implement it.