Add Target Fixer

By shortdark

★ 5.0/5 (3 ratings)100+ active installationsVersion 0.0.04

Fixes the target="_blank" vulnerability by adding rel="noopener noreferrer" to the 'a' tag.

Description

This plugin looks at the phishing issue with target=”_blank” vulnerability when the opened page can control the referring page.
The plugin fixes it by adding a rel=”noopener noreferrer” in the “A” tags where a target=”_blank” is found. It does not
change the content, it only modifies the “A” tags while the plugin is active. Tested on PHP 5 to PHP 8.

Please let me know if you like this plugin by leaving a review or contacting me.

Go to the Shortdark WordPress plugin page for more information.

Installation

This section describes how to install the plugin and get it working.

  1. Upload the plugin folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress
    plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Your tags are now fixed!

Changelog

0.0.04

  • Checked WordPress version and also works on PHP 8.

0.0.03

  • Changed tagline.

0.0.02

  • Only works inside “a” tags.

0.0.01

  • New plugin.