Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Prevent search engines from indexing login page

default discord avatar
andrettix6 months ago
2

Any quick hint to where to add 'X-Robots-Tag" to prevent search engines to index the login page of the CMS?? TIA



Ok definitely I was looking in the wrong place. It was simpler that I was expecting. Sharing my solution here in case anyone have the same question or a better solution:



Added it as a http header in server.ts



and also added html metatags in beforeLogin component:

  • default discord avatar
    Payload-Botlast year


  • discord user avatar
    seanzubrickas
    last year

    Thanks for adding this

    @1001674312429875230

    - very useful indeed!

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.