# bbPress: Stop Search Engines Indexing Forum Profiles

> Adds noindex to bbPress user profile pages, which are thin, duplicate content and a common target for spam sign-ups trying to get links indexed.

- Type: PHP
- Runs: Frontend only
- Category: [Users](https://wpide.com/library/category/users/)
- Tags: bbpress, seo, profiles
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/bbpress-noindex-profiles/

## Code

```php
if ( ! function_exists( 'bbp_is_single_user' ) ) {
    return;
}

add_filter( 'wp_robots', function ( $robots ) {
    if ( bbp_is_single_user() ) {
        $robots['noindex'] = true;
        $robots['follow']  = true;
    }

    return $robots;
} );
```

## Notes

Forums and topics stay indexable.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "bbPress: Stop Search Engines Indexing Forum Profiles" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
