Search code examples
htmlcssfacebookiframeblocked

How to detect a web page blocker and then act on it?


I have a website here and being a student in my school they block some website like Facebook but on my site I have a Facebook iframe.

So when I load the site in school I get the web blocker screen where the Facebook like button should be.

So is there anyway of detecting any web blocker and then if there is a web blocker disabling the iframe or the div it is in?

I don't know this is even possible but if anyone knows how it would be greatly appreciated.

Thank you so much.


Solution

  • You could try to load any image or script from facebook.com and see if it gets an error.
    (just make sure to change your code if Facebook changes their URLs)