Advanced Access Manager

The Advanced Access Manager extension allows you to create advanced download limitations per download and on a global level.

Installation

  • Unzip and upload the plugin’s folder to your /wp-content/plugins/ directory
  • Activate the extension through the ‘Plugins’ menu in WordPress

For more information on installing and managing plugins see here

Usage

After installing the extension you can setup access rules per download or on a global level. The rules used per download and in global are the same so are only documented once.

Managing Access Rules

Every download will have a new meta box under the content field titled ‘Advanced Access Rules’. In this box you can create, edit, order and delete the download specific access rules. Rules will be loaded in order of display, top first, and will tried to be matched to the requester per rule. Once a rule completely matches the requests (including restrictions), the rule will apply and the rules check will stop (break). Global rules will always be checked after download specific rules.

The Advanced Access Rules meta box
The Advanced Access Rules meta box

Access Groups

Access groups are the first and main identifier of an access rule. Based on the group the extension can determine of the rules applies on the person that’s trying to download your file. The extension comes with the following 4 access groups:

  • Anyone – Literally everyone
  • Role – An user role
  • User – An username
  • IP – An IP address

Restrictions

You can set an extra restriction per rule for even more advanced access control. Currently you can set a date period restriction or a download count restriction. The date period restriction enables you to limit access to a download between date X and Y. The download count restriction enables you to only allow someone to download a file X times, this is based on IP address (logs must be enabled for this restriction to work).

You can set an extra restriction per rule for even more advanced access control
You can set an extra restriction per rule for even more advanced access control

Global Access Rules

Global access rules can be accessed via the submenu item of Downloads in your WordPress backend. Global rules have the same format as the download specific rules with one difference, they apply to all downloads. It’s important to remember that global rules will always be applied after the download specific rules. In other words, a global rule can only be applied if none of the download specific rules matched.

Global Access Rules provide an easy way to setup access rules for all your downloads
Global Access Rules provide an easy way to setup access rules for all your downloads

Customer Usage

Using advanced access rules will not change the experience for your users, they will still request the downloads the same way they used to. The access checks will be done upon download request.

FAQ

Does is matter what order the access rules are in?

It does! Rules will be loaded in order of display, top first, and will tried to be matched to the requester per rule. Once a rule completely matches the requests (including restrictions), the rule will apply and the rules check will stop (break).

Please see the following screenshots to demonstrate how important the order of rules is:

Example of rules in the WRONG order

Because the first rule matches 'everyone', this rule will always apply to everyone and the rest of the rules will be ignored
Because the first rule matches ‘everyone’, this rule will always apply to everyone and the rest of the rules will be ignored

Example of rules in the RIGHT order

Placing the specific rules above the 'everyone' rule allows you to allow certain users while blocking the rest
Placing the specific rules above the ‘everyone’ rule allows you to allow certain users while blocking the rest

Can I use download specific rules and global rules at the same time?

You can. Please do note that download specific rules will always be applied prior to global rules.

How can I change the order of the rules?

You can simply drag and drop the rules to change their order! Don’t forget to ‘update’ your download afterwards!

Is the extension Multiste/Network compatible?

The Advanced Access Manager extension is 100% Multisite/Network compatible! The extension will work like it should while being network activated or activated only for certain websites within your network.

Was this article helpful? Yes · No