phpBB does not need a robots.txt file by default. This is because phpBB has an exceptional permissions system. If you don't allow the robots to see your profile page, they will never see it. However, even if you tell the robots not to crawl the profile page with the robots.txt instruction, there is a chance that the bots will not obey it. So the phpBB permission system is much stronger and healthier than robots.txt instructions. I recommend you to check both forum permissions and group permissions for bots.
However, in some cases it can be useful to have a robots.txt file. I think it is useful to use it for both in SEO analysis's and add sitemap. Let's create a robots.txt file for phpBB forum. I assume phpBB is installed in root.
Create a file named
robots.txt
to add to root. Add it inside:Code: Select all
User-agent: *
Allow: /
Sitemap: https://phpbbgroup.com/sitemap.xml