Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I disable or hide the unwanted Disqus ads on my website?

Imagine that one day, suddenly, random ads started appearing on your website...

Recently Disqus started forcing unwanted ads inside of the Disqus comments, displaying those nasty ads on your website(s) without your knowing. It seems that they only target the sites with "big enough" daily traffic or use some other arbitrary criteria, so the ads do not appear on all the websites, but only on relatively busy ones.

This way Disqus "forces" you to upgrade to the paid subscription plan - for the paid users these ads become optional (i.e. you can disable them in your Disqus admin panel).

What to do if you don't want to pay? How to disable these ads? Is there an easy, quick-fix solution for this?

At least until we have the time to switch to another commenting system.

like image 811
Eric Gopak Avatar asked Jan 21 '26 01:01

Eric Gopak


2 Answers

You can hide the ads iframes with CSS (note that what @DanielGale said is correct - this will be a cat and mouse game, your CSS selector will have to adapt):

iframe[src*="ads-iframe"] { display: none; }
like image 98
DeanAttali Avatar answered Jan 23 '26 14:01

DeanAttali


I was able to remove adds with this simple CSS entry:

div#disqus_thread iframe[sandbox] {
        max-height: 0px !important;
}

This works because the ads are served in an iframe with a 'sandbox' attribute.

like image 34
Bruce Momjian Avatar answered Jan 23 '26 14:01

Bruce Momjian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!