توضیحات
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_settingschanges the download limit - Filter
smartdr_target_kinddecides whether a target is shown as download (file) or external link (link) - Filter
smartdr_fallback_delaychanges the time in milliseconds before the fallback button appears (default 3000)
عکسهای صفحه




بلوکها
این افزونه 1 بلوک ارائه میدهد.
- 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.
نصب
- Install the plugin through the Plugins screen, or upload the folder
smart-download-redirectorto/wp-content/plugins/. - Activate the plugin.
- Go to Settings > Download Redirector and click “Create download page” (or choose an existing page with the “Download Countdown” block).
- Add at least one link rule, for example the domain of your file host.
- Use “Test a link” to check a link, then look at it on your site.
سوالات متداول
-
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.
نقد و بررسیها
نقد و بررسیای برای این افزونه یافت نشد.
توسعه دهندگان و همکاران
“Smart Download Redirector” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کردهاند.
مشارکت کنندگانترجمه “Smart Download Redirector” به زبان شما.
علاقه مند به توسعه هستید؟
کد را مرور کنید, را بررسی کنید مخزن SVN, یا مشترک شوید گزارش توسعه توسط RSS.
گزارش تغییرات
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
