Change value in firebug and get with jQuery html() -
i'm changing value of
<span></span> using firefox firebug , using
$("span").html(); but getting changed value of span, , not original value generated when loading page.
how can original value of span, , not changed 1 firebug?
i'm asking security purpose, because i'm using value in ajax save database, @ now, can modified bad intentioned user using firebug or element inspection on chrome.
am doing correctly?
anything sent client-side can changed, can't rely on security of front-end. you'll have make sure server-side code secure.
even if stop user changing value of span, still replicate ajax request , change parameters send server accept. you'll need clean user's input on receiving end , filter out don't want.
if you're using sql database transactions should read-up on how avoid sql injection. mentioned user potentially try send sql database, harmful. here's interesting article on subject.
Comments
Post a Comment