Jump to content
MakeWebGames

SQL Injection


kronow

Recommended Posts

Re: SQL Injection

in most cases thats something you will have to talk over with the person who runs your server its all security and in most cases even if you block some sql injections more can and will be made so your never really safe your best bet is to just grab up a backup 2-3 times a day maybe more depending on how fast your game moves

but if i was you i would have a talk with your server people and get that sorted out man

i hope this lil bit of info helps any

Link to comment
Share on other sites

Re: SQL Injection

also remember when people do that they are not using their own ip they are using a proxy

so just keep up on your proxy lists and have em blocked it may take time but at least your helping yourself a bit

heres a few of the proxy sites i know of

http://www.publicproxyservers.com/

http://www.proxylists.net/

also heres a site that has tons of proxy servers

www.theseproxies.com

Link to comment
Share on other sites

Re: SQL Injection

A simple but effective function:

function make_safe($var,$type)
{
// Type 1 is for numbers, 2 is for general text.
if($type == 1)
{
$return= abs((int) $var);
}
else
{
$return=mysql_real_escape_string($var);
}
return $return;
}

 

As I said simple but effective.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...