Select Your Style

Choose Color style

How to remove XSS and protect your website

Cross-site scripting (XSS) is a security bug that can affect websites. If present in your website, this bug can allow an attacker to add their own malicious JavaScript code onto the HTML pages displayed to your users. It refers to client-side code injection attack wherein an attacker can execute malicious scripts  into a legitimate website or web application.

XSS  is one of the most dangerous and most often found vulnerabilities related to web applications. Security researchers have found this vulnerability in most of the popular websites,

so how to protect your website from XSS???

use this simple function to check input data in your php code

use it like that

remember “Never trust any input!”

that’s all, if you have any question about this subject or any other questions, feel free to ask me in comments or social media

2 thoughts on “How to remove XSS and protect your website”

Leave a Reply

Your email address will not be published. Required fields are marked *