[PHP] Securing XSS & SQL Injections

Status
Not open for further replies.

brsy

nah mang
May 12, 2011
1,530
272
Here is a very noob-friendly tutorial I found that may help a lot of people know exactly what an exploit is, and how to secure 'em.

 

RastaLulz

fight teh power
Staff member
May 3, 2010
3,926
3,921
How to stop XSS:
  • Use PHP's htmlentities() on all (or most) data submitted by the user when displaying it on your site.
How to stop SQL injections:
  • Use MySQLi's bind_param() function.
 

Xenous

o shi
Nov 15, 2011
383
101
or better yet he can not post a useless thread when theres onethe same below it
 

brsy

nah mang
May 12, 2011
1,530
272
or better yet he can not post a useless thread when theres onethe same below it
Why be such a troll? This is also informing the readers of what an SQL/XSS injection really is... The other thread only provides a piece of code that can prevent it. For all some people know, they're preventing something they have no knowledge about. So please, hush up and read what I wrote next time.
 
Status
Not open for further replies.

Users who are viewing this thread

Top