1

Is there any possibility using javascript to block the favicon of a webpage ?

I can change it, but I'm not able to find a way to block the original one. Is it possible ?

I tried this, without success :

var newLink = document.createElement("link");
newLink.setAttribute("rel", "icon");
newLink.setAttribute("href", "###");
document.querySelector("head").appendChild(newLink);

Thank you for your help !

2 Answers2

0

As far as I know you can delete the favicon from your own webpage by simply removing or renaming it..

I don't think it is possible to have favicons blocked from other websites and why would you want that?

Dani
  • 364
  • 1
  • 11
-4

I dont think you need to block the favicon....and you can block it in your browser settings