No External Links


No External Links converts external links to internal links. Featuring Full Page or Targeted Content Filtering, Custom Redirect Page/Message, Encoded Masks, External Link Click Logging, Individual Link Exclusion, Post/Page Specific Exclusion, and many more…


Links like “” will be masked into“.


No External Links may conflict with cache plugins.
Usually adding the redirect page to the caching plugin exclusions works fine, but there are no guarantees.
Create a support topic if you need assistance resolving a caching issue.
Please provide as much detail as possible, for example, what version of WordPress & PHP you are using. Which caching plugin you are using. The more information you include the better.


No External Links is designed for specialists who sell different kinds of advertisements on their web site and care about the number of outgoing links that can be found by search engines. Now you can make all external links internal.

How To Use

Just do everything like you would normally, and as long as the plugin is active, external links will be automatically masked.

Recommended Settings

The default settings that are used on a fresh install of the plugin are what we recommend.


Need help with anything? Please create a support topic.
Please provide as much detail as possible, for example, what version of WordPress & PHP you are using. Examples of links that do not work. If you are using a caching plugin, please specify which one. The more information you include the better.

Feature Request

Want a feature added to this plugin? Create a support topic.
We are always looking to add features to improve our plugin.


We apologize that the latest version has changed so much that existing localizations no longer work.
If you would like to contribute to the translations please get in touch.


No External Links does not make any changes to your database, it just processes the output. So you will not see these changes within the WYSIWYG editor.

System Requirements

  • WordPress 5.0+
  • PHP 7.4+

Known Issues

There are no known errors at this time.

عکس‌های صفحه


From your WordPress dashboard

  1. Visit ‘Plugins > Add New’
  2. Search for ‘No External Links’
  3. Activate No External Links from your Plugins page.
  4. [Optional] Configure No External Links settings.


  1. Download No External Links.
  2. Upload the ‘mihdan-noexternallinks’ directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
  3. Activate No External Links from your Plugins page.
  4. [Optional] Configure No External Links settings.

نقد و بررسی‌ها

فبروری 7, 2023 3 پاسخ
Just what I was looking for. I’m running the latest WP (as of writing this comment) and the plugin works flawlessly without noticeable server overhead. Great work. Looking forward to seeing how this plugin progresses.
آکتوبر 22, 2021
Нравится визуальная чистота на странице настроек и функциональность. Кодировка, сокращатель, исключения, логирование – класс! SEO hide 🔥 Спасибо за плагин!


جون 9, 2021 1 پاسخ
This plugin does exactly what I’ve been looking for! It’s well coded, fast and works as intended. Truly recommend!
می 20, 2021 1 پاسخ
Cool plugin! Everything works as it should. Lots of settings. Many thanks to the author!
خواندن تمامی 14 نقد و بررسی‌

توسعه دهندگان و همکاران

“No External Links” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

“No External Links” به 1 زبان ترجمه شده است. با تشکر از مترجمین برای همکاری و کمک‌هایشان.

ترجمه “No External Links” به زبان شما.

علاقه‌ مند به توسعه هستید؟

کد را مرور کنید, را بررسی کنید مخزن SVN, یا مشترک شوید گزارش توسعه توسط RSS.

گزارش تغییرات

5.1.4 (02.06.2024)

  • Fixed error of saving include/exclude sections

5.1.3 (21.05.2024)

  • Fixed error of decoding links hidden with SeoHide
  • Fixed a fatal error related to the Mihdan_NoExternalLinks_Database class

5.1.2 (08.12.2023)

  • Added a code editor to modify the redirect page
  • Added progress bar to redirect page
  • Fixed display error when an custom page for redirect is specified

5.1.1 (06.12.2023)

  • Fixed fatal errors on admin pages
  • Fixed bugs in SEO Hide module

5.1.0 (25.11.2023)

  • Tested with WordPress 6.4+.
  • Added PHP 8.3 support
  • Added excluded list for SEO hide

