This is a discussion on Adding nofollow tag to all my <a href='...'> within the PHP Language forums, part of the PHP Programming Forums category; Hi, I run a blog hosting site and it is a fairly small community easy enough to police. But some ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi, I run a blog hosting site and it is a fairly small community easy enough to police. But some spammers still find ways to get in. What I was thinking is adding nofollow tags to their links until they reach a certain amount of posts, (or until I've had time to review their account). Would you have a piece of code to allow me to add the no follow tag to <a href='....'>? Thanks FFMG -- 'webmaster forum' (http://www.httppoint.com) | 'webmaster Directory' (http://www.webhostshunter.com/) | 'Recreation Vehicle insurance' (http://www.insurance-owl.com/other/car_rec.php) 'Free URL redirection service' (http://urlkick.com/) ------------------------------------------------------------------------ FFMG's Profile: http://www.httppoint.com/member.php?userid=580 View this thread: http://www.httppoint.com/showthread.php?t=17906 Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing). |
|
|||
|
FFMG wrote:
> But some spammers still find ways to get in. > > What I was thinking is adding nofollow tags to their links until they > reach a certain amount of posts, (or until I've had time to review > their account). Fair enough if you want to do that, but it won't stop the spammers -- it's all automated -- they won't care (or notice) that you've added rel=nofollow. -- Toby A Inkster BSc (Hons) ARCS [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux] [OS: Linux 2.6.12-12mdksmp, up 7 days, 14:43.] Long-Awaited Zeldman Article http://tobyinkster.co.uk/blog/2007/0...ldman-in-time/ |
|
|||
|
On 28 Jun., 07:20, FFMG <FFMG.2sv...@no-mx.httppoint.com> wrote:
> Hi, > > I run a blog hosting site and it is a fairly small community easy > enough to police. > But some spammers still find ways to get in. > > What I was thinking is adding nofollow tags to their links until they > reach a certain amount of posts, (or until I've had time to review > their account). > > Would you have a piece of code to allow me to add the no follow tag to > <a href='....'>? a nofollow tag would look like this: <a href='somewhat' rel='nofollow'>somewhere</a> // function to use for any string containing hrefs // function nofollow($str) { return = preg_replac("/<a href='(.*?)'>(.*?)<\/a>/", "/<a href='$1' rel='nofollow'>$2<\/a>/", $str); } --begin-quote http://old.nonofollow.net 11 Reasons against nofollow 1. nofollow does not prevent comment spam 2. nofollow is confusingly named 3. nofollow harms the connections between web sites 4. nofollow is not useful for humans, just for search engines using PageRank or a similar technique 5. nofollow could be used to shut web sites out 6. nofollow discriminates legitimate users as spammers 7. nofollow heists commentators' earned attention 8. nofollow could be used to further discriminate weblogs 9. nofollow prevents the Web from being a web 10. nofollow eliminates the dissemination of free speech 11. nofollow was developed in privacy with only search engines companies taking part in the discussion --end-quote |