इनपुट मान्यताकरण — प्रयोगकर्ताको इनपुट प्रक्रिया गर्नु अगाडि यो अपेक्षित मापदण्ड पूरा गर्छ वा गर्दैन भनी जाँच गर्नु — एक मौलिक सुरक्षा अभ्यास हो। आक्रमणहरू प्रायः दुर्भावनापूर्ण इनपुटको माध्यमबाट आउन भएकोले, इनपुट मान्यताकरण (र सफाइ) गरिरहेको अनेक कमजोरीलाई रोक्न सहायता गर्छ। एक मूल सिद्धान्त: प्रयोगकर्ता इनपुटलाई कहिल्यै विश्वास नगर्नुस्।
प्रयोगकर्ता इनपुटलाई कहिल्यै विश्वास नगर्नुस्
ALL input from outside (users, APIs, files, requests) is UNTRUSTED — it can be malicious:
→ attackers send crafted input to exploit vulnerabilities (injection, XSS, etc.)
→ "never trust the client" — input can be anything, including attacks
→ Validate and handle ALL external input as potentially hostile.
