• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

Robots.txt file at FusionAuth root location?

Scheduled Pinned Locked Moved Solved
Q&A
3
5
2.3k
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.
  • R
    ronn316
    last edited by 30 Mar 2024, 06:18

    Hello,

    Is it possible to include a robots.txt file with my FusionAuth self-hosted community instance?

    My website which is live has a robots.txt file at the root domain (https://rootdomain.com/robots.txt), and FusionAuth is running at subdomain auth.rootdomain.com.

    In Google Search Console, it is complaining that there is no robots.txt file for my auth subdomain at https://auth.rootdomain.com/robots.txt. It's my understanding that for Google search indexing, you need to have a separate robots.txt file for each subdomain.

    As a result, Google is crawling and indexing the FusionAuth authorize and forgot pages with the various parameters in the url, which I want to block them from indexing.

    How can I add a robots.txt file to the root of my auth subdomain?

    K T 2 Replies Last reply 3 Apr 2024, 22:49 Reply Quote 0
    • K
      kasir-barati @ronn316
      last edited by 10 Apr 2024, 03:29

      @ronn316 Could not you just config it at a much higher level, somewhere like in your proxy which stands between your self-hosted FusionAuth instance and the outside world. I am saying that because while I was trying to figure out a way to show a different favicon I stumbled upon this Q&A.

      Hopefully this will help you 😄.

      R 1 Reply Last reply 10 Apr 2024, 10:33 Reply Quote 0
      • T
        tony.blank @ronn316
        last edited by 3 Apr 2024, 22:49

        @ronn316 Hey - the easiest way to prevent indexing on any pages you don't want indexed is to add a meta tag to the templates. Something that looks like this -> <meta name="robots" content="noindex">

        Cheers,
        Tony

        1 Reply Last reply Reply Quote 0
        • K
          kasir-barati @ronn316
          last edited by 10 Apr 2024, 03:29

          @ronn316 Could not you just config it at a much higher level, somewhere like in your proxy which stands between your self-hosted FusionAuth instance and the outside world. I am saying that because while I was trying to figure out a way to show a different favicon I stumbled upon this Q&A.

          Hopefully this will help you 😄.

          R 1 Reply Last reply 10 Apr 2024, 10:33 Reply Quote 0
          • R
            ronn316 @kasir-barati
            last edited by 10 Apr 2024, 10:33

            @kasir-barati actually shortly after posting this thread I had the same idea and already implemented the robots.txt through my reverse proxy 🙂

            Good idea about replacing the favicon through the proxy as well! I'll do that too.

            K 1 Reply Last reply 17 Apr 2024, 02:17 Reply Quote 0
            • K
              kasir-barati @ronn316
              last edited by 17 Apr 2024, 02:17

              @ronn316 Nice, Please mark the thread as resolved so that others know what was the answer for you.

              Thanks

              1 Reply Last reply Reply Quote 0
              • R ronn316 has marked this topic as solved on 17 Apr 2024, 05:48
              • First post
                Last post