Click here to Skip to main content
15,920,438 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello guys,

I have one query regarding cross site request forgery..
the issue is whenever click on save button and Firefox tamper data is start it tampers all the textbox input fields and allowed to change the value and its save the changes value on database..

but i want to restrict the data that updated from tamper data plugin ,,,
how to do it?

please let it me know as soon as possible.

thanks in advance!!!!


regards,
rajshree.
Posted

1 solution

I don't think you can restrict this behaviour.

Instead, you have to have a concrete validation mechanism, which properly analyzes the data received from client before uploading it to the Database.

Write logic to handle the validations at both client and server sides. Also make sure that data are in your intended format. Don't use Inline Queries for Database, rather go for Parameterized Query or Stored Procedures to avoid SQL Injection attack.

There are many other Security Precautions, which you can consider while coding. Please search on Google about this, you will find the instructions.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900