5.0.7 (03.05.2023)

  • Fixed ampersand conversion in links
  • Fixed PHP notices

5.0.6 (02.05.2023)

  • Resolve #20
  • Resolve #25
  • Resolve #30

5.0.5 (18.04.2023)

  • Tested with WordPress 6.2.
  • Added PHP 8.2 support
  • Removed settings for the dead “Link Shrink” service
  • Removed custom link parser functionality

5.0.4 (13.09.2022)

  • Added possibility to specify any page of the site as a redirect page

5.0.3 (12.09.2022)

  • Fixed fatal errors on logging pages
  • Fixed errors in translations in the WordPress admin

5.0.2 (09.09.2022)

  • Added polyfill for the deprecated mcrypt PHP module

5.0.1 (08.09.2022)

  • Code refactoring to conform coding and security standards.

5.0.0 (14.04.2022)

  • Code refactoring
  • Set minimum compatibility PHP version to 7.4
  • PHP 8.1 compatibility

4.8.0 (07.04.2022)

  • Added a link to plugin settings on all plugins page
  • Fixed security issues

4.7.4 (13.12.2022)

  • Fixed a bug with SEO hide

4.7.3 (07.09.2021)

  • Check if wp_referer() exists to work properly with rel="noreferrer" links

4.7.2 (05.04.2021)

  • Added a new settings page with all the author’s plugins

4.7.1 (04.04.2021)

  • Fixed a bug with SEO hide
  • Fixed a bug with the name of the main plugin file

4.7.0 (03.04.2021)

  • Hiding links using SEO hide method

4.6.0 (02.04.2021)

  • Added support for WordPress 5.7
  • Added support for HTTP status codes (301, 302, 307)
  • Added script for auto deploy to

4.5.2 (30.04.2020)

  • Added support for WordPress 5.4
  • Fixed bug with headers

4.5.1 (19.01.2020)

  • Added output buffering test for Site Health
  • Added domain & advert type fields for
  • Added domain * to exclude list
  • Fixed bug with output buffer notice
  • Fixed bug with & and & in URL
  • Fixed bug with support
  • Updated referrer-warning.php template
  • Updated referrer.php template
  • Updated yourls support
  • Updated layout for links settings page
  • Prevented error 404 on redirect page

4.5 (2019-04-16)

  • Removed possible SQL injection in admin panel scripts

4.4 (2019-04-12)

  • RegEx pattern to DomDocument
  • WPCS
  • Fix bug on log page

4.3.8 (2019-02-02)

  • Built-in support for yourls link shortening

4.3.7 (2019-01-31)

  • Fix bug with cyr2lat plugin: remove sanitize_title from menu items

4.3.6 (2018-12-07)

  • Add assets for plugin

4.3.5 (2018-08-09)

  • Fix bug with Mihdan_NoExternalLinks_Admin_Log_Table

4.3.4 (2018-08-08)

  • Added new lines to the translation

4.3.3 (2018-08-08)

  • Change text domain from mihdan-noexternallinks to mihdan-no-external-links


  • Update README.txt


  • Bump version


  • Forked from


Several bug fixes.


Fixed several PHP Compatibility issues.


