Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Proxy filter/squidguard

    Scheduled Pinned Locked Moved Captive Portal
    1 Posts 1 Posters 930 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.
    • V
      vishuna2010
      last edited by

      Good day Everyone this is a little project i have been working on.
      i wanted to post my own access denied page insted of the default squid message.
      what i have done is to pull the sgerror.php using winscp path /usr/local/www/ and add a few line of code se code below in bold the other is for debugging purpose.
      so what i have done is to create a index.html and place it in the www folder and use the code to display the custom page as an access denied error page.
      i have attached the screenshot
      hope you enjoy.

      if($html){
      header("location:http://{$_SERVER['HTTP_HOST']}/index.html"); die();
      //Redirect the user to the index.html file
              //$html = file_get_contents("/usr/local/www/index.html");
      //print_r($_SERVER); die();
      //die( $html );
      }

      1 Reply Last reply
      Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post
      Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
      Privacy Policy · Cookie Policy