![]() |
phpbb Question - How To Make All Posted Links Have rel="nofollow" Attribute?
Can anyone tell me what needs to be modified in phpbb script to make all links made by members in forum posts have rel="nofollow" attribute automatically assigned to them?
|
This might help a little
http://phpbbhacks.com/download/7666 But i'm sure you're looking for all links to have "nofollow" no matter the post count. |
That's a pretty helpful link. thanks a lot, Cyber. I was hoping hor a patch that would assign nofollow to all links posted. But even this one is a lot of help already :)
|
Why would you bother? Spammers will keep on spamming. I switched away from phpBB to SMF and installed a few mods and have not had near as many problems with spam.
|
I upgraded one of my boards to phpBB RC5 and have absolutely no spam problems at all. And that board was a major target.
|
You know what I did, minusonebit? I decided to try a public experiment. I installed a forum script on a brand new domain and disabled all email confirmations, approval and shit and posted just one big sign on it saying that this is a completely unmoderated forum and anyone can post in it, including spammers.
Inside I made one sticky thread which I named "Read This First" and wrote, what did you think you would find here. This is the unmoderated forum where anyone can post anything. If this turns into spam heaven - who the fuck cares... After that I just left the site be. I haven't touched it for a few months, now I come back to it and guess what: Our users have posted a total of 2370 articles We have 2681 registered users and all of it is the biggest spam shit you could imagine. i want to let the site fly. You never know what could happen with it next. Maybe someone real will start posting and maybe it'll turn into an active forum. However, at present time the spam heaven is going berserk and all links lead to the wors neighborhoods on the web. I'd love to have the bots not follow those links so they don't nuke my site for linking to bad neighborhoods. That's why i was hoping for a mod to add rel="nofollow" to all external links posted in forums there :) |
This is pretty easy to do. Case in point? I just did it. This will stop people from URL spamming in their profile, and via BBCode URL tags, which is about 99% of the problem.
I can even install this for cash, but I'll put this one out there for free. Save as 'file.diff' and use GNU's patch against your original source tree - or find the files (listed at the top with --- / +++, and remove the lines that have - at the beginning, then replace with the lines starting with +. Code:
diff -urN phpBB2/includes/bbcode.php phpBB2-nofollow/includes/bbcode.php |
Thanks a lot for your help, Grouchy, though I'm not sure this is exactly what I'm looking for. I actually don't want to prevent members (in my case bots for the most part) form posting links. I just want the search engine spiders to ignore all URLs posted.
As an alternative - can I maybe modify my robots.txt the way so the site is entirely spidered, but no external links are followed? Is there a way to achieve that with robots.txt? |
Quote:
define('NOFOLLOW_POSTS', 5); to this: define('NOFOLLOW_POSTS', 5000000); |
Quote:
Quote:
|
Quote:
Shit, that site probably would make a nice honeypot to base a blacklist off of. I have always disliked the way boards in general handle spam. Visual verification is a good idea in theory, but these things eventually become compromised. Trust principles are another good once, since most spammers make thier very first post a spam post. But I wish there was more of a blacklist/whitelist approach. Same for comments on blogs, same type of spammer and alot of the same tools could fight the war. Where some group would take the responsibility for maintaining a trustworthy, reliable, centralized database of spammers and then webmasters could, by way of a plugin, connect to this database and check new posts from newer members against this database. |
Quote:
|
Theres a shit load of mods that can help stop spam for phpBB.
You can also use Anti-Spam ACP: This hack prevents spam bots from registering on your forum by removing the fields of your choice in the registration and profile form until users reach certain requirements. If a spam bot is detected, you are sent an e-mail notification with the username, IP address and more. Also, I use the MPS mod. It gives your members a MySpace like profile, but if you set it to mandatory it will stop 99% of the spam bots because before anyone can post they will have to set up their profile. |
This shit worked. Thanks a lot guys.
GFY is awesome. Real time help anytime. Fucking awesome :) You Rock |
Quote:
|
Can't get any worse than google. Combine it with Facebook that's controlled by CIA and you get the idea of how much "anonymity" people get when surfing.
|
Quote:
So, pornask, what'd you end up doing? |
I took that text file that Cyber linked to and followed instructions to manually modify the script. It does exactly the job. Couldn't be happier. Thanks for your response too, but since the first option worked, I didn't even get to explore the second. I appreciate that though :)
|
Quote:
Although, I gotta say: Code:
if ( $postrow[$i]['user_posts'] <= NOFOLLOW_POSTS ) |
All times are GMT -7. The time now is 02:34 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123