Title: Smart Download Redirector
Author: Desk9 Design
Published: <strong>9 juillet 2025</strong>
Last modified: 1 octobre 2026

---

Recherche d’extensions

![](https://ps.w.org/smart-download-redirector/assets/banner-772x250.png?rev=3723358)

![](https://ps.w.org/smart-download-redirector/assets/icon-256x256.png?rev=3723358)

# Smart Download Redirector

 Par [Desk9 Design](https://profiles.wordpress.org/desk9/)

[Télécharger](https://downloads.wordpress.org/plugin/smart-download-redirector.2.0.0.zip)

 * [Détails](https://fr.wordpress.org/plugins/smart-download-redirector/#description)
 * [Avis](https://fr.wordpress.org/plugins/smart-download-redirector/#reviews)
 *  [Installation](https://fr.wordpress.org/plugins/smart-download-redirector/#installation)
 * [Développement](https://fr.wordpress.org/plugins/smart-download-redirector/#developers)

 [Support](https://wordpress.org/support/plugin/smart-download-redirector/)

## Description

Smart Download Redirector sends chosen links through a countdown page before the
visitor reaches the target. It handles two kinds of links, each with its own screen
and texts:

 * **Downloads** (links to files like zip or pdf): « Preparing your download », 
   file name, download button
 * **External links** (links to other websites): « You are leaving this website »,
   target domain, « Continue to … » button

Use it to announce downloads from other servers, to show a short notice before visitors
leave your site, or to count how often your files and partner links are used.

You choose which links go through the countdown. The plugin changes those links 
on your site automatically, you do not have to edit your posts.

#### Features

 * **Three layouts:** Card (centered, progress ring), Minimal (large number, thin
   bar, no box) and Inline (compact bar between your content)
 * **Live preview** in the settings: every change to colors, corners, texts and 
   timing shows up right away, including all stages of the countdown (counting, 
   at zero, fallback button, invalid link)
 * **Downloads and external links:** the plugin detects the kind of every link and
   shows the matching screen and texts
 * **Link rules:** domains (with subdomains), file types (zip, pdf, …), files from
   your media library, or all external links. Exclusions and a « smartdr-skip » 
   class for single links
 * **Show what you want:** file name, target domain and the skip link can each be
   hidden; the skip link can also appear only in the last seconds
 * **Link tester:** paste a link and see which rule applies, with the finished countdown
   link to copy
 * **Download statistics:** countdown views and downloads per file, completion rate,
   chart per day and a dashboard widget. Only totals per file and day are stored,
   no IP addresses, no cookies
 * **Fallback button:** if the browser stays on the page, visitors get a « Download
   now » button. Visitors without JavaScript get it right away
 * **Visitor friendly:** the timer pauses in background tabs, screen readers hear
   every state change, animations follow « reduce motion »
 * **One-click setup:** create the download page with a button, or use any page 
   with the « Download Countdown » block or the shortcode
 * **Cache friendly:** countdown links are signed with a secret key of your site,
   they never expire and work with page caching plugins
 * **Download limit** per visitor against bots (the IP address is only used as a
   salted hash for a short time)
 * **Multilingual:** texts can be translated with WPML or Polylang, the translated
   download page is used automatically
 * Theme friendly: font and text color come from your theme, you only pick an accent
   color

#### Build the rest of the download page as you like

The download page is a normal WordPress page. Place the « Download Countdown » block
where you want and add anything around it: a thank-you note, a donation link, a 
newsletter form or related downloads.

#### For developers

 * `smartdr_generate_download_url( $url )` returns the countdown link for a URL (
   or the URL unchanged if no rule matches)
 * Filter `smartdr_rate_limit_settings` changes the download limit
 * Filter `smartdr_target_kind` decides whether a target is shown as download (`
   file`) or external link (`link`)
 * Filter `smartdr_fallback_delay` changes the time in milliseconds before the fallback
   button appears (default 3000)

## Captures d’écrans

[⌊Layout Card: countdown with progress ring⌉⌊Layout Card: countdown with progress
ring⌉[

Layout Card: countdown with progress ring

[⌊Layout Minimal: large number and thin progress bar⌉⌊Layout Minimal: large number
and thin progress bar⌉[

Layout Minimal: large number and thin progress bar

[⌊Layout Inline: compact bar between your content⌉⌊Layout Inline: compact bar between
your content⌉[

Layout Inline: compact bar between your content

[⌊Settings with live preview⌉⌊Settings with live preview⌉[

Settings with live preview

## Blocs

Cette extension fournit 1 bloc.

 *   Download Countdown Shows the countdown on your download page and then sends
   visitors on to the file. Put it on the page you chose in Settings > Download 
   Redirector.

## Installation

 1. Install the plugin through the Plugins screen, or upload the folder `smart-download-
    redirector` to `/wp-content/plugins/`.
 2. Activate the plugin.
 3. Go to Settings > Download Redirector and click « Create download page » (or choose
    an existing page with the « Download Countdown » block).
 4. Add at least one link rule, for example the domain of your file host.
 5. Use « Test a link » to check a link, then look at it on your site.

## FAQ

### Which links are changed?

Links in posts, pages, blocks (also navigation, headers and footers of block themes)
and widgets that match one of your link rules. Links with the class « smartdr-skip»
and links that contain one of your exclusions stay as they are.

### Can I use it as a notice for external links?

Yes. Turn on « Send every link to another website through the countdown », or add
single domains. Links to web pages get their own screen (« You are leaving this 
website », « Continue to example.com ») with their own texts in the settings. Links
to files keep the download screen.

### How does the plugin tell downloads and external links apart?

Links that match the file type rule or point to your media library are downloads,
as well as links whose address ends with a file ending like .zip or .pdf. Everything
else is an external link. Developers can change this with the filter `smartdr_target_kind`.

### Does it work with page caching?

Yes. Countdown links are signed with a fixed secret key instead of a nonce, so they
never expire. Statistics are sent from the browser, so they are counted even when
the countdown page comes from a cache. The download limit only works for pages that
are not cached.

### What does the statistics feature store?

Per target URL and day: how often the countdown was shown and how often the download
started. Nothing else. No IP addresses, no cookies, no data is sent to other services.
Each visitor counts once per file and browser session. Administrators are not counted
unless you turn that on.

### Can I change the look per page?

The block has its own layout setting. Colors, corners, texts and timing are set 
once in Settings > Download Redirector.

### What happens to my settings from version 1.x?

They are taken over when you update: domains, countdown time, layout (Standard becomes
Card, Compact becomes Inline, Progressbar becomes Minimal), heading, link text, 
counter color, corner radius, download limit and your download page. Links created
with version 1.x keep working.

## Avis

Il n’y a aucun avis pour cette extension.

## Contributeurs/contributrices & développeurs/développeuses

« Smart Download Redirector » est un logiciel libre. Les personnes suivantes ont
contribué à cette extension.

Contributeurs

 *   [ Desk9 Design ](https://profiles.wordpress.org/desk9/)

[Traduisez « Smart Download Redirector » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/smart-download-redirector)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/smart-download-redirector/),
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/smart-download-redirector/),
ou s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/smart-download-redirector/)
par [RSS](https://plugins.trac.wordpress.org/log/smart-download-redirector/?limit=100&mode=stop_on_copy&format=rss).

## Journal des modifications

#### 2.0.0

 * New: three layouts Card, Minimal and Inline, with all states (counting, at zero,
   fallback button, button mode, invalid link, download limit, no download selected)
 * New: settings page with live preview and stage buttons
 * New: block « Download Countdown » with its own layout setting; the shortcode 
   keeps working
 * New: separate screen and texts for external links (« You are leaving this website»),
   detected automatically
 * New: link rules for file types, media library files and all external links, plus
   exclusions and the class « smartdr-skip »
 * New: wildcard subdomains like *.example.com
 * New: link tester and « Create download page » button
 * New: download statistics with chart, table and dashboard widget
 * New: choose between automatic download and a download button at zero
 * New: file name, target domain and skip link can be hidden one by one; the skip
   link can appear only in the last seconds
 * New: fallback « Download now » button, also for visitors without JavaScript
 * New: the timer pauses in background tabs; screen reader announcements; reduced
   motion support
 * New: option to open countdown links in a new tab
 * New: the download page is kept out of search results (noindex)
 * Improved: links in navigation, template parts and all blocks are recognized, 
   not only post content
 * Improved: font and text color come from the theme, accent color with automatic
   button contrast
 * Improved: settings are stored in one option and taken over from 1.x automatically
 * Changed: the security header Content-Security-Policy is no longer sent, it blocked
   fonts and scripts of many themes
 * Changed: settings and statistics are only deleted with the plugin if you turn
   that on
 * Removed: unused options « Show Manual Link » and « Destination URL Box Styles»,
   the separate redirect delay and the theme template override
 * Tested up to WordPress 7.1

#### 1.0.1

 * Changed: redirect links are now protected with a stable signed token (HMAC) instead
   of a WordPress nonce. Links no longer expire after ~24 hours and are fully compatible
   with page caching plugins
 * Fixed: rate limiting is now actually enforced on the countdown page
 * Fixed: security headers are now sent on the download countdown request
 * Fixed: URLs are no longer rewritten to force a « www. » subdomain, which could
   break valid download links
 * Fixed: countdown timer could initialize twice and run too fast on already-loaded
   pages
 * Fixed: removed deprecated FILTER_SANITIZE_STRING usage for PHP 8.1+ compatibility
 * Improved: uninstall now removes all plugin options and transients
 * Improved: avoid unnecessary database writes on every page load
 * Removed: debug logging and unused code
 * Tested up to WordPress 7.0

#### 1.0.0

 * Initial release

## Méta

 *  Version **2.0.0**
 *  Dernière mise à jour **il y a 2 semaines**
 *  Installations actives **Moins de 10**
 *  Version de WordPress ** 6.8 ou plus **
 *  Testé jusqu’à **7.1.3**
 *  Version de PHP ** 7.4 ou plus **
 *  Langue
 * [English (US)](https://wordpress.org/plugins/smart-download-redirector/)
 * Étiquettes
 * [countdown](https://fr.wordpress.org/plugins/tags/countdown/)[download](https://fr.wordpress.org/plugins/tags/download/)
   [download counter](https://fr.wordpress.org/plugins/tags/download-counter/)[external links](https://fr.wordpress.org/plugins/tags/external-links/)
   [redirect](https://fr.wordpress.org/plugins/tags/redirect/)
 *  [Vue avancée](https://fr.wordpress.org/plugins/smart-download-redirector/advanced/)

## Évaluations

Aucun avis n’a encore été envoyé.

[Votre avis](https://wordpress.org/support/plugin/smart-download-redirector/reviews/#new-post)

[Tout voir](https://wordpress.org/support/plugin/smart-download-redirector/reviews/)

## Contributeurs

 *   [ Desk9 Design ](https://profiles.wordpress.org/desk9/)

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/smart-download-redirector/)