Jump to content

Code injection prevention...


c_coder

Recommended Posts

Hello,

 

I only just learnt about these a few weeks ago too, so i'm no expert

 

However, I think a google search may get you quicker answers.

 

If it's your SQL database you're worried about, which i take it it is,

 

just google SQL injections

 

Tons of stuff will pop up

 

Hope this helps

Oh sorry....

 

That didn't really address your point did it  :D

 

To my limited knowledge,

 

these are only executed via user input sections

 

login, sign up, etc

 

real escape stings seem to be the way to protect against it, and stipping slashes...etc

 

so i beleive a static site to be ok....?

 

i'm probably wrong ;)

The most common place to get something like that is if you have something like:

 

page.php?id=xxxx

 

If you then use the xxxx to adjust the database.

 

Like alexhoward said, the best way to avoid these things are:

 

mysql_real_escape_string

 

and do the stripslashes

 

Thats all I use and I've had no problems to date :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.