Using JQuery to stop attempted injection attacks?

Hi - I was thinking of using JQuery to load forms into the DOM using ajax from a page on-load.

I was thinking this would be a great way to block injection / robots etc as the form is not visible in the DOM when they look at the page?

Anyone got any thoughts / experience this?

Thanks/
craig32768Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RoonaanCommented:
You need to check for injection serverside anyhow, so this is just a gimmick.

What form do you show your text browsers and/or mobile clients?
0
craig32768Author Commented:
I'll check serverside also - and probably use parameterised SQL - just thought this would stop the attempt in the first place?
0
RoonaanCommented:
If the serverside checks work. Why make something complex on the frontend, that will only lower your accessibility?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
craig32768Author Commented:
Just thought it would be a way of stopping the attack attempts in the first place. - Point taken though. Thanks for your input.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.