Google News
logo
Cyber Security - Interview Questions
Can you explain the ways to prevent an XSS attack?
Yes, we can prevent XSS attacks through three ways :
 
(i) Escaping : It is the process of stripping out unwanted data to secure the output.
 
(ii) Validating Input : This step ensures that the application is interpreting correct data while preventing any malicious data from entering.
 
(iii) Sanitizing : This process involves cleaning or filtering your input data. It also changes unacceptable user input to an acceptable format.
Advertisement