CMS Integration

Member Guardian comes equipped with a fully functional CMS security module. This module can be used with any of the CMS programs currently integrated with Member Guardian to secure both individual pages and entire categories of your blog/website.

Installing the Utility

Check Your Paths

Before going any further, open the "/members/cms_code.php" file and ensure that the "$FSP" variable reflects the correct full server path to the Member Guardian folder. You can find the correct full server path from the "Settings » System Paths » Program FSP" option.

Install the Code

If you update your CMS, it is vital that you re-add this code to your CMS's index.php file. Failing to do this will result in your "secure" CMS content no longer being secure.

Open the primary "index.php" file for your CMS and add the following to the top of the file just below the "<?php" line:

include "/full/path/to/members/cms_code.php";

Activate the Module

From your admin control panel:

  1. Click on "Settings » Modules"
  2. Find your CMS, whether it be Wordpress, Joomla, or another CMS, and click the [+] symbol.
  3. Set the Status setting to "Active"
  4. Input the requested settings for this module.
  5. Click on "Update Module"

Setting Up Your Secure Pages

Once you have activated your CMS module, a new link will appear under the "Settings navigation menu entitled "CMS Name Security". To secure pages on your CMS, do the following:

  1. Click on "Settings » CMS Name Security"
  2. Click on "[+] Add Another"
  3. Input the "Permalink" generated by your CMS for the page or category that you want to secure (see permalink security below).
  4. If you wish to make this available only to users of a specific user group, select the user group from the dropdown.
  5. Click on "Update CMS Security"

Permalink Security

Most CMS programs have standardized permalink settings. This is the URL that a user types into his/her browser to access a page on your web site. Member Guardian allows you to secure permalinks based on any "level" of directory. Take the following Wordpress example.

Presume you have a Wordpress blog that is using the "Day and name" permalink format. A standard link would look like this:


Member Guardian allows you to secure any "level" of "directory" ("2012", "07", "06") up to the page name ("sample-post"). Here's an example:

Permalink SecuredWhat is secured on your CMS page with a permalink that starts with "2012". So "2012/09" would be secure, as would "2012/10", etc.. page with a permalink that starts with "2012/07/06". However "2012/07/05" would not be secured. the "2012/07/06/sample-post" permalink.

Wordpress Permalinks

In the case of Wordpress, we recommend that you create a custom permalink structure that takes advantage of the categorization features of the program. From your Wordpress control panel:

  1. Click on "Settings » Permalinks"
  2. Select Custom Structure
  3. Input "/%category%/%postname%/"
  4. Click on "Save Changes"

You can then create a logical category structure from "Posts » Categories", and use the Permalink Security model to secure entire categories of your website.

Tags: #wordpress #joomla #drupal #content_security