What are the xss security parameters?



What are the xss security parameters?..

Answer / Gitika Chauhan

In CodeIgniter, to prevent Cross-Site Scripting (XSS) attacks, you can use the following methods:
1. Automatic HTML Escape: Enabled by default in CodeIgniter's output class (CI_Output). It automatically escapes any output that is sent to browser.
2. CI_Input Class: Use the `xss_clean()` function when you are handling user input data.
3. Form Validation Class: Set the 'xss_clean' validation rule for form fields.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CodeIgniter Interview Questions

What is csrf codeigniter?

1 Answers  


What are codeigniter drivers?

1 Answers  


What is csrf and how you can enable csrf in codeigniter?

1 Answers  


In which directory logs are saved in codeigniter?

1 Answers  


How to initialize a driver in codeigniter?

1 Answers  


Explain how you can enable csrf (cross site request forgery) in codeigniter?

1 Answers  


How to get random records in mysql using codeigniter?

1 Answers  


How to create base controller in codeigniter?

1 Answers  


What is route in codeigniter?

1 Answers  


What is the basic codeigniter url structure?

1 Answers  


Explain how you can extend the class in codeigniter?

1 Answers  


What are sessions in codeigniter?

1 Answers  


Categories