Developer Hub » Robots File

Link: https://support.brilliantdirectories.com/support/solutions/articles/12000075850

The robots.txt file tells search engines and other crawlers which parts of the website they may visit. To edit it, navigate to Developer Hub and click Edit Robots.txt on the Robots.txt File card.

The Developer Hub page with the Robots.txt File card and its Edit Robots.txt button highlighted.

The page is available to admins whose admin role includes the Robots File permission, in the Developers group of role permissions.


Default Rules

The default file includes the following rules.

User-agent: Googlebot
Disallow: /api/
Allow: /

User-agent: Mediapartners-Google
Disallow: /api/
Allow: /

User-agent: Googlebot-Image
Disallow: /api/
Allow: /
    
User-agent: Yahoo-MMCrawler
Disallow: /api/
Allow: /

User-agent: Yahoo-slurp
Disallow: /api/
Allow: /

User-agent: slurp
Disallow: /api/
Allow: /
    
User-agent: Msnbot
Disallow: /api/
Allow: /

User-agent: MSNBot-media
Disallow: /api/
Allow: /

User-agent: Bingbot
Disallow: /api/
Allow: /

User-agent: Bing Preview bot
Disallow: /api/
Allow: /
    
User-agent: Twitterbot
Disallow: /api/
Allow: /
    
User-agent: *
Disallow: /    


Edit the File

To add to the file, click inside the editor and add the necessary rules.

The Robots.txt File page with the editor that holds the robots.txt rules highlighted.

An Unsaved changes bar then appears at the top of the page: click Save to put the new file live, or Discard to undo the edits.

See Add a Bot to the Robots.txt File (Ahrefs Example).


When Crawlers See the Change

After the file is saved (or restored to the default), the updated robots.txt is served with a one-hour cache lifetime, so search engines, social media crawlers and caching services normally pick up the change within the hour.

A copy of the file that a crawler or cache fetched before the save can be kept longer, for up to 30 days, before it is checked again.


Restore Default File

The Restore Default button replaces the current file with the default rules shown above. In the confirmation window, click Restore Default again: the default file goes live right away and any custom rules are removed.