# Adding rel=nofollow

**URL:** <https://discourse.softpress.com/t/adding-rel-nofollow/23853>\
**Category:** Dynamo\
**Created:** [July 22, 2017, 1:59pm UTC](https://discourse.softpress.com/t/adding-rel-nofollow/23853 "2017-07-22T13:59:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [July 22, 2017, 1:59pm UTC](https://discourse.softpress.com/t/adding-rel-nofollow/23853/1 "2017-07-22T13:59:58Z")

</div>

I’m trying to figure out a way to fix the spam problem here. I was able to code something very simply (once I remembered how few features Prototype 1.5 had) in JavaScript, but I have two concerns about that:

1. Will it work in search engines?
2. Can it be circumvented?

Here’s the code:

> <https://gist.github.com/walterdavis/9368cf990d4772ca68275fd344383820>

Can anyone recommend a way to do this in PHP (elderly version) without falling prey to common regex failings?

Thanks in advance,

Walter

* * *

dynamo mailing list  
email@hidden  
Update your subscriptions at:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...

---

<div class="post-metadata">

**Author:** ![Tim3](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/t/f14d63/32.png) [@Tim3](https://discourse.softpress.com/u/Tim3)\
**Post date:** [July 23, 2017, 5:49pm UTC](https://discourse.softpress.com/t/adding-rel-nofollow/23853/2 "2017-07-23T17:49:53Z")

</div>

Apologies for the late reply Walter.

I created a template helper tool for Pulse CMS a while ago that uses the PHP Simple HTML DOM Parser from [http://simplehtmldom.sourceforge.net](http://simplehtmldom.sourceforge.net)

Using the library you can target text links and search for and append attributes quite easily.

Regards,  
Tim.

* * *

dynamo mailing list  
email@hidden  
Update your subscriptions at:

> **[Information for existing FreewayTalk / Groups.io users](https://discourse.softpress.com/t/information-for-existing-freewaytalk-groups-io-users/24891)**
>
> The purpose of this topic is to provide information about the migration from FreewayTalk and Groups io to Discourse and the differences in Discourse, as well as a place to discuss the good or bad of the migration. For those previously subscribing...
