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

    Squidguard redirect URL not working

    Scheduled Pinned Locked Moved pfSense Packages
    2 Posts 1 Posters 3.8k 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.
    • R
      rwalker
      last edited by

      Have Squidguard up and running and wrote a vbscript page to redirect blocked pages.  If I put the redirect URL as "http://www.example.com/Blocked.aspx" I get a URL like this "http://www.example.com/Blocked.aspx&a=192.168.100.182&n=&i=&s=default&t=blk_BL_porn&u=http://www.porn.com/".

      I need a ? at the end of the URL before the parameters.  I have tried all the combinations below:
      "http://www.example.com/Blocked.aspx?" - Get no parameters in the URL.
      "http://www.example.com/Blocked.aspx?a=%a&s=%s&t=%t&u=%u" - Get no parameters in the URL.

      Do I need to escape the "?" somehow?  How do I get this working?

      Thanks,
      Roy

      1 Reply Last reply Reply Quote 0
      • R
        rwalker
        last edited by

        Well it was pretty easy - I had to check "Do not use the DNS Forwarder as a DNS server for the firewall" on the General Setup page.  Restarted Squid and with just the ? at the end of the redirect URL it works fine.

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