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.
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.
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
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.
Explanation:
The HTTP status code 302 Found (historically 'Moved Temporarily') indicates that the requested resource resides temporarily under a different URI.
No comments yet. Be the first to start the discussion!