|

And, Stu, the files are on a server in Virginia, not on my computer 
| quote: | Originally posted by FuzzQi
These functions here are good for wrapping around any variables that get passed to the database.
addslashes()
mysql_real_escape_string()
real_escape_string()
str_replace()
They stop things like SQL injection attacks |
I've been using the second one quite consistently thus far... is it enough to avoid people tampering with the database?
| quote: | Originally posted by FuzzQi
Don't use $_REQUEST over $_SESSION, $_GET or $_POST, it's a vulnerability (session variable could get overwritten by the haxxor putting ?variable=value in the url) |
Note taken 
| quote: | Originally posted by FuzzQi
Store whatever you can of your procedures outside of the site's web root and link to them in your live pages by using require() or include(). If PHP crashes, these pages will be sent to the browser as plain text and you generally don't want php code to be seen by the visitor. |
I was already doing it because I found it easier to edit several tiny files than one giant file. Nice to know it's got more advantages 
| quote: | Originally posted by FuzzQi
Don't rely on $_POST variables to be secure. Although they don't seem to be as manipulable as $_GET thanks to things like Tamper Data you can edit anything sent in a request header! |
Hhmm... this could turn out to be a vulnerability. I'm using AJAX throughout the site, with loads of $_GET variables, so although the requests don't ever show up in the address bar, someone can just snoop around the javascript files and manipulate the variables.
Hmm... I wonder how I can sort this problem out.
___________________
Indiana Clones Upcoming Sets
[ I May Upload Something Someday ]
|