Help me with these problems: In any profile, 2 IPs are detailed..I don't know why like that..Another one is when i posted an apostrophe, 3 slashes are added instead of only one..I have magic_quotes_gpc on and i also added an anti_injection function with mysql_real_escape_string, trim, strip_tags..I removed forbidden words like drop, update, etc..I just only need one function that can counter sql injection attack..
whats the point in having magic quotes on ? its a security issue
slashes are added for the mysql_real_escape_string to escape the quotes as quotes are used for mysql injection
2 ips are detailed coz you have added a code to show ips twice, thats your coding issue, people here cant solve it until you give out the coding of the page exactly where two ips are listed, chances are that 1 will be hostname while other will be ip
Amylee, is that realLy w0rking?c0z i'm already using that..I got it fr0m sweEt angel's p0st..I used it and rem0ve mysql_real_escape_string which i have added beFore..Yeh, it addslashes but don't kn0w if it realLy rem0ves $ sign.?
Does it realLy protects all submitTed f0rms?Like in sh0uTb0x and chat where i cAn't see addslashes there..I cAn Only seE adDslashes in pm and in my chatbot that's why i'm thinking if that realLy pr0tect all submited f0rms..
kiLLeR-eyEd_14 wrote:
Does it realLy protects all submitTed f0rms?Like in sh0uTb0x and chat where i cAn't see addslashes there..I cAn Only seE adDslashes in pm and in my chatbot that's why i'm thinking if that realLy pr0tect all submited f0rms..
if you dont see slashes in your shouts and chats , iut means you can be easily hacked , recheck your entire coding , i guess you have missed many parts where you are supposed to block sql injection
My problem now is my registration page..I d0n't think i've got wr0ng c0dings in my register.php..It's w0rking bEf0re buT then 1time it got erRor..The next page sh0ws erRor buT registrati0n was sucCessful..CAn s0me1 telL me what cAuses this pr0blem?
kiLLeR-eyEd_14 wrote:
My problem now is my registration page..I d0n't think i've got wr0ng c0dings in my register.php..It's w0rking bEf0re buT then 1time it got erRor..The next page sh0ws erRor buT registrati0n was sucCessful..CAn s0me1 telL me what cAuses this pr0blem?
dude dont the mess your text wid upper and lower case duh
magic quotes will be disable soon...Why not verify all field? eg the function that check for illegal characters in the registration page? only allowed A-Z 1-9 space .? in input element... thats what i did with one of ma unfinished script http://mobispace.cogia.net works perfectly..
Yeh..It's already in my script..The thing i'm talking about is or the thing i just want to have is a more secured script to counter sql injection attacks..I'm not contented with magic_quotes or addslashes..When i tried using mysql_real_escape_string, i got errors that why i can't use that function..
kiLLeR-eyEd_14 wrote:
SorRy duDe..I'm using m0bile that's why i cAn't av0id using upPer cAse..If i'm using a c0mpuTer, i wilL n0t go make hard typing with upPercAse..Lol
i use mobile A LOT !!
so dont tell me you cant avoid capital letters...
next time i'll just delete posts writen in aka LeeT text..
it's really annoying to read it,
almost same annoyance like all written in capital letters
kiLLeR-eyEd_14 wrote:
Yeh..It's already in my script..The thing i'm talking about is or the thing i just want to have is a more secured script to counter sql injection attacks..I'm not contented with magic_quotes or addslashes..When i tried using mysql_real_escape_string, i got errors that why i can't use that function..
metulj wrote:
i use mobile A LOT !!
so dont tell me you cant avoid capital letters...
next time i'll just delete posts writen in aka LeeT text..
it's really annoying to read it,
almost same annoyance like all written in capital letters
Then why don't you make strings converted into lower cases in outputs here..A user cannot avoid it and you were annoyed with it, so make a script that would convert upper cases into lower cases..