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

An HTTP_REFERER was detected other than what is defined in System | Disabled in System > Advanced > Admin Access.

Scheduled Pinned Locked Moved Routing and Multi WAN
httpdns override
9 Posts 2 Posters 3.1k 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.
  • M
    Modesty
    last edited by Jun 24, 2023, 7:36 AM

    Hi

    I have a hompage on my NAS. In this page I have buttons for quick go to different locations
    7cc6abe8-4a27-464b-a196-5ffbe0188bb6-image.png

    For my pfSense box i get this error
    An HTTP_REFERER was detected other than what is defined in System > Advanced (http://router.pfsense./). If not needed, this check can be disabled in System > Advanced > Admin Access.

    I must add that I do custom DNS overrides for my devices on my network, so router 192.168.0.1 is http://router.pfsense, but only pfsense box stop this

    Code in web page is:

    <div class="button-container">
        <button class="custom-button" onclick="window.open('http://router.pfsense', '_blank')" style="background-color: ligthlue;">router</button>
      </div>
    

    This page I dont understand what to do, and a bit scared to do a "test"
    631cabb5-c2e5-497f-b951-3876c8643a51-image.png
    Any Idea how to fix this?

    Everything can be rebuilt!

    J 1 Reply Last reply Jun 24, 2023, 7:56 AM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @Modesty
      last edited by Jun 24, 2023, 7:56 AM

      @Modesty why would you point router.pfsense to pfsense IP? Why would not use its actual dns record.. which would be what is setup in general

      But as the error says either assign an alternate, or disable the check

      ref.jpg

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

      M 1 Reply Last reply Jun 24, 2023, 8:08 AM Reply Quote 0
      • M
        Modesty @johnpoz
        last edited by Jun 24, 2023, 8:08 AM

        @johnpoz

        Thanks for answer.

        @johnpoz said in An HTTP_REFERER was detected other than what is defined in System | Disabled in System > Advanced > Admin Access.:

        why would you point router.pfsense to pfsense IP?

        what I do is

        onclick="window.open('http://router.pfsense', '_blank') then the DNS override connect to my router, but router dont accept...

        This is what I have:
        cf1090b8-732f-4cad-99df-eed69ecdae5b-image.png

        @johnpoz said in An HTTP_REFERER was detected other than what is defined in System | Disabled in System > Advanced > Admin Access.:

        Why would not use its actual dns record

        Can you give an example did not quit get it.
        (As my example that dont workin http://router.pfsense)

        Everything can be rebuilt!

        J 1 Reply Last reply Jun 24, 2023, 8:17 AM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @Modesty
          last edited by Jun 24, 2023, 8:17 AM

          @Modesty use pfsense actual name in your link pfsense.localdomain, or add router.pfsense in your alternative. or change pfsense name to router.pfsense in the general settings.

          Or just disable the check completely.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

          M 1 Reply Last reply Jun 24, 2023, 8:37 AM Reply Quote 0
          • M
            Modesty @johnpoz
            last edited by Jun 24, 2023, 8:37 AM

            @johnpoz said in An HTTP_REFERER was detected other than what is defined in System | Disabled in System > Advanced > Admin Access.:

            Or just disable the check completely.

            When I try to disabel this i get an error:

            The following input errors were detected:
            Alternate hostname is not a valid hostname.
            

            This 3 ip's are stored from previus, dont know why there is 3...

            due to this:
            a7f46a10-3fb5-4b2d-95e4-eccb34e54052-image.png

            Shal I
            1: delete all 3?
            2: keep 1, 192.168.0.1?

            Everything can be rebuilt!

            J 1 Reply Last reply Jun 24, 2023, 9:21 AM Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator @Modesty
              last edited by johnpoz Jun 24, 2023, 9:49 AM Jun 24, 2023, 9:21 AM

              @Modesty where did you get the idea you would put in an IP there.

              To disable the check, you click the little check box that says disable it.

              here I switched back to allowing just http so I could show you.. Here I created a host record to point router.pfsense to my pfsense.. See I get the error you are getting. Well same sort of error, since I am not linking to it from something else, but going direct I get the rebind error..

              router.jpg

              Then I added the alternate name - and now don't get the error when I access via http://router.pfsense

              edit: still confused on using router.pfsense vs just pfsense.localdomain? If you want to use .pfsense as your local domain, then just change pfsense actual name to that in the general settings.

              BTW the current recommend domain to use locally is home.arpa, I have started switching over to it on some of my devices - just haven't gotten around to changing pfsense as of yet. As certs expire for stuff I am using locally I change them to use home.arpa.. pfsense webgui cert still have like 3 some years left on it ;) Its from before browsers started balking at long certs and I had set them to 10 years..

              Just haven't gotten the itch to change pfsense yet. If you want to use .pfsense go for it - but home.arpa would be better choice. But simple solution to your problem would just be change pfsense name to router.pfsense if that is what you want to refer to it as in your thing your creating.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

              M 1 Reply Last reply Jun 24, 2023, 10:50 AM Reply Quote 1
              • M
                Modesty @johnpoz
                last edited by Jun 24, 2023, 10:50 AM

                @johnpoz Thanks for helpingme.

                WHen I tick the box and save it I get this error:

                The following input errors were detected:
                Alternate hostname is not a valid hostname.

                This is due to 3 x IP's
                2a3d6f62-3f07-4a0e-bf60-d99297980663-image.png

                Thats the problem now
                What should be in feld Alternate Hostnames

                Everything can be rebuilt!

                J 1 Reply Last reply Jun 24, 2023, 11:47 AM Reply Quote 0
                • J
                  johnpoz LAYER 8 Global Moderator @Modesty
                  last edited by johnpoz Jun 24, 2023, 11:48 AM Jun 24, 2023, 11:47 AM

                  @Modesty said in An HTTP_REFERER was detected other than what is defined in System | Disabled in System > Advanced > Admin Access.:

                  What should be in feld Alternate Hostnames

                  did you not see my image - if your pointing router.pfsense to there, then that is what should be in there..

                  Why would you put in the same IP 3 times even?? If your going to disable it, then nothing should be in the alternate hostnames box.

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                  M 1 Reply Last reply Jun 24, 2023, 1:23 PM Reply Quote 1
                  • M
                    Modesty @johnpoz
                    last edited by Jun 24, 2023, 1:23 PM

                    @johnpoz said in An HTTP_REFERER was detected other than what is defined in System | Disabled in System > Advanced > Admin Access.:

                    did you not see my image

                    No, sorry, my eyes, and my tempo.

                    Thanks!

                    Everything can be rebuilt!

                    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