1 Replies - 348 Views - Last Post: 01 February 2013 - 07:08 AM Rate Topic: -----

#1 scottas  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 25
  • Joined: 10-November 11

[Question] How to prevent submitting form from other websites?

Posted 01 February 2013 - 04:17 AM

I looked throught my code and saw, that anyone who understands html and javascript can simply add stuff to my website using same form information as mine. How to prevent it? By the way, I am using jQuery, so form submitted without reloading or redirecting page. What should I add to target page, to allow submitting only from my website?
Is This A Good Question/Topic? 0
  • +

Replies To: [Question] How to prevent submitting form from other websites?

#2 CTphpnwb  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3034
  • Posts: 10,590
  • Joined: 08-August 08

Re: [Question] How to prevent submitting form from other websites?

Posted 01 February 2013 - 07:08 AM

You can't. This is one reason you can never trust the user. Always assume they're up to no good always validate inputs and use prepared statements when dealing with databases.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1