Jump to content
MakeWebGames

Recommended Posts

Posted

Re: another sql protection to help

You obviosly didnt code this as you just got back into coding

Posted

Re: another sql protection to help

 

You obviosly didnt code this as you just got back into coding

i didnt say i did but i dnt know ho did so i didnt say i found it on ej.am

Posted

Re: [mccode] another sql protection to help

Using mysql_real_escape_string() in this way can still be subverted, permitting injection of unwarranted SQL.

Consider where MySQL comes from...

Posted

Re: [mccode] another sql protection to help

lol

As it has been noted before there isn't much of a way to secure a site from sql injections..

All that can be said is secure every input, GET's , POST's and help prevent it .

most people use mysql_real_escape_string($content); or

mysql_real_escape_string(strip_tags($content));

just To cut down on user inputs...

 

Also this

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

You are not telling what you are doing

all that will do is sit in the header and do nothing

You havent told us that we need to include this on every page like

cleanIncomingData($idata);

or

checkIncomingData($idata, $minsize, $maxsize);

Posted

Re: [mccode] another sql protection to help

i don't think

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

will work mate

im sure it would need

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: [mccode] another sql protection to help

I have also seen this on ej.am it also does not secure your site.

ej.am is full of people who didnt even know you needed to code your own game i suggest in the future you dont use anything which says it will protect your site because 90% of the time it wont.

Posted

Re: [mccode] another sql protection to help

content = preg_replace("/[^a-zA-Z0-9]/","",strip_tags(trim($content)))

what about something like that?

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...