Just another contact form plugin. Simple but flexible.
About Simple Download Monitor
The Simple Download Monitor plugin is a useful tool for managing and tracking digital file downloads. It allows you to password protect your files and monitor the number of downloads, as well as log IP addresses and dates/times of each download. It also has features such as drag and drop file uploads, shortcodes for displaying download buttons, and the ability to customize button text and colors.Screenshots




Frequently asked questions
What is the primary function of the Simple Download Monitor plugin?
The Simple Download Monitor plugin helps you manage your digital downloads and monitor the number of times your files and documents are downloaded from your WordPress site.
Can I protect my downloadable files with a password?
Yes, you can password protect your downloadable files and documents. Visitors will need to enter a password before they can download the file when this option is enabled.
What kind of information does the plugin track about downloads?
The plugin logs the IP addresses, date, and time of each download. It also tracks the usernames of downloading users, their User Agent, and the Referrer URL.
How do I add downloads to my WordPress site using this plugin?
You can add, edit, and remove downloads through an easy-to-use interface in your WordPress admin dashboard. The plugin supports drag and drop file and document uploads.
Does the plugin provide shortcodes for displaying downloads?
Yes, you can use shortcodes to display a 'download now' button on any WordPress post or page. There is also a shortcode to create a direct download link for a file.
Changelog
4.1.7
- Fixed missing country names in the download logs. The country lookup now uses ipwho.is over HTTPS (so the visitor’s IP address is no longer sent unencrypted), caches results, is only done for downloads that are logged, skips private and local network IP addresses, logs failures to the debug log, and can be customized with the “sdm_ip_info” filter.
- The values shown in the download logs table (such as the country, user agent and referrer) are now escaped.
- The logs table search now treats “%” and “_” as normal characters and works with search terms that contain quotes.
- The reCAPTCHA verification no longer causes a PHP fatal error when Google’s verification service can’t be reached. The verification request now sends the keys correctly encoded.
- The [sdm_search_form] shortcode now uses a prepared database query, finds search terms that contain quotes, and escapes the search results. Fixed a PHP warning for items without a description.
- The CSV export of the download logs now has the missing “User Agent” column name, and values that could be read as spreadsheet formulas are now made safe. Both the start date and the end date of the export are now validated.
- Fixed the total download count ([sdm_download_counter id=”all”]) so it includes the count offsets of all download items, and made it faster on sites with a lot of download logs.
- Fixed a PHP fatal error with the [sdm_download] and [sdm_show_all_dl] shortcodes when they are used without any attributes on WordPress 6.0 to 6.4 with PHP 8.
- Fixed a PHP fatal error when the [sdm_download_categories] shortcode is used more than once on the same page.
- Fixed the error message for a download item without a file URL being shown outside the error page.
- The category names and links in the [sdm_download_categories_list] shortcode and the Terms and Conditions page link are now escaped.
- Fixed the “open in a new window” option for download buttons with reCAPTCHA.
4.1.6
- Fixed a path traversal issue where a crafted “Downloadable File” URL containing “../” could be used to download files from outside the intended folder. The file path is now validated to stay inside the expected folder, and such URLs can no longer be saved. PHP-type file extensions are now always blocked from PHP dispatch.
- The export logs feature now checks the user’s permission, only accepts valid sort columns, and no longer shows database error messages in the browser.
4.1.5
- The debug log file is now stored in the plugin’s “logs” folder, which is protected from direct web access, and its file name has a random prefix that is unique to each site.
4.1.4
- The [sdm_popular_downloads] shortcode now only lists published download items (unless the “Allow downloads of unpublished items” option is enabled), so it no longer shows private or draft items to visitors. Thanks to Zackary Loevseth for reporting this.
4.1.3
- The [sdm_show_download_info] shortcode now applies the same availability check as the download button shortcode, so it no longer shows details of private, draft or unpublished download items to users who can’t access them.
- The “download_url” option of the [sdm_show_download_info] shortcode now returns the standard download link (instead of the direct file URL) for items that are password protected, restricted to logged-in users, or that require reCAPTCHA or Terms and Conditions. Thanks to WellKnown for reporting this.
4.1.2
- Improved the Enhanced File Protection .htaccess rules for compatibility with LiteSpeed/OpenLiteSpeed and Apache 2.4 servers. Existing default .htaccess files are upgraded automatically.
4.1.1
- Performance improvement by using COUNT queries instead of fetching full rows where download counts were needed.
- Improved database query security by using prepared statements for the unique IP check during download logging.
4.1.0
- Fixed a PHP 8.2+ deprecation warning by updating legacy parameter handling for better forward compatibility.
- Updated Gutenberg block compatibility for WordPress 7.1.
4.0.9
- Added a new settings option ‘Allow Downloads of Unpublished Items’ that the admin can use to allow downloading of unpublished download items.
- Added a new filter hook ‘sdm_is_download_item_viewable’ to allow developers to modify/customize the download item viewability check.
4.0.8
- Added checks/guards so unpublished items cannot be downloaded via direct link.
4.0.7
- The ‘Export Logs’ option now works with the ‘Admin Dashboard Access Control’ feature.
4.0.6
- Added output escaping functions to the fancy display templates.
4.0.5
- Added output escaping functions to the ‘sdm_show_download_info’ shortcode.
4.0.4
- Added a new parameter ‘search_button_text’ to the ‘sdm_search_form’ shortcode. This parameter allows you to set the text of the search button in the search form.
- The ‘button_text’ parameter of the search shortcode can be used with the fancy templates to set the download button text in the search results.
4.0.3
- Added filtering by Download ID option to the stats menu.
4.0.2
- Added help text in the Advanced settings to mention that we have Cloudflare Turnstile CAPTCHA support now.
- Fixed an issue where the custom ‘Button Text’ field value from the download edit page was not being applied correctly when using the category shortcode.
4.0.1
- Added a new filter hook ‘sdm_load_template_files’ to allow developers to modify/customize the fancy display templates.
- Improved the new template loading code structure to make it easier to copy and modify templates.
4.0.0
- Added functionality to override the template by using a custom template file in the active theme’s folder.
- Amazon bot filter added to the bot detection function.
- Added a filter hook ‘sdm_get_ip_address’ to allow modification of the detected IP address.
- Category shortcode output for fancy 0 has been moved into a dedicated function.
- Added {ip_address} email merge tag to the email notification addon.
- Added a new filter hook ‘sdm_download_window_target’ to allow customization of the download link’s window target.
3.9.35
- Added output escaping to a parameter in the sdm_download_link shortcode.
3.9.34
- Enhanced security by adding proper sanitization and escaping to the sort order and orderBy parameters in the export logs feature.
3.9.33
- Added escaping to the download thumbnail field for better security.
3.9.32
- Readme file updated to fix the formatting of some sections.
- Added Hebrew translation to the plugin.
- Download via direct link feature is now compatible with the various CAPTCHA options.
3.9.31
- Cloudflare Turnstile CAPTCHA support added. View the Cloudflare Turnstile CAPTCHA documentation for more details.
- Updated the ip address retrieval method for better server compatibility.
- Added a new filter hook ‘sdm_ip_address_header_order’ to allow customization of the order of the IP address header.
3.9.30
- The Google reCAPTCHA v3 feature is now also available for single download posts.
3.9.29
- Added Google reCaptcha v3 support. It can be enabled from the advanced settings menu of the plugin.
- Added a new filter hook ‘sdm_download_button_text_filter’ to allow customization of the download button text via custom code.
- Added a new filter hook ‘sdm_shortcode_meta_box_content’ to allow addons to add content to the shortcode meta box.
- Added a new filter hook ‘sdm_before_download_button’ to allow addons to add content before the download button.
- Added a new action hook ‘sdm_download_via_direct_post’ to allow addons to do tasks when download request via direct post is received.
- Added hooks that will allow us to add support for Cloudflare Turnstile in the future.
3.9.28
- Fixed a minor issue in the newly added admin-side JavaScript code for the logs export feature.
- Updated the translation POT file.
3.9.27
- Added a search field to the logs table, enabling users to search for specific log entries.
- Introduced an option to export logs to a CSV file.
- Removed a PHP warning from the ‘pass_text’ request parameter for password protected downloads.
- Added integration with the WP eMember plugin’s access control to allow downloads to be restricted to members only.
- Download process request is now handled using the ‘wp’ hook.
3.9.26
- The update for excluding hidden attachment media queries will not occur if the enhanced file protection feature is disabled.
- When using the ‘pre_get_posts’ hook, it will now check if another plugin has already modified the query and if so, it will append to it.
- Removed the trailing slash from the download URL in the download now button shortcode to prevent double slashes in the URL. Thanks to @expforex for pointing this out.
- Renamed a function to add the ‘sdm’ keyword to prevent a potential conflict with another plugin.
- Added an isset check to remove a PHP notice in the download count shortcode.
- Added sanitization to the row_id variable in the log entry delete function.
3.9.25
- New Enhanced File Protection feature added.
- Thumbnails in the Downloads menu’s admin interface will no longer appear squished.
- Added an isset check for the “download_id” variable in the download request handler.
- Fixed $id variable not defined warning in category shortcode.
- Thumbnails in the Downloads menu’s admin interface will no longer appear squished.
- Minor CSS improvements to the information box for better readability.
3.9.24
- New settings added to allow the admin to specify if other WP User roles can view the plugin’s admin dashboard.
- Added a new shortcode parameter (more_detail_url) that can bused to show a link below the description section of the fancy 1 and 2 templates.
- The ‘more details’ Shortcode usage example is available in the documentation here
- Fixed an issue with the single entry log delete function.
- Fixed the custom download button text issue with the fancy 1 & 2 templates.
- Fixed an issue with the specific items logs menu now showing correctly.
- Bulk delete issue fixed in specific item logs tab.
- Logs menu tittle has been moved above to the menu tabs.
3.9.23
- Improved the [sdm_download_counter id=”ALL”] shortcode’s query parameter handling.
- Download button text for category shortcode fixed.
- New stats tab added to display top users by download count.
- Download template 2 display fixed for block themes.
3.9.22
- Removed one of the newly added filter hooks.
3.9.21
- Compatibility improvement – Updated the newly added title sanitization to check if the post id is present to improve compatibility with some themes.
3.9.20
- Allow WP audio shortcode to also work in the template 1 description field.
- New window feature now works with fancy 0 template with the shortcode.
- Added a new filter hook to allow customization of the single download post title.
- Added sanitization to the SDM post type title.
- Added the ‘Direct Download URL without Tracking Count (Ignore Logging)’ option to the download edit page.
3.9.19
- The audio player shortcode can be used in template 1 download display shortcode.
3.9.18
- New URL query parameter “sdm_ignore_logging” added to ignore download logging and counting for direct download link.
- SDM block editor’s sidebar styling issue fixed.
- Updated the download query argument value from ‘smd_process_download’ to ‘sdm_process_download’ to match the plugin’s slug. The old query arg will continue to work for backwards compatibility.
3.9.17
- Block inserter for download item updated for WP 6.2.
3.9.16
- Added the fancy 1 shortcode in the “Shortcodes” section of the download configuration interface (for easy copy and paste).
- Updated link to the documentation.
- Added “alt” tag to the item thumbnail image.
- Fix for Stored XSS in the Logs menu.
- The thumbnail alt filters now also passes the download ID as an argument.
- Removed a PHP notice related to PHP8.
3.9.15
- Fixed an issue with the “Quick Edit” link in the downloads menu hanging.
- Added a new utility function in the debug logging class.
3.9.14
- Get download by date query has been updated.
- Added filters for categories and tags to change the slug (or other parameters). Thanks to @cfoellmann.
- Added a filter to the fancy2 shortcode output so it can be customized.
- Added a filter to the fancy1 shortcode output so it can be customized.
Full changelog available at change-log-of-old-versions.txt
