PHPackages                             log1x/allow-unsafe-links - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. log1x/allow-unsafe-links

ActiveWordpress-plugin

log1x/allow-unsafe-links
========================

Prevents WordPress from automatically adding noopener and noreferrer to outbound links.

v1.0.1(6y ago)28MITPHP

Since May 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Log1x/allow-unsafe-links)[ Packagist](https://packagist.org/packages/log1x/allow-unsafe-links)[ RSS](/packages/log1x-allow-unsafe-links/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

Allow Unsafe Links
==================

[](#allow-unsafe-links)

[![Latest Stable Version](https://camo.githubusercontent.com/15fbda5ab85532048b8670332381a07679318bacaf58986a040dadfb6bf27450/68747470733a2f2f706f7365722e707567782e6f72672f6c6f6731782f616c6c6f772d756e736166652d6c696e6b732f762f737461626c65)](https://packagist.org/packages/log1x/allow-unsafe-links)[![Total Downloads](https://camo.githubusercontent.com/7505cfdfb0691bd967abc854395ba019b72140fb6df755b1f2ca8b054f9aa55d/68747470733a2f2f706f7365722e707567782e6f72672f6c6f6731782f616c6c6f772d756e736166652d6c696e6b732f646f776e6c6f616473)](https://packagist.org/packages/log1x/allow-unsafe-links)

Starting in WordPress 4.7.4 and 5.1, WordPress now automatically adds `rel="noopener noreferrer` to external links that open in a new window (e.g. `_blank`) when adding a link from TinyMCE (4.7.4) as well as on post save (5.1). With the introduction of it passing your content through a filter on post save, it is no longer possible to publish a post without the tags even when manually removing them.

While I 100% endorse this behavior deeming the potential [security concerns](https://developers.google.com/web/tools/lighthouse/audits/noopener) when not including these tags (especially `noopener`), this can lead to unwanted behavior on URL's such as affiliate and referral links due to a variety of networks poor implementation of tracking.

If you are not using an advertiser network that has the potential issues stated above, **you should not be using this**. Otherwise, please use this with caution and for the safety of you and your users, please add `rel="noopener noreferrer"` on outbound links manually that are not affiliate-related.

Installation
------------

[](#installation)

### Composer

[](#composer)

```
$ composer require log1x/allow-unsafe-links
```

### Manually

[](#manually)

[Download](https://github.com/log1x/allow-unsafe-links/archive/v1.0.1.zip) and install the plugin as you would any other WordPress plugin.

Usage
-----

[](#usage)

Once activated, you're good to go. For existing posts, you will need to go through and manually remove the `rel="noopener noreferrer"` on your URL's and re-save.

This can also be done via [`wp-cli`](https://wp-cli.org/) using `search-replace` such as:

```
$ wp search-replace ' rel="noopener noreferrer" ' ''
```

License
-------

[](#license)

Allow Unsafe Links is provided under the [MIT License](https://github.com/Log1x/allow-unsafe-links/blob/master/LICENSE.md).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2542d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5745907?v=4)[Brandon](/maintainers/Log1x)[@Log1x](https://github.com/Log1x)

---

Top Contributors

[![Log1x](https://avatars.githubusercontent.com/u/5745907?v=4)](https://github.com/Log1x "Log1x (4 commits)")

---

Tags

affiliate-trackingwordpresswordpress-plugin

### Embed Badge

![Health badge](/badges/log1x-allow-unsafe-links/health.svg)

```
[![Health](https://phpackages.com/badges/log1x-allow-unsafe-links/health.svg)](https://phpackages.com/packages/log1x-allow-unsafe-links)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
