NDT Redirect

外掛說明

NDT Redirect is a lightweight plugin designed to manage external links on your WordPress site. It intercepts external links, redirects them through an intermediate page with a customizable delay, and applies the no-referrer policy to protect user privacy. This plugin is ideal for site owners who want to ensure link safety and maintain control over outbound traffic.

Key features include:

  • Adds a redirect page with a countdown timer for external links.
  • Supports no-referrer meta tag to prevent referrer leakage.
  • Allows administrators to enable/disable the plugin and configure settings.
  • Customizable redirect time and link target (_self or _blank).
  • Option to exclude specific user roles (e.g., Administrators) from redirection.
  • Compatible with pages, posts, comments, and WooCommerce products.

NDT Redirect is developed and maintained by Tony Nguyễn and will be supported as long as necessary.

Support

For support, please contact me via:
– Email: admin@ndtan.net
– Telegram: @nguyenduytan
– Website: https://nguyenduytan.com

螢幕擷圖

  • Admin settings page under NDT Solutions > NDT Redirect.

安裝方式

  1. Upload the ndt-redirect folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to NDT Solutions > NDT Redirect in the admin dashboard to configure settings.

常見問題集

What does this plugin do?

NDT Redirect intercepts external links on your site, redirects them through a customizable intermediate page, and applies a no-referrer policy to enhance privacy and security.

How do I configure the plugin?

After activation, go to NDT Solutions > NDT Redirect in your WordPress admin dashboard. You can enable/disable the plugin, set redirect time, choose link targets, and configure which content types (pages, posts, etc.) are affected.

Can I exclude certain users from redirection?

Yes, in the settings, you can select user roles (e.g., Administrator) under “Except group id” to exclude them from the redirect feature.

Does it work with WooCommerce?

Yes, the plugin supports redirecting external links in WooCommerce product descriptions if the “Products” option is enabled in the settings.

Why is the redirect page not showing?

Ensure the plugin is enabled and at least one content type (e.g., Pages, Posts) is selected under “Effect on” in the settings. Also, check if your user role is excluded under “Except group id”.

How can I support the developer?

You can support the developer by donating via the PayPal.me link provided in the plugin’s admin settings page under “About the Author”.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈NDT Redirect〉的開發相關工作。

參與者

將〈NDT Redirect〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.7

  • Standardized prefix to NDTAN_ to align with WordPress.org guidelines.
  • Moved inline styles to admin.css and enqueued using wp_enqueue_style().
  • Added “Settings” link to the Plugins page.
  • Removed load_plugin_textdomain() as it is not needed for WordPress.org-hosted plugins.
  • Updated Requires PHP to 7.0.
  • Improved toggle switch alignment and styling for better UI consistency.
  • Fixed minor security and compatibility issues.

1.0.6

  • Updated “Tested up to” to WordPress 6.8 for compatibility.
  • Fixed image display to use wp_get_attachment_image() for loading.gif to comply with Plugin Check recommendations.
  • Removed unused SweetAlert2 to comply with WordPress.org guidelines on remote resources.
  • Fixed fatal error in admin menu due to invalid callback.
  • Fixed security issues with output escaping and nonce verification.
  • Used existing admin.js for admin script, removing external resource.
  • Fixed dynamic sanitize callback for settings.
  • Fixed English translation file to match code structure.
  • Fixed translation issue for “If waiting too long please %s” on redirect page.
  • Fixed i18n issue by correctly placing translators comments for placeholders.
  • Fixed window.open issue for _blank target.
  • Improved countdown reliability and multilingual support.
  • Added SSL check for resource URLs.
  • Fixed duplicate title tag issue.

1.0.5

  • Fixed issue where unchecking all “Except group id” options was not saved correctly. Now supports saving an empty group list.
  • Improved handling of “Except group id” settings to retain previous values only when necessary.
  • Fixed persistent “Administrator” checkbox issue in “Except group id” settings.

1.0.2

  • Initial public release with full functionality.

1.0.1

  • Beta release with basic redirect and no-referrer features.

1.0

  • Initial development version.