Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-12-31 08:35:00

ax
Plugin Author
From: Germany
Registered: 2009-08-19
Posts: 165

ax_ipcheck

Purpose

This mini plugin 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. Probably, this could also be achieved with one or other swiss-army-knife type of multipurpose plugins, but for me this is an easier solution.

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>

Note

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

Happy new year everybody!

Last edited by ax (2020-12-31 08:45:11)

Offline

#2 2020-12-31 09:21:11

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: ax_ipcheck

This sounds that it could be very useful. I have changed your forum group to te Plugin Authors and moved this thread to plugin support.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB