Written by James McDonald

July 27, 2011

If you get a web page with “Advert blocked” on it, it’s not very descriptive, but basically it’s dansguardian (a web filter) stomping on an Advertisement:

To find out more about the problem I changed the dansguardian report setting “reportinglevel = 3” to “reportinglevel = 2” in /etc/dansguardian/dansguardian.conf and reloading dansguardian /etc/init.d/dansguardian reload

And then tried to re-access the webpage that is getting blocked. You then get a much more detailed bit of information:

I traced the correct Dansguardian configuration file I needed to edit by going into the dansguardian config directory /etc/dansguardian and searching for the offending website using fgrep:

cd /etc/dansguardian

# search for the domain that is causing the problem
fgrep tomshardware . -R

# and then editing the files by commenting out the website
vi lists/blacklists/ads/domains

# commented out by james.
# tomshardware.com

Title: Guardian – Advert blocked
Page Content: Advert blocked


Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Meraki Open Source Licenses

Until today I assumed that Meraki was built in-house with only closed source software. But having a look at the...


If you have Veeam backup failing with the Updating BCD failed with Cannot update SafeBoot flag and SentinelOne is...