The more rapid the development of information technology in web applications, the interference, or the actions of attackers (hackers) are increasing as well. We can see this in print or electronic media, where these media report the actions of hackers to attack existing websites. XSS reflected attack is a type of attack that tries to insert or inject some script code, where the script code here…