I am facing an issue with an hacker, who is injecting scripts through URL. For ex:
localhost:4502/content/mypage/homepage.html?<script>alert("XSS");</script>
this is showing an alert with "XSS".
I want to disable all the special character. I tried adding filter in dispatcher, modifying .htaccess of my webserver and writing java-script handler, but none worked for me.
I am using some query parameters in my application, so cant block all query params.
Please help to stop this script injection.