Which two techniques should you use?

You are developing an HTML5 web application that provides a discussion forum for users.
When a user registers to access the application, the user enters an email address.
Users can enter data that can result in cross-site scripting (XSS) attacks.
You need to ensure that email input is as secure as possible.
Which two techniques should you use? (Each correct answer presents a complete solution.
Choose two.)

You are developing an HTML5 web application that provides a discussion forum for users.
When a user registers to access the application, the user enters an email address.
Users can enter data that can result in cross-site scripting (XSS) attacks.
You need to ensure that email input is as secure as possible.
Which two techniques should you use? (Each correct answer presents a complete solution.
Choose two.)

A.
Remove all nonalphanumeric characters before submitting data.

B.
Use the email tag in forms where the email address is entered.

C.
Display all email addresses inside of an HTML5 ADDRESS element.

D.
Use jQuery validation with a regular expression to ensure that email addresses are valid.

E.
Ensure that all form data is encrypted when it is submitted.



Leave a Reply 3

Your email address will not be published. Required fields are marked *


Xavier Chuchu

Xavier Chuchu

Va te faire futter!

nex-54

nex-54

Regular expression for email address is unbelievable long and difficult. D is not good approach.

Jason Wilson

Jason Wilson

Incorrect

The answer and explanation would be correct if all you were interested in was valid email addresses, but the question involves security. You need to make sure that 1) no scripts were uploaded and 2) the data is encrypted. I would go with D and E