Re: [SMARTY-DEV] "nofollow" modifier to prevent comment spam
| From: | messju mohr | Date: | Wed, 02 Feb 2005 13:21:17 +0000 |
| Subject: | Re: [SMARTY-DEV] "nofollow" modifier to prevent comment spam | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2634@lists.php.net to get a copy of this message | ||
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