Hey everyone.
I'm just finishing up writing a basic content management system,
standard stuff really, just pulling info out of a database and allowing
priveliged users to login and post it. I wanted to know: what security
tips can you guys give me for improving it? I've read somewhere that
when using stuff like $_GET['id'] to display a specific row, it's
useful to add code to protect it from sql injections and such? I'm
obviously md5 encrypting passwords and using cookies/sessions to store
user logins. In terms of input validation I'm a little sparse - are
there any that I really need to implement? Bear in mind that only
trusted and approved staff can access submission forms in the first
place.
Finally, are there any drawbacks to using mod_rewrite to change urls
from foo.php?=bar into /foo/bar/ ? Obviously these look better and are
apparently more friendly to search engines, but can it have negative
effects on server load etc?
Thanks very much everyone, this group has really helped me with this
project so far.
Matt
I'm just finishing up writing a basic content management system,
standard stuff really, just pulling info out of a database and allowing
priveliged users to login and post it. I wanted to know: what security
tips can you guys give me for improving it? I've read somewhere that
when using stuff like $_GET['id'] to display a specific row, it's
useful to add code to protect it from sql injections and such? I'm
obviously md5 encrypting passwords and using cookies/sessions to store
user logins. In terms of input validation I'm a little sparse - are
there any that I really need to implement? Bear in mind that only
trusted and approved staff can access submission forms in the first
place.
Finally, are there any drawbacks to using mod_rewrite to change urls
from foo.php?=bar into /foo/bar/ ? Obviously these look better and are
apparently more friendly to search engines, but can it have negative
effects on server load etc?
Thanks very much everyone, this group has really helped me with this
project so far.
Matt
Comment