| How to protect a web link |
|
|
|
|
PHPMembers membership software is able to protect specific web links from being accessed by unauthorized visitors. To setup a protected web link, click on Protect on the main menu, and then click on Protect Link button. The protected URL must be written in regular expression supported by Apache Rewrite Module. It must starts with ^ and ends with $. For example, to protect URL /protected_link.html, you should input ^protected_link.html$ as protected URL. You can select one or multiple groups which their members are allowed to access the link. To select multiple groups, hold CTRL key on your keyboard and left click on the groups you would like to select. If no groups are selected, no visitors or members are allowed to access the web link. Public visitors or members who are not in the selected groups are taken to the redirect URL. You can use variable $1, $2…$N in the redirect URL. These variables are stands for the matched text strings in the URL. To learn more about how to use regular expressions to write protected links and redirect URLs, please visit http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html. |




