Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Dansguardian Block Page

    Scheduled Pinned Locked Moved pfSense Packages
    4 Posts 2 Posters 2.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Q
      qwaven
      last edited by

      Hey all,

      So I decided to upgrade my PFSense box to 2.1-Release. I've noticed that my Dansguardian is now showing a blocked page for ads. I can't for the life of me remember how I disabled this previously.

      I've found /usr/share/dansguardian/languages/LANGUAGE/template.html

      however this does not seem to change anything when edited. I don't mind showing a blocked page for pages that have been blocked but showing 'access denied' all over the place per/ad is not preferable. :)

      I see in the dansguardian config file options to replace blocked images with transparent1x1 gif. Which I am also guessing is not working; hence the ads. :P

      Anyone able to help me figure this out? Would be greatly appreciated.

      Thanks!!

      1 Reply Last reply Reply Quote 0
      • Q
        qwaven
        last edited by

        Is this the correct location for the template files? I also found this:

        /usar/pbi/dansguardian…etc

        Not sure what pbi is.

        Anyway hope someone can help!

        Cheers

        1 Reply Last reply Reply Quote 0
        • marcellocM
          marcelloc
          last edited by

          On 2.1 all packages are under pbis.

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • Q
            qwaven
            last edited by

            Hey Marcelloc,

            Thanks for your response. Not sure why I didnt try the PBI files before.

            Editing the template file seems to work now.

            So I am able to display a blank page for blocked content.

            Any idea why the ads image replacement feature does not work?

            
            # Banned image replacement
            # Images that are banned due to domain/url/etc reasons including those
            # in the adverts blacklists can be replaced by an image.  This will,
            # for example, hide images from advert sites and remove broken image
            # icons from banned domains.
            # on (default) | off
            usecustombannedimage = on
            custombannedimagefile = '/usr/pbi/dansguardian-amd64/share/dansguardian/transparent1x1.gif'
            
            #Banned flash replacement
            usecustombannedflash = on
            custombannedflashfile = '/usr/pbi/dansguardian-amd64/share/dansguardian/blockedflash.swf'
            
            

            Any help would be great!

            Cheers!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.