Jump to content

Recommended Posts

Hi all,

 

I just started to learn how to use ajax by using the jquery library. But i was wondering if there are any drawbacks or special (extra) things to pay attention to securitywise.

Since one can not rely on client side filtering or validation i thought when the processing script does this like normally would be the case there would be no other security extra's.

 

Is anyone experienced with this? I really have no idea and i just followed a simple tutorial to use jquery with ajax.

 

Link to comment
https://forums.phpfreaks.com/topic/228341-ajax-and-security/
Share on other sites

You are much better off using a post and gathering the data sent back from php than relying on client-side security.  They can easily change that, and get around any filter you set in that manner.  JQuery & AJAX will allow you to do the filtering/posting/and whatever else you need without the need to refresh the page though, which is a big up on the users side.

Link to comment
https://forums.phpfreaks.com/topic/228341-ajax-and-security/#findComment-1177423
Share on other sites

I think i should clarify myself more, because i totality agree with you that we cant rely on client side validation(ill probbaly add it just for extra look and feel). But since i never did something with ajax as a medium (to sent and retrieve stuff) i was wondering if i need to add more (additional) filtering sanitation as i would normally do.

 

In other words, normally i have a form.php with an action to process.php that last one does all the filtering and sanitation. Now when ajax is put between them is there something extra to watch for?

Link to comment
https://forums.phpfreaks.com/topic/228341-ajax-and-security/#findComment-1177430
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.