2
Answers

Implement Cross Site Request Forgery

Photo of Aniket Rana

Aniket Rana

5y
1.1k
1
I want to implement Cross-Site Request Forgery attack prevention in asp.net webform 
 
Presently I am using, AntiForgery.Validate(); in Page_preinit and submit event should I use this in other web forms also or use in only master page so that this functionality applicable throughout the application.
 
What should I do? give me proper solution in it. 
 
When I validate web form or any specific event at that time what can I do to protect my web 
application  
 
Thanks in advance 

Answers (2)

1
Photo of Rajanikant Hawaldar
32 38.8k 454.8k 5y
Refer these links 
https://www.c-sharpcorner.com/forums/how-to-prevent-csrf-attack-in-asp-net 
https://www.c-sharpcorner.com/article/csrf-attack-and-its-prevention-mechanism/ 
Accepted
1
Photo of Aniket Rana
NA 979 14.2k 5y
Thanks a lot, Rajanikant Hawaldar