Provides the ability to restrict access to your web site by IP address and/or IP network.
Off. No blocking what-so-ever.
On. Actively blocking those that are configured to be blocked.
IP Restrictions allow an unlimited amount of restriction entries, each being configured on its own line. Each entry has several configurable parameters that are separated by the pipe "|" character.
The IP to block or the beginning of the IP network to block. (required)
The netmask of the IP/network to block. Defaults to 255.255.255.255. (optional)
Specify which day(s) the site is restricted. Not including or leaving this field blank indicates that all days are restricted. Specified in numeric notation 0 through 6, where Sunday is 0 and Saturday is 6. (optional)
If the restriction is time sensitive, this is when the restriction begins. Specified in military time. (optional)
If the restriction is time sensitive, this is when the restriction ends. Specified in military time. (optional)
If provided, allows the end-user to bypass the restriction. (optional)
A short restriction message. If you enter any of the above parameters in brackets (), they will be replaced with the corresponding parameter value. (optional)
Restricts the IP address of 127.0.0.1 from accessing the web site
Restricts the entire class-c network (from 127.0.0.0 - 127.0.0.255) between 8:00 AM and 6:00 PM
Restricts the entire class-c network (from 127.0.0.0 - 127.0.0.255) Monday through Friday between 8:00 AM and 6:00 PM
Net=127.0.0.1|Mask=255.255.255.0|Password=abcd|Message=You've been blocked!
Restricts the entire class-c network (from 127.0.0.0 - 127.0.0.255) with the ability for the viewer to bypass the restriction if they know the password. In addition, a custom restricted message is included.
The restricted message can be either plain text or html, although PHP code is not processed. All of the parameters from above can be included dynamically if surrounded in brackets (), in addition to two new parameters:
The current time the restriction was processed. Useful for debugging.
If a password parameter exists for the restricted entry, a bypass input box is displayed so the viewer can bypass the restriction. The form input box has a CSS ID of
jc_ipr_css_inputin order to customize.
The preview link is available to verify that the message will display correctly, just to make sure all those path statements are right. ;) A default message is used if leave the Restricted Message field empty.
A restricted message of:
We're sorry, the IP network of [NET] ([MASK]) has been restricted from viewing our web site for the following reason: [Message]
For the IP Restriction entry:
Net=127.0.0.1|Mask=255.255.255.0|Begin=08:00|End=18:00|Message=You should be working between the time of [BEGIN] and [END]!!!
We're sorry, the IP network of 127.0.0.1 (255.255.255.0) has been restricted from viewing our web site for the following reason: You should be working between the time of 08:00 and 18:00!!!
There are three configurable options within the jc-iprestrictions.php file:
The delimiter character used for IP Restrictions entries. (| by default)
The comment character used for IP Restrictions entries. (* by default)
The format for the [Timestamp] parameter processed in the restricted message.
You'll probably never need to change these...
First Public Release