Paul Gu | Blog

sharing is caring

phpBB3 Anti-Spam Mods: nofollow

The Nofollow Antispam mod helps phpBB forum owners protect themselves against these potentially damaging backlinks, which often point to bad neighborhood type sites that can damage your forum’s rankings in the serps. These types of spammy websites are known as ‘bad neighborhood sites’, and you don’t want many, if any, outbound links from your forum to those types of sites.

The nofollow attribute stops search engines dead.

This mod really helps to let the spammers know that they are really and truly wasting their time. And even when they do spam, it will do them no good, the mods can come back at their leisure and clean up the junk.

Here are the steps of Mods:

phpBB3 is in viewtopic.php

find
Code:

$message = bbcode_nl2br($message);
    $message = smiley_text($message);

after add
Code:

$message = preg_replace(‘/(class="postlink")/’,’class="postlink" rel="nofollow" target="_blank"’,$message);

or

trigger it if users have posted less than a certain amount:

if ($user_cache[$poster_id][‘posts’] < 75)
{
    $message = preg_replace(‘/(class="postlink")/’,’class="postlink" rel="nofollow" target="_blank"’,$message);
}

It’s done!

Next Post

Previous Post

Leave a Reply

© 2024 Paul Gu | Blog

Theme by Anders Norén