Why use mod_auth_token.
The mod_auth_token module is a free apache module that can be used to work around playback issues when using simple password management in Apache.
Several devices (such as android devices) have issues playing back movies that hide behind a paywall. The mod_auth_token module solves these playback issues without requiring any paid third-party protection scripts.
How it works:
The way this works is by having the CMS replace links to content such as:
With URLs like this:
These URLs are only valid for a temporary amount of time.
How to set up mod_auth_token.
Setting up mod_auth_token is a four step process:
1) Have your hosting provider add mod_auth_token to your apache server.
2) Have your hosting provider create a symlink that links to your /members/content/ folder.
If your members area is in:
The link http://mysite.com/download/ should be a symlink that points to http://mysite.com/members/content/
3) Have your hosting provider set up a <Location> entry within the apache virtual host configuration file for your domain.
# Secret key - This should be changed by your host.
# Timeout length. URLs will expire after 5 minutes. Your host can increase or decrease this amount of time.
4) Within your members area cmsinclude.ini.php, add the following flags to the bottom of the file:
; This should be the link to the existing content folder.
; This should be the set to what the host set AuthTokenPrefix as.
; This should be set to what the host set AuthTokenSecret as.
; Set this to the value that your host set AuthTokenLimitByIp as
The values for each of these should be changed to reflect the URL of your members area, using the settings provided by your host.
Once these are in place, your members area should be configured to use mod_auth_token.
More Information on mod_auth_token
More information on this server module can be found here: