Re: [SMARTY-DEV] "nofollow" modifier to prevent comment spam

[email protected] (messju mohr)
Newsgroups php.smarty.dev
Message-ID <[email protected]>
Hi,

the nofollow-tag fights the symptoms of comment-spam, instead of
fighting the source. the nofollow-tag also prevents good links from
honest comments to be rewarded with being indexed and ranked by the
search engines.

i'd take this nofollow-thing with a grain of salt.

greetings
messju

On Wed, Feb 02, 2005 at 01:33:30PM +0100, Arjan Scherpenisse wrote:
> Hi list,
> 
> I have created a tiny plugin which adds a rel="nofollow" attribute to 
> all <a> tags, to prevent comment spam on web logs [1].
> Although fairly trivial, I think this would be a nice addition to 
> smarty, to broaden the support for this kind of tag.
> 
> One minor caveat: the regular expression currently does not check 
> whether the <a> tag really is a link (e.g. if the href attribute is 
> set), so <a name="xx"> also get a nofollow attribute. Maybe someone with 
> more regex skills could help me out here.
> 
> The source file is attached.
> 
> Regards,
> Arjan Scherpenisse
> 
> [1] http://www.google.com/googleblog/2005/01/preventing-comment-spam.html
> -- 
> 
> 
> 
> 
> 
> *EYEFI.INTERACTIVE.ARJAN SCHERPENISSE.
> DIGITALARCHITECTS.THENETHERLANDS.*
> KEIZERSGRACHT 424. 1016 GC. AMSTERDAM.
> [TEL]+31(0)20,3207440. [FAX]+31(0)20,3207442.
> 
> www.eyefi.nl <http://www.eyefi.nl/>
> 
> ......
> The information transmitted is intended only for the person or entity to 
> which it is addressed and may contain confidential and/or privileged 
> material. If you are not the intended recipient of this message please 
> do not read, copy, use or disclose this communication and notify the 
> sender immediately. It should be noted that any review, retransmission, 
> dissemination or other use of, or taking action in reliance upon, this 
> information by persons or entities other than the intended recipient is 
> prohibited. ©2004.EYEFI . INTERACTIVE.
> .....
> 
> 

> -- 
> Smarty Development Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.