WP-Content Listener Wordpress Plugin - Rating, Reviews, Demo & Download

WP-Content Listener Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

NOTE: The .htaccess file needs to be writable in the wp-content sub-directories.

This is meant to be a simple plugin that lets you:

  • Protect files in wp-content (excluding the mu-plugins and plugins folders)
  • Use Google Analytics to track access or downloads to files like pdf and doc files
  • Run custom code when a file in wp-content is accessed

CAUTION: This plugin may cause your website to load slower if you have pages that include a lot of protected images. Each image that is loaded needs to load WordPress files and check if a user is logged in, if the directory is protected, and run other custom code you may have.

Usage

To protect file downloads select the folders you want to protect in the WP-Content Listener’s settings and check the protect checkbox.

To track file downloads you’ll need a Google Analytics Universal account. On WP-Content Listener’s settings page, select the folders you want to track, click the option to track, and enter your Google Analtyics Universal ID.

To run custom code when a file is accessed or downloaded select the folders you want to run the custom code in the settings. Then write your code and hook into the ‘wpcl_before_file_download’ action. If you need to protect your files with specific access rules (more than just if the user is logged in or not), hook into the ‘wpcl_access_filter’ filter.

This plugin did at one time work on IIS, but I cannot offer any support if anything does not currently work. Try at your own risk.

Screenshots

  1. wp-content-listener screenshot 1

    WP-Content-Listener Settings


Reviews & Comments