Difference between revisions of "Throttling"

From TMM Wiki
Jump to navigationJump to search
(Created page with '{{NATS4 Manual | show_configuration_admin_section = true }} {{NATS 4.1}} Throttling is a new security setting available in NATS 4.1, which allows you to lock out [[Ct#Surfer…')
 
Line 13: Line 13:
  
 
You'll find a variety of settings in the "Throttling" section on this page. [[NATS]] 4.1 allows you to apply these settings to six pages -- ''approved.php'' (initial member approval), ''upgradeplus.php'' (instant upgrades), ''upgraded.php'' (member upgraded), ''upsellplus.php'' (instant upsells), ''packageplus.php'' (package upgrades), and ''tokenplus.php'' (token rebuys).
 
You'll find a variety of settings in the "Throttling" section on this page. [[NATS]] 4.1 allows you to apply these settings to six pages -- ''approved.php'' (initial member approval), ''upgradeplus.php'' (instant upgrades), ''upgraded.php'' (member upgraded), ''upsellplus.php'' (instant upsells), ''packageplus.php'' (package upgrades), and ''tokenplus.php'' (token rebuys).
 +
 +
[[File:Throttling configuration.PNG|450px|Configuring Your Throttling Settings]]
  
 
Each of these pages contains the same three settings, which allow you to customize how you want to throttle [[Ct#Surfer|surfer]] attempts on accessing these pages. These settings include:
 
Each of these pages contains the same three settings, which allow you to customize how you want to throttle [[Ct#Surfer|surfer]] attempts on accessing these pages. These settings include:
Line 29: Line 31:
  
 
To do so, go to the [[NATS4 Sites Admin|Sites Admin]] and edit the site [[Ct#Template|templates]] for each [[Ct#Site|site]] you have configured. Locate the ''throttling_security'' and ''throttling_security_mobile'' templates on the next page -- these will be displayed when a member reaches the maximum allowed amount of attempts that you set.
 
To do so, go to the [[NATS4 Sites Admin|Sites Admin]] and edit the site [[Ct#Template|templates]] for each [[Ct#Site|site]] you have configured. Locate the ''throttling_security'' and ''throttling_security_mobile'' templates on the next page -- these will be displayed when a member reaches the maximum allowed amount of attempts that you set.
 +
 +
[[File:Throttling templates.PNG|450px|Locating Your Throttling Templates]]
  
 
Edit these [[Ct#Template|templates]] to display whatever you want to your [[Ct#Surfer|surfers]]. The ''throttling_security_mobile'' [[Ct#Template|template]] will be displayed to [[Ct#Surfer|surfers]] using mobile devices, and the ''throttling_security'' [[Ct#Template|template]] will be displayed to all other [[Ct#Surfer|surfers]].
 
Edit these [[Ct#Template|templates]] to display whatever you want to your [[Ct#Surfer|surfers]]. The ''throttling_security_mobile'' [[Ct#Template|template]] will be displayed to [[Ct#Surfer|surfers]] using mobile devices, and the ''throttling_security'' [[Ct#Template|template]] will be displayed to all other [[Ct#Surfer|surfers]].
Line 37: Line 41:
  
 
To use the White List/Black List features, simply go to your Throttling settings, located on the "Security" page in the [[NATS4 Configuration Admin|Configuration Admin]]. Add any IP addresses you want to automatically approve to the ''THROTTLE_WHITE_LIST_IPS'' field, separated by commas. Add any IP addresses you want to automatically prevent from reaching the pages listed here to the ''THROTTLE_BLACK_LIST_IPS'' field, separated by commas.
 
To use the White List/Black List features, simply go to your Throttling settings, located on the "Security" page in the [[NATS4 Configuration Admin|Configuration Admin]]. Add any IP addresses you want to automatically approve to the ''THROTTLE_WHITE_LIST_IPS'' field, separated by commas. Add any IP addresses you want to automatically prevent from reaching the pages listed here to the ''THROTTLE_BLACK_LIST_IPS'' field, separated by commas.
 +
 +
[[File:Throttling lists.PNG|450px|Throttling White List and Black List]]
  
 
Once you have finished entering IP addresses, save your settings. Any IP addresses added to your White List will automatically skip your throttling checks, and any IP addresses added to your Black List will automatically be rejected from any of the pages listed here.
 
Once you have finished entering IP addresses, save your settings. Any IP addresses added to your White List will automatically skip your throttling checks, and any IP addresses added to your Black List will automatically be rejected from any of the pages listed here.

Revision as of 14:39, 3 May 2011

NATS 4
Members Admin
The Members Admin
View Member Details
Add Member
MySQL Auth
Mod Authn DB
Multisite Access
Member Logging
Member Password Retrieval
OpenID Connect
Mod Auth OpenIDC
ID Numbers
NATS Configuration Admin
The Configuration Admin
Log Admin Activity
IP Address Filtering
MEMBER_EXPIRE_PAD
SKIP COUNTRIES
Fraud Configuration
Email Configuration
Affiliate Signup Email
Affiliate Postback
Affiliate Postback NEW
Affiliate Analytics
Throttling
NATS4 Terms of Service feature
GeoIP2

Note: This article only applies to NATS version 4.1 and higher. If you wish to upgrade your installation of NATS in order to take advantage of this feature, please put in a support ticket.

Throttling is a new security setting available in NATS 4.1, which allows you to lock out surfers for a specified period of time if they make too many attempts on certain pages in NATS. This can help prevent authorization strings for transactions from being entered through brute force, so surfers won't be able to perform transactions without paying for them and being redirected through correct auth strings.

Once a surfers reaches the maximum amount of attempts that you set on any of the available pages here, they will be redirected to a template which you can customize to display whatever message you want.

Setting Up Throttling

The NATS Throttling settings can be found in the "Security Configuration" page in the Configuration Admin. To begin configuring your settings, navigate to the Configuration Admin, and choose "Security" from the Current Section drop-down menu at the top of the page.

You'll find a variety of settings in the "Throttling" section on this page. NATS 4.1 allows you to apply these settings to six pages -- approved.php (initial member approval), upgradeplus.php (instant upgrades), upgraded.php (member upgraded), upsellplus.php (instant upsells), packageplus.php (package upgrades), and tokenplus.php (token rebuys).

Configuring Your Throttling Settings

Each of these pages contains the same three settings, which allow you to customize how you want to throttle surfer attempts on accessing these pages. These settings include:

  • THROTTLE_X - Choose what surfer action counts towards page attempts, for throttling purposes. This can be set to "Off" (disables throttling for that page), "Every Page Request" (counts every time this page is loaded), and "Failed Page Authentication Only" (counts every time authentication fails for this page).
  • THROTTLE_X_APPROVED_MAX_COUNT - The maximum number of surfer attempts allowed on the page you want to be throttled. Each attempt is defined by what you selected for the THROTTLE_PAGE setting above. For example, if you set THROTTLE_APPROVED to Every Page Request, this count will be added to every time a surfer attempts to access the approved.php page. By default, this setting is set to accept five (5) attempts to each page before throttling a surfer.
  • THROTTLE_X_TIME_LIMIT - Sets the amount of time, by seconds, for NATS to wait before clearing the count for a prior attempt made to a page listed here. By default, this setting is set to 3600 seconds. Each attempt is counted separately towards the time limit, meaning that if a surfer makes three consecutive attempts and then two consecutive attempts two hours later, the first three attempts will be cleared once the time limit expires, leaving the two later attempts to be cleared once the set time limit expires.

Each of these settings is the same for every page available to be throttled in this section. For example, you will see THROTTLE_APPROVED, THROTTLE_UPGRADEPLUS, THROTTLE_UPGRADED, THROTTLE_UPSELLPLUS, THROTTLE_PACKAGEPLUS, and THROTTLE_TOKENPLUS here.

So as an example, you can set the throttling settings for your approved.php page to "Failed Page Authentication Only" with a maximum count of 5, and a time limit of 3600 seconds. This will allow a maximum of 5 failed attempts to the approved.php page, with each failed attempt being cleared an hour after the attempt occurred.

Templates

Once a surfer reaches the maximum amount of attempts you have allowed on a page, they will be automatically redirected to a template displaying a message of your choosing. As this template is blank by default, you will need to edit it before enabling your throttling settings.

To do so, go to the Sites Admin and edit the site templates for each site you have configured. Locate the throttling_security and throttling_security_mobile templates on the next page -- these will be displayed when a member reaches the maximum allowed amount of attempts that you set.

Locating Your Throttling Templates

Edit these templates to display whatever you want to your surfers. The throttling_security_mobile template will be displayed to surfers using mobile devices, and the throttling_security template will be displayed to all other surfers.

White List/Black List

In addition to configuring throttling settings for individual pages in NATS, you can also add specific IP addresses to a "White List" and a "Black List." Surfers coming from an IP added to the White List will automatically skip the throttling checks, while surfers coming from an IP added to the Black List will automatically fail the throttling checks and be redirected towards your throttling_security template.

To use the White List/Black List features, simply go to your Throttling settings, located on the "Security" page in the Configuration Admin. Add any IP addresses you want to automatically approve to the THROTTLE_WHITE_LIST_IPS field, separated by commas. Add any IP addresses you want to automatically prevent from reaching the pages listed here to the THROTTLE_BLACK_LIST_IPS field, separated by commas.

Throttling White List and Black List

Once you have finished entering IP addresses, save your settings. Any IP addresses added to your White List will automatically skip your throttling checks, and any IP addresses added to your Black List will automatically be rejected from any of the pages listed here.