X-Xss-Protection "1" disable script demo

Visit this page using this link:



The XSS filter (in Chrome at least) will detect the script in the GET param is present in the DOM and block it from loading. This can be used to disable arbitrary script on the page and is the default setting if you do not set the header.


This script shouldn't load, check for an error in dev tools.

<script src="https://example.com/does-not-exist.js"></script>