In short
On a forum or community site, every sign-up creates a profile page. Most are empty, and some are created by spammers as a place to park a link. This check is about setting a rule: only the profiles of real contributors are indexable, the others carry a noindex, and links entered by members carry rel="ugc" or nofollow. Once this is done, the index only contains profiles that say something about their author, marked up as ProfilePage, and a member can remove theirs from search engines.
Why it matters
A profile with no contributions contains nothing but a username, a join date and the site template. Multiplied by the number of registered members, that makes thousands of near-identical URLs that crawlers visit at the expense of the discussions.
Profiles are also the usual target of registration spam: an automated account fills in the “Website”, “Signature” or “About” fields with a link and never writes anything. Google's documentation on preventing abuse recommends two countermeasures: apply noindex to content from users who have not yet built a reputation on the platform, then make it indexable once they have earned one; and add nofollow or ugc to every link in unverified content. A profile that does not appear in search results and whose link is not followed is of no further use to a spammer.
Conversely, the profile of an active contributor has value. Google documents ProfilePage markup for forum and social network profiles: it helps Google understand who the creators in a community are, in particular for its “Discussions and forums” feature. Those profiles still have to be crawlable, indexable and distinct from the empty shells.
Finally, a public profile is personal data tied to a username or a name. Letting members decide whether their profile is visible to search engines is as much a matter of privacy as of SEO.
What it improves
- Crawling Fewer empty URLs to go through, so more visits to the discussions. The effect is mostly visible on communities with several tens of thousands of accounts.
- Index quality Thin pages and profile spam drop out of the results.
- Spam Signing up loses its appeal for anyone after a link. Combine it with preventing user-generated spam (opens in a new tab).
- Understanding of authors
ProfilePageconnects a contributor to their posts. No rich result is guaranteed. - Trust Members stay in control of their visibility.
How to check
How many profiles are indexed? In Search Console, open the Pages report and filter on the profile prefix (/membres/, /u/, /members/, /author/). A site:example.com inurl:membres search gives an order of magnitude, nothing more.
What does an empty profile return?
curl -s -D - https://example.com/membres/compte-sans-message | grep -iE 'x-robots-tag|<meta[^>]+name="robots"|rel="canonical"'
Compliant: noindex in the meta tag or in the X-Robots-Tag header. Repeat the test on the profile of an active contributor: it must not carry a noindex.
Are the profile's links qualified?
curl -s https://example.com/membres/alice | grep -oE '<a [^>]*href="https?://[^"]+"[^>]*>' | grep -v 'example.com'
Every outbound link entered by the member must carry rel="ugc" or rel="nofollow".
Are the sitemap and the robots.txt file consistent? The sitemap must only list indexable profiles, and robots.txt must not block the noindex profiles: a crawler that cannot read the page does not see the directive.
Is the markup valid? Run an indexable profile through the Rich Results Test: the “Profile page” item must appear without errors.
How to implement
Before you start
Set the indexing rule. The thresholds below are an editorial choice, not a Google rule: adapt them to how active your community is.
| Condition | Example threshold | Why |
|---|---|---|
| Validated account | Email confirmed, account approved, not banned | Rules out automated sign-ups |
| Public contributions | At least 5 visible posts | The profile has something to show |
| Account age | At least 30 days | Gives moderators time to act |
| Member's choice | Has not ticked “Hide my profile from search engines” | Respect for privacy |
A profile that meets all the conditions is indexable. All the others respond with a 200 and:
<meta name="robots" content="noindex, follow">
A banned, deleted or publicly hidden account returns a 404 or a 410 to logged-out visitors, not an empty page with a 200.
Links entered by the member (website, social networks, signature) are output like this:
<a href="https://site-du-membre.example/" rel="ugc nofollow">site-du-membre.example</a>
Google accepts that you remove this attribute for trusted members: it is a possible reward, never a default setting. See using rel=ugc (opens in a new tab).
ProfilePage markup for an indexable profile. Google requires mainEntity and, on the person, name (or alternateName); the rest is recommended:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "ProfilePage",
"dateCreated": "2021-03-14T09:12:00+01:00",
"dateModified": "2026-10-02T18:40:00+02:00",
"mainEntity": {
"@type": "Person",
"@id": "https://example.com/membres/alice#person",
"name": "Alice Bernard",
"alternateName": "alice_b",
"identifier": "4821",
"description": "Electrician, mostly answers in the Home automation section.",
"image": "https://example.com/avatars/4821.jpg",
"agentInteractionStatistic": {
"@type": "InteractionCounter",
"interactionType": "https://schema.org/WriteAction",
"userInteractionCount": 1284
},
"interactionStatistic": {
"@type": "InteractionCounter",
"interactionType": "https://schema.org/LikeAction",
"userInteractionCount": 3120
}
}
}
</script>
agentInteractionStatistic describes the member's activity (posts written), interactionStatistic what the profile has received (likes, followers). Do not put a default avatar in image, and only mark up what is visible on the page. In discussions, author.url points to this profile: see marking up discussions with DiscussionForumPosting (opens in a new tab). Author pages on an editorial site are covered by Person and ProfilePage (opens in a new tab).
On the personal data side: add a “Hide my profile from search engines” preference to the account settings, never display the email address, and describe what is public in the privacy policy. See checking applicable GDPR requirements (opens in a new tab).
WordPress
Versions WordPress 6.4 and later (checked up to 7.1); Yoast SEO 28, bbPress 2.6, BuddyPress 14.
Three types of profile coexist: author archives (/author/alice/), bbPress profiles (/forums/users/alice/) and BuddyPress profiles (/members/alice/).
With Yoast SEO, Yoast SEO > Settings > Advanced > Author archives lets you disable these archives, remove them from search results or remove only those of authors with no posts. This covers neither bbPress nor BuddyPress.
To apply the rule everywhere, add this code to a plugin or a must-use plugin (wp-content/mu-plugins/profils-indexables.php):
<?php
function example_profil_indexable(int $userId): bool
{
$user = get_userdata($userId);
if (! $user) {
return false;
}
if (get_user_meta($userId, 'masquer_profil_moteurs', true)) {
return false;
}
$contributions = (int) count_user_posts($userId, ['post', 'topic', 'reply'], true);
$ancienneteEnJours = (time() - strtotime($user->user_registered)) / DAY_IN_SECONDS;
return $contributions >= 5 && $ancienneteEnJours >= 30;
}
add_filter('wp_robots', function (array $robots): array {
$userId = 0;
if (is_author()) {
$userId = (int) get_queried_object_id();
}
if (function_exists('bbp_is_single_user') && bbp_is_single_user()) {
$userId = (int) bbp_get_displayed_user_id();
}
if (function_exists('bp_is_user') && bp_is_user()) {
$userId = (int) bp_displayed_user_id();
}
if ($userId === 0 || example_profil_indexable($userId)) {
return $robots;
}
unset($robots['index']);
$robots['noindex'] = true;
$robots['follow'] = true;
return $robots;
});
The masquer_profil_moteurs preference is a user meta field to expose in the profile form. The native sitemap (/wp-sitemap-users-1.xml) only lists authors who have published; to remove it:
add_filter('wp_sitemaps_add_provider', fn ($provider, string $name) => $name === 'users' ? false : $provider, 10, 2);
With Yoast SEO, the author sitemap follows the author archives setting. Since version 12, BuddyPress has offered a community visibility setting, in its options, that restricts profiles to logged-in members: check its label in your version. Finally, check in the source code of a bbPress or BuddyPress profile that the “Website” link does carry nofollow or ugc.
Discourse
Checked on Discourse 2026.12 (official forum and source code). Profiles (/u/alice, /u/alice/summary) are served with the X-Robots-Tag: noindex header: there is nothing to configure to keep them out of the index, and ProfilePage markup would serve no purpose there. The useful settings, to look up by name in the site settings of the admin panel:
| Setting | Default | Effect |
|---|---|---|
hide new user profiles |
enabled | Hides from the public the profile of members at trust level 1 or below until they have posted something |
hide user profiles from public |
disabled | Closes profiles and user cards to logged-out visitors |
allow users to hide profile |
enabled | Adds the option to hide their profile to the member's preferences |
add rel nofollow to user content |
enabled | Adds nofollow to external links in members' content |
tl3 links no follow |
disabled | When enabled, keeps nofollow on links from trust level 3 members |
If you want indexable expert profiles, publish them on the main site and link them to the forum.
phpBB and XenForo
phpBB (3.3 branch code, version 3.3.19). Profile URLs take the form memberlist.php?mode=viewprofile&u=42, with a canonical but no conditional noindex. Two ways:
- remove the
u_viewprofilepermission (“Can view profiles, memberlist and online list”, group permissions tab) from the guests and bots groups: profiles are no longer public; - or keep profiles public and add a
noindexin a child style, in the head section ofoverall_header.html:
<!-- IF SCRIPT_NAME == 'memberlist' -->
<meta name="robots" content="noindex, follow">
<!-- ENDIF -->
A rule based on post count requires an extension. Check the result with curl.
XenForo (2.3 branch). The “View member profiles” permission of the unregistered visitors group closes profiles to the public, and each member sets in their privacy preferences who can see their page. According to discussions on the official forum, XenForo has output ProfilePage markup since versions 2.2.14 and 2.3.0; as the manual could not be consulted without logging in at the time of writing, check the source code of a profile for the markup and for a possible noindex.
Laravel
Versions Laravel 11 to 13.
Put the rule on the model, so you can reuse it in the view and the sitemap:
// app/Models/User.php
public function isIndexable(): bool
{
if ($this->email_verified_at === null) {
return false;
}
if ($this->banned_at !== null) {
return false;
}
if ($this->hide_from_search_engines) {
return false;
}
if ($this->posts_count < 5) {
return false;
}
return $this->created_at->lte(now()->subDays(30));
}
public function scopeIndexable(Builder $query): void
{
$query->whereNotNull('email_verified_at')
->whereNull('banned_at')
->where('hide_from_search_engines', false)
->where('posts_count', '>=', 5)
->where('created_at', '<=', now()->subDays(30));
}
{{-- resources/views/members/show.blade.php --}}
@unless($member->isIndexable())
<meta name="robots" content="noindex, follow">
@endunless
@if($member->website)
<a href="{{ $member->website }}" rel="ugc nofollow">{{ parse_url($member->website, PHP_URL_HOST) }}</a>
@endif
Build the JSON-LD in PHP and encode it with json_encode($schema, JSON_HEX_TAG | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES): the username comes from a user, and JSON_HEX_TAG prevents it from closing the <script> tag. The sitemap starts from User::query()->indexable(). Validate the “Website” field with the url:http,https rule.
Symfony
Versions Symfony 6.4, 7.4 and 8.x.
// src/Controller/MemberController.php
#[Route('/membres/{slug}', name: 'member_show')]
public function show(
#[MapEntity(mapping: ['slug' => 'slug'])] Member $member,
): Response {
$response = $this->render('member/show.html.twig', ['member' => $member]);
if (! $member->isIndexable()) {
$response->headers->set('X-Robots-Tag', 'noindex, follow');
}
return $response;
}
{% if member.website %}
<a href="{{ member.website }}" rel="ugc nofollow">{{ member.website }}</a>
{% endif %}
<script type="application/ld+json">{{ schema|json_encode(constant('JSON_HEX_TAG') b-or constant('JSON_UNESCAPED_UNICODE') b-or constant('JSON_UNESCAPED_SLASHES'))|raw }}</script>
isIndexable() implements the rule on the entity, and the sitemap query applies the same conditions in the Doctrine repository.
Next.js
Versions Next.js 15 and 16 (App Router).
// app/membres/[slug]/page.tsx
import type { Metadata } from 'next';
import { notFound } from 'next/navigation';
type Props = { params: Promise<{ slug: string }> };
export async function generateMetadata({ params }: Props): Promise<Metadata> {
const member = await getMember((await params).slug);
if (!member) {
return {};
}
return {
title: `${member.name}, community member`,
alternates: { canonical: `/membres/${member.slug}` },
robots: member.isIndexable ? undefined : { index: false, follow: true },
};
}
export default async function MemberPage({ params }: Props) {
const member = await getMember((await params).slug);
if (!member || member.isBanned) {
notFound();
}
return <Profile member={member} />;
}
Compute isIndexable on the server, and filter app/sitemap.ts on the same field. Render members' links with <a rel="ugc nofollow">, not with a component that would omit the attribute.
Common mistakes
- Blocking profiles in robots.txt and putting a
noindexon them: the directive is never read, and the URLs can stay indexed without a snippet. Choose one or the other;noindexis the safer way to get out of the index. - Listing every profile in the sitemap: a sitemap full of
noindexpages sends contradictory signals. See excluding redirects, errors and noindex pages (opens in a new tab). - Setting everything to
noindexfor convenience when the site relies on identified experts: their profiles serve as theauthor.urlof discussions. - Leaving a “Website” field as a followed link: it is the very reason profile spam exists.
- Marking up empty profiles as
ProfilePageor declaring counters in it that are not on the page. - Displaying a “private profile” page with a 200: thousands of identical pages. Return a 404 or a 403.
- Forgetting the secondary URLs: a profile's “Posts”, “Followers” and “Badges” tabs, to be handled like the profile itself or set to
noindex.
Frequently asked questions
Should all member profiles be set to noindex?
Not necessarily. Setting every profile to noindex is the simplest choice, and it is the one Discourse applies by default. But if your community relies on recognized contributors, their profiles help search engines connect a person to their answers. The middle ground is to index only profiles that are validated, have been active for some time and have a minimum number of public contributions.
Do empty profiles hurt a forum's SEO?
Google documents no penalty for empty profiles as such. Their cost is indirect: thousands of pages with no content use up crawling and dilute the perceived quality of the site. The serious risk comes from spam profiles, which fall under Google's policies on user-generated spam and can lead to a manual action.
Should I use rel="ugc" or rel="nofollow" on profile links?
Both are suitable for profile links. Google recommends ugc for links placed by users and accepts several values combined, for example rel="ugc nofollow", which is still understood by search engines that only know nofollow. What matters is that no link entered by an unverified member is published without one of these attributes.
Can a member ask for their profile to stop appearing in Google?
Yes, and the simplest approach is to give them the means to do it without going through support: a “Hide my profile from search engines” preference that adds a noindex, or a private profile option. Removal from the index takes effect the next time the crawler visits. For an urgent request, the Removals tool in Search Console temporarily hides the URL.
Resources
- Google Search Central: profile page (ProfilePage) structured datadevelopers.google.com
- Google Search Central: prevent abuse of your site and user-generated spamdevelopers.google.com
- Google Search Central: qualify your outbound links (ugc, nofollow, sponsored)developers.google.com
- Google Search Central: block indexing with noindexdevelopers.google.com
- Schema.org: ProfilePageschema.org
- Discourse: site settings, site_settings.yml filegithub.com
- WordPress: wp_robots filterdeveloper.wordpress.org
- phpBB: documentationphpbb.com
- XenForo: manualxenforo.com
Updated on
Topic checklist (PDF)