Hello everyone, I'm looking for a way to secure my site (MPOG) becausemy site is hacked (LEVEL 99 ALL).
Printable View
Hello everyone, I'm looking for a way to secure my site (MPOG) becausemy site is hacked (LEVEL 99 ALL).
anti-sql injection
Could you give me one?
go to release section Xzeeon made a topic of it.. but his way is not rly safe/
its on the same topic
~IcemanCode:function sanitize_data ( $sql ) {
return preg_replace( "/[^a-zA-Z0-9 ]/i", "", $sql );
}
Don't use that web, neither FGunZs one.
Ok , So add that?
What site taken. ? please
MPOG = no
FGUNZ = no
And .. ...
No, it strips out anything but a-z, A-Z, and 0-9. And I find it laughable you're suggesting as I told you, despite still promoting your "safe" anti-SQL function.
Considering this is what I posted earlier, I'd say it's perfectly safe - as long as sanitize_data() is called for all data being accepted via $_GET and $_POST, and you should be clean thus far. e.g.:
..would be..Code:$user = $_GET['user'];
Don't forget to include the sanitize_data function in whatever script is calling it!Code:$user = sanitize_data ( $_GET['user'] );
"anti-sql injection" isn't the key to solving all possible security vulnerabilities - what about XSS? What if another vulnerability in the MServer daemon resulted in root (e.g.: Unchecked buffer - possibility for a buffer overflow).
Not to mention, any other vulnerable service could be at fault.
OP, there's too many possible areas that could be gone wrong - start by fixing the forementioned.
I dont understand -_- , i need anti sql for my regpage and my upload emblem clan , please .