I need to write a client side javascript that prevents other 3rd party scripts requesting certain domain urls on their own. Is there a way to achieve this?
Example setup:
<html>
<body>
<script src="myscript.js" type="text/javascript">
<script src="third-party-script.js" type="text/javascript">
</body>
</html>
now third-party-script.js requests from the domain www.track-me.com, i want to be able to block outgoing track-me.com requests via code inside myscript.js.
technicalquestion.<meta>tag) might be the simplest solution (and is a best practice anyway).