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.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.
    • P
      pola090
      last edited by

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

      1 Reply Last reply Reply Quote 0
      • AhnHELA
        AhnHEL
        last edited by

        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

          Yes unfortunately i dont have gui access  i only have ssh

          1 Reply Last reply Reply Quote 0
          • D
            dhatz
            last edited by

            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
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              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

                @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
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  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

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

                    1 Reply Last reply Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      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
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.