SarkariResultess QA Bank

XSS से बचने की basic practice क्या है? के सही और गलत approach में क्या फर्क है?

Other 0 Views Verified
XSS से बचने की basic practice क्या है? के सही और गलत approach में क्या फर्क है? सही विकल्प चुनें और code/solution को समझें।
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

हर input को md5()

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

HTML escaping कभी न करना

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

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

Context-appropriate output escaping जैसे htmlspecialchars() उपयोग करना
Additional Explanation
XSS prevention में context-aware output encoding महत्वपूर्ण है।
Verified

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

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