Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to prevent form submission out side of web application  RSS feed

 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I wish to prevent all form submission to my website except from my own web-site. Assume somebody copied my form to a new html file and submitted to my site, my site should not allow this.

Please share your ideas

Regards
 
Bajji Pat
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Pls elaborate, if ur intention is to protect your application from spurious usage, in that case have some basis for checking i.e check for some field
in the submitted form that makes it a valid submit..

Regards
Bajji Pat
 
alan do
Ranch Hand
Posts: 354
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
initialize a session at the pages on your site where the form is being submitted from. before process the submit, check the session to see if that session exists before processing. if you already managing session, put another attribute, say 'validEntry', with a boolean into the session. check for this value instead of whether or not session exists. -/a
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!