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

How to disable http referrer check using ssh

Scheduled Pinned Locked Moved General pfSense Questions
9 Posts 4 Posters 23.7k 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.
  • P
    pola090
    last edited by Dec 2, 2012, 7:24 PM

    i would like to know the command to disable http referrer checks

    1 Reply Last reply Reply Quote 0
    • A
      AhnHEL
      last edited by Dec 2, 2012, 8:29 PM

      Are you speaking of the checkbox in the GUI under System/Advanced/Admin Access?

      AhnHEL (Angel)

      1 Reply Last reply Reply Quote 0
      • P
        pola090
        last edited by Dec 2, 2012, 8:48 PM

        Yes unfortunately i dont have gui access  i only have ssh

        1 Reply Last reply Reply Quote 0
        • D
          dhatz
          last edited by Dec 3, 2012, 1:17 AM

          I can think of two ways:

          1. Edit the config.xml file by hand (from ssh using vi) to add the nohttpreferercheck (note: small typo here, if any dev is watching, it should be nohttpreferrercheck) option in section
          2. Connect to pfsense with ssh, then instruct your browser to tunnel web traffic using socks over SSH (exact configuration depends on the ssh client)
          1 Reply Last reply Reply Quote 0
          • J
            jimp Rebel Alliance Developer Netgate
            last edited by Dec 3, 2012, 1:03 PM

            If you're on 2.0.2 or 2.1:

            pfSsh.php playback disablereferercheck

            If you're on 2.0 or 2.0.1, you can go into the PHP shell and execute the equivalent set of commands as the script does:

            global $config;
            
            $config = parse_config(true);
            
            $config['system']['webgui']['nohttpreferercheck'] = true;
            
            echo "Disabling HTTP referer check...";
            
            write_config("PHP shell disabled HTTP referer check");
            
            echo "done.\n";
            

            Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • D
              dhatz
              last edited by Dec 3, 2012, 4:06 PM

              @jimp:

              pfSsh.php playback disablereferercheck

              I know I'm nitpicking but should it be spelled with two "r"s ?

              referrercheck

              1 Reply Last reply Reply Quote 0
              • J
                jimp Rebel Alliance Developer Netgate
                last edited by Dec 3, 2012, 4:25 PM

                No, no it should not.

                http://en.wikipedia.org/wiki/HTTP_referer

                Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • D
                  dhatz
                  last edited by Dec 3, 2012, 4:28 PM

                  LOL, indeed you're right. Live and learn :)

                  1 Reply Last reply Reply Quote 0
                  • J
                    jimp Rebel Alliance Developer Netgate
                    last edited by Dec 3, 2012, 4:30 PM

                    Well if it were any other use of the word, you'd be right… but the misspelling made it into the spec and we're stuck with it now. :-)

                    Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    9 out of 9
                    • First post
                      9/9
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                      This community forum collects and processes your personal information.
                      consent.not_received