Added many new features including:
* AES-256 Link Encryption
* Link Anonymizer
* Domain Specific Targeting
* Bot Specific Targeting
* Improved Logging functionality
* Built-in support for link shortening (, Bitly, Link Shrink,

And several bug fixes.


Re-coded Custom Parser functionality.


Fixed a PHP Compatibility issue.


Bug fixes.


Plugin rewritten. Major overhaul of the code base.

Added custom filter with name “wp_noexternallinks”. Please use it for custom fields and so on.

Fixed custom parser load.

Add support for custom location of wp-content dir.

Fix for RSS masking.

Added support for relative links, beginning with slash (/).

Added masking options for RSS feed.

Added noindex comment option for yandex search engine.

Parser logic optimization and fixes.

Disabled full masking when running cron job to avoid collisions.

Fixed bug when statistic was not written.


Updated filter to support multiline links code.


Custom parser file moved to uploads directory to avoid deletion.


Custom parser file moved to uploads directory to avoid deletion.


Fixed bug with writing click stats to database.


Divided code to smaller functions for easier overwrite with custom modes.


Fixed “rel=follow” feature. Added icon for admin menu.


Do not disable error reporting on server any more.


minor text fixes


Some refactoring.


minor XSS fix (thanks to DefenseCode WebScanner), more debug, fix possible bug with numeric masking


added index on links table


fix for better compatibility with php7


minor security fix


fix masking issues with mixed http/https


fallback to 3.5.11


bugged versions


bugged versions


minor improvements


Fixed issues with cron job


Added option for developers – now you can extend plugin with custom parsing functions! Just rename “custom-parser.sample.php” to “custom-parser.php” and extend the class (see sample file for details). Your modifications will stay even after plugin upgrade!


Redesigned user friendly admin area!


Added option to disable links masking when link is made by admin and has rel=”follow” attribute


Added exclusion for polugin from WP Super Cache.


Added detection and prevention of possible spoofing attacks. See new option in plugin settings. It is enabled by default.


Fixed displaying error where there are no stats for today.


Fixed displaying error where there are no stats for today.


Replaced direct SQL queries with WPDB interface.

Now debug mode does not mess up web site. Also added some text to options page.

Added some more debug.


Updated for correct work with enabled statistics and Hyper Cache plugin.


Correct redirection links with GET parameters, sometimes damaged by wordpress output.


Critical update for 3.3.6.


More output for debug mode.


Little update so that plugin won’t cause harmless warning.


Now you can customize link view if you chose “remove links” or “turn links into text”. Use CSS classes “waslinkname” and “waslinkurl” for it.


Exclusions list fix, possible fix for not found ‘is_user_logged_in’ function.


Imporovements for option “Mask ALL links in document”, debug mode.


Hotfix for some blogs which crashed on checking if page is RSS feed, improvements for option “Mask ALL links in document” – now it doesn’n mask RSS and posts with option “don’t mask links”.


Additional protect from masking links in RSS, fix for admin panel in wordpress 3.4.2, Perfomance fixes.


Two new options, little backslashes fix, error reporting fix.


Improved compatibility with some shitty servers.


Added masking links with digital short codes.


Fixed when some options in checkboxes couldn’t be changed.


Removed some extra info, added some error handlers, repaired broken system for flushing click stats.


Removed test message “failed to update options” when nothing changed in options. Also, fixed issue when, if link masking was disabled for post, it was also disabled for comments.


Fixed option update issue.


Code improvements, added .po translation, clicks stats and option to mask Everything.


fixed javascript error when redirects ended with “;”


Added automatic exclusion of internal links (#smth) from masking.


Several bugfixes for low possible case scenarios…


Javascript links aren’t broken by plugin now, thanks to Andu.


Fixed for some servers with setup which replaces “//” with”/”.


Absolute file paths used now instead of relative.


Fixed language inclusion problem which apperared in some cases.


Fully compatible with PHP4.


Removed “public” keyword in class functions definitions. Probably will be more compatible with PHP4.


Plugin was rewrited for faster performance, fixed adding targer=”_blank” for internal links.


Fixed internationalization, added Belarusian language.


Changed default settings, removed “disable links masking”.


Fixed broken exclusions list.


Updated to execute later then other link filters, preventing possible problems with other plugins.


Little bugfix, for fixing errors when empty exlusions.


Many significant changes, including urls and post exclusion from masking, another rewrite structure, and new options.


Russian translation corrected.


Better work for sites wihout mod_rewrite.


Bugfix for email links.


Bugfix for wrong html parsing.


Activation/Deactivation improved, optimization, localization settings now stored as options.




Multilanguagal release.


First release.