Jump to content
MakeWebGames

8 Lines to secure your site from known sql injections.


Haunted Dawg

Recommended Posts

  • Replies 164
  • Created
  • Last Reply

Top Posters In This Topic

Re: 8 Lines to secure your site from known sql injections.

Below is the code i use to secure all my sites against sql injections

Edit: Thanks for the observation killah

usage:

You're unable to view this code.

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

 

You're unable to view this code.

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

Link to comment
Share on other sites

Re: 8 Lines to secure your site from known sql injections.

yeah you have to remember that americans made php so everything is with a z and they spell colour from lol they have no sense in grammar at all (no offense) but its true

take english mess around with it and you have american lol which they diss the english by calling it english lol weird that huh

Link to comment
Share on other sites

Re: 8 Lines to secure your site from known sql injections.

 

You're unable to view this code.

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

Wont work.

 

You're unable to view this code.

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

 

i assume that you know of recurssion.

Note

You're unable to view this code.

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

 

The function can clean/ sanitize/sanitise an array of any depth.

EDIT: oops now i see what you meant :-o.

Link to comment
Share on other sites

Re: 8 Lines to secure your site from known sql injections.

This is totaly what happend:

1.- Had game open for 3 days got to much bandwith used and got suspended.

2.- Moved to new host.

3.- Exploit found and abused => 2 hours roll back.

4.- Sold because i do not have a paypal account. Many people were wanting to donate.

Got a problem with it?

Link to comment
Share on other sites

Re: 8 Lines to secure your site from known sql injections.

 

This is totaly what happend:

1.- Had game open for 3 days got to much bandwith used and got suspended.

2.- Moved to new host.

3.- Exploit found and abused => 2 hours roll back.

4.- Sold because i do not have a paypal account. Many people were wanting to donate.

Got a problem with it?

Thought your games were exploit proof?

Link to comment
Share on other sites

Re: 8 Lines to secure your site from known sql injections.

It is but this was not a sql inject. It was to do with the authenticate.php

Then it was exploitable... Meaning, it wasn't exploit proof. Right?

Well i think the answer is obvious. For all who can't work it out its yes :D

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