"nofollow" modifier to prevent comment spam
[email protected] (Arjan Scherpenisse)
| Newsgroups | php.smarty.dev |
|---|---|
| Message-ID | <[email protected]> |
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. .....