Adding nofollow tag to all my <a href='...'>

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-28-2007
FFMG
 
Posts: n/a
Default Adding nofollow tag to all my <a href='...'>


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).

Reply With Quote
  #2 (permalink)  
Old 06-28-2007
Toby A Inkster
 
Posts: n/a
Default Re: Adding nofollow tag to all my <a href='...'>

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/
Reply With Quote
  #3 (permalink)  
Old 06-28-2007
Bert Schulze
 
Posts: n/a
Default Re: Adding nofollow tag to all my <a href='...'>

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:30 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0