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

    Proxy filter/squidguard

    Scheduled Pinned Locked Moved Captive Portal
    1 Posts 1 Posters 799 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
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.