• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Make all links nofollow

Ingenious

Well-known member
#1
Is it possible please to make all links posted by users, whether admin, moderator or not, nofollow?

I am sure I saw a file edit to do this but I can't for the life of me find it, search for "make all links nofollow" doesn't return much.

Thanks :)
 

BenForum

Active member
#4
Similar to this:

http://xenforo.com/community/threads/remove-nofollow-from-sig-links.24796/

That is the relevant file anyways. You should be able to force nofollow for everyone by editing this to always be true:

Code:
$options['states'] += array(
'noFollowDefault' => $options['noFollow']
);
can you explain little more which value exactly need to be replaced..

if (stripos($text, '[/attach]') !== false)
replace to

if (stripos($text, '[/attach]') !== true)
????
 

Ingenious

Well-known member
#6
Jake's code change above works great. Just change the bit after => to true (in the file library/XenForo/ViewPublic/Helper/Message.php), all links are then nofollow including admin and mods.
 
#9
ok i know this is old but does this changing all links to no follow affect my own inner pages. I ran a test on my site and it shows this as no follow
<a href="find-new/posts" rel="nofollow">Recent Posts</a>
<a href="find-new/posts?recent=1" rel="nofollow">Recent Posts</a>