/ax_ipcheck

Check for IP ranges of allowed clients

Primary LanguagePHPMIT LicenseMIT

ax_ipcheck

This lets you show parts of a page only to visitors with an allowed IP range of the client. Tested with Textpattern v4.7.2 and v4.8.4.

DOWNLOAD

Tags

<txp:ax_ipcheck fromip="..." toip="...">

Example

<txp:ax_ipcheck fromip="192.168.0.0" toip="192.168.255.255">
    IP address is ok
<txp:else />
    IP address is not ok
</txp:ax_ipcheck>

Notes

If more than one IP range is required, the PHP code must be changed.

Version history

0.1 – December 2020
first release.