XSS से बचने की basic practice क्या है? में error आए तो solution क्या है?

Other Published Updated 0 Views Verified
XSS से बचने की basic practice क्या है? में error आए तो solution क्या है? सही विकल्प चुनें और code/solution को समझें।
Looking for the latest Sarkari Result 2026 updates? Check the latest government exam results, merit lists and result updates on Sarkari Resultess.
Sarkari Resultess
Questions & Answers

Answer & Explanation

4 Answers
Verified Correct Answer

Context-appropriate output escaping जैसे htmlspecialchars() उपयोग करना

Context-appropriate output escaping जैसे htmlspecialchars() उपयोग करना
Additional Explanation
XSS prevention में context-aware output encoding महत्वपूर्ण है। पहले exact error message, line number और input value check करें।
Sarkari Resultess
Editorial Answer 1
Verified

हर input को md5()

हर input को md5()
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Sarkari Resultess
Editorial Answer 2
Verified

HTML escaping कभी न करना

HTML escaping कभी न करना
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Sarkari Resultess
Editorial Answer 3
Verified

हर input पर केवल trim()

हर input पर केवल trim()
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Sarkari Resultess
Editorial Answer 4