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

    Customized Dansguardian Access Denied Page not showing

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 2 Posters 2.6k 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.
    • M Offline
      molaeim
      last edited by

      I slightly changed the dansguardian block page html codes under:
      /usr/pbi/dansguardian-amd64/local/share/dansguardian/languages/ukenglish/template.html

      I Saved and then restarted the whole physical machine.
      However my changes still not appearing.
      what else do i need to do ?

      1 Reply Last reply Reply Quote 0
      • R Offline
        rjcrowder
        last edited by

        I'm not currently looking at it, but I believe the block page is specified in the UI. If so, you need to change it there. Otherwise your changes will be overwritten.

        1 Reply Last reply Reply Quote 0
        • M Offline
          molaeim
          last edited by

          Thanks for your reply.
          Sorry if I am not that expert, what do mean about UI ?

          Also I had another question, I want to release the .exe and some more extensions. I added # before them to be ignored and saved and the restart the whole system.
          /usr/pbi/dansguardian-amd64/local/etc/dansguardian/lists/bannedextensionlist

          However still it is blocked.
          what do you think I else need to do.

          1 Reply Last reply Reply Quote 0
          • R Offline
            rjcrowder
            last edited by

            I believe content for the block page is specified on the logging/reporting Web interface page.

            DO NOT directly change any of the configuration files… change them using the web user interface (under services/dansguardian).

            1 Reply Last reply Reply Quote 0
            • M Offline
              molaeim
              last edited by

              Unfortunatly it doesnot want to work. I went through all the files but only file matching with the Access denied page is in
              /usr/pbi/dansguardian-amd64/local/share/dansguardian/languages/ukenglish/template.html
              My changes are there but it doesn't show on client machine, on client machine still the default page comes. I don't know where that page is saved ?

              1 Reply Last reply Reply Quote 0
              • R Offline
                rjcrowder
                last edited by

                Not sure I understand. Did you change the page content using the user interface page?

                1 Reply Last reply Reply Quote 0
                • M Offline
                  molaeim
                  last edited by

                  I logged to PfSense Dashboard. From the top menu selected "Diagnostic", from the dropdown menu select  "Edit File"
                  I brows the following path
                  /usr/pbi/dansguardian-amd64/local/share/dansguardian/languages/ukenglish/template.html

                  I made some changes such as : Organisation name and background color and also added more text.
                  (in terms of HTML coding, I am in good level,  so there is nothing wrong with the tags that I added)

                  I then Saved

                  And finally reboot the Pf sense through the Diagnostic > Reboot

                  When I go back to the above path all my changing and text are there but when I load a restricted page on a browser still I see the default Access denied page with the yellow color on the top.

                  Would be grateful if you could help me please.

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    rjcrowder
                    last edited by

                    Go under the dansguardian service and use the log and reporting page to make your change. You cannot directly edit the files. They will be overwritten. I don't know how many times I need to say it. STOP directly editing the files!

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