Which of the following is a method for securing web applications against Cross-Site Request Forgery (CSRF)? MCQ with Answer and Explanation

Which of the following is a method for securing web applications against Cross-Site Request Forgery (CSRF)?
A. Input validation
B. Using HTTPS
C. Output encoding
D. Using anti-CSRF tokens
Answer: Option D
Solution (By JKSSB Mock Tests)
Anti-CSRF tokens are a common defense, where a unique token is included in forms and validated on the server to ensure the request originates from the legitimate user.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Internet and Web Technologies Questions

Question #1
Which of the following parameters accurately defines the internet term 'Hypermedia Link'?
A. An active reference link that connects a webpage element to an image, sound file, video stream, or alternative web document
B. A private encryption password key used inside email databases
C. A specialized script built to clear out browser histories automatically
D. An unlinked plain text string value detailing system hardware models

Correct Answer: Option A


Explanation:
Hypermedia links connect diverse media elements across the web, allowing users to jump seamlessly from text to video or image files via a simple click.

This question belongs to: Computer Internet and Web Technologies
Question #2
What mechanism does a web browser implement to store layout stylesheets and image files from visited websites inside device storage to avoid re-downloading them on subsequent visits?
A. Altering localized device hardware MAC address registries
B. Browser Caching
C. Running outbound SMTP mail server delivery routines
D. Static FTP file catalog adjustments

Correct Answer: Option B


Explanation:
Browser caching saves static website assets (like logos, CSS files, and scripts) to the local hard drive, reducing page load times and saving bandwidth during repeat visits.

This question belongs to: Computer Internet and Web Technologies
Question #3
Which of the following HTTP response status codes indicates a '302' redirection error/behavior context?
A. Found / Temporary Redirect
B. Moved Permanently
C. Internal Script Crash
D. Bad Request layout

Correct Answer: Option A


Explanation:
The HTTP status code 302 Found (historically 'Moved Temporarily') indicates that the requested resource resides temporarily under a different URI.

This question belongs to: Computer Internet and Web Technologies