Paid feature

This is a paid feature. If you need more information, please contact tpm@deployteq.com for further details.

The ipaccess Smarty function has been developed for pages in Deployteq. This function allows you to put IP addresses/ranges on a whitelist or blacklist. In essence, you can specify which IP addresses are allowed to access the page and which are not.

This functionality can be useful, for instance, when a specific page should only be accessible from the office VPN IP address.

ipaccess

{{ipaccess}}

Arguments

ArgumentDescription
whitelist1 or multiple IP addresses that are allowed access to the page; all other IP addresses are denied when calling the page
blacklist1 or more IP addresses that are not allowed access to the page; all other IP addresses are permitted to visit the page.
urlRedirect URL for clients not on the whitelist. If no url is provided, a default Deployteq error page will be displayed.

Examples

ipaccess

{{* Allow visitors with the following IP addresses: 12.34.56.78, 23.45.67.88, 23.45.67.89, 23.45.67.90 en 23.45.67.91 *}}
{{ipaccess whitelist="12.34.56.78,23.45.67.89/30"}}             

{{* Block only visitors with the IP address 1.3.3.7 *}}
{{ipaccess blacklist="1.3.3.7"}} 

{{* Allow visitors with the IP address 10.20.30.X, behalve 10.20.30.120 *}} 
{{ipaccess whitelist="10.20.30.0/24" blacklist="10.20.30.120"}}