web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Pages
Answered

Add robots.txt

(0) ShareShare
ReportReport
Posted on by 21
I have a requirement to restrict which bots can index our Power Pages site. Adding a robots.txt file would be the simplest way of achieving this (yes, I know it only affects well behaved bots, but that's fine). But I can't find a way of doing this.

Does anyone know how I can add a robots.txt file to my Power Pages site?
 
or is there an alternative means of blocking and allowing specific bots?
Categories:
I have the same question (0)
  • Verified answer
    Fubar Profile Picture
    8,354 Super User 2025 Season 2 on at
    Use the Power Pages Management App and create a Web File, set its parent Page to Home, and give it the short name robots.txt (save and then upload your file).  This should make the file available off the root of your site.
  • BrianCryer Profile Picture
    21 on at
    Thank you Fubar,
     
    I had thought I'd tried that before posting, but your answer made me go back for a second look. I had the issue that something seemed to be overwriting my robots.txt file, it always came out blank. Adding a note against the robots.txt web file, and adding the real robots.txt as an attachment instead of setting/editing it via Visual Studio code and it now works as expected. I'll put that down to "finger trouble" at my end.

    All working now. Thank you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard