[% SET CPANEL.CPVAR.dprefix = "../" %] [% IF FORM.itemsperpage %] [% SET CPANEL.CPVAR.itemsperpage = FORM.itemsperpage %] [% END %] [% IF (! FORM.itemsperpage || ! CPANEL.CPVAR.itemsperpage) %] [% SET CPANEL.CPVAR.itemsperpage = "10" %] [% END %] [% Api2.pre_exec("DenyIp", "listdenyips"); SET deny_ip_list = Api2.exec("DenyIp" , "listdenyips" , {"api2_paginate_size" =>CPANEL.CPVAR.itemsperpage.html(), "api2_paginate" =>"1" , "api2_paginate_start" =>RAW_FORM("api2_paginate_start" )}); Api2.post_exec("DenyIp", "listdenyips"); %] [% js_code = PROCESS js_block %] [% WRAPPER '_assets/master.html.tt' app_key = 'ip_blocker' page_js = js_code -%]

[% locale.maketext("This feature will allow you to block a range of IP addresses to prevent them from accessing your site. You can also enter a fully qualified domain name, and the IP Deny Manager will attempt to resolve it to an IP address for you.") %]

[% locale.maketext("Add an IP or Range") %]

[% locale.maketext("[output,strong,Note]: You can specify denied IP addresses in the following formats:") %]

[% locale.maketext("Single IP Address") %]
192.168.0.1
2001:db8::1
[% locale.maketext("Range") %]
192.168.0.1-192.168.0.40
2001:db8::1-2001:db8::3
[% locale.maketext("Implied Range") %]
192.168.0.1-40
[% locale.maketext("CIDR Format") %]
192.168.0.1/32
2001:db8::/32
[% locale.maketext("Implies [asis,192.*.*.*]") %]
192.

[% locale.maketext("Currently-Blocked IP Addresses:") %]

[% IF deny_ip_list .size %] [% FOREACH ip_info IN deny_ip_list %] [% END %] [% ELSE %] [% END %]
[% locale.maketext("Server Setting") %] [% locale.maketext("Beginning IP") %] [% locale.maketext("Ending IP") %] [% locale.maketext("Actions") %]
[% ip_info.ip.html() %] [% ip_info.start.html() %] [% ip_info.end.html() %] [% locale.maketext('Delete') %]
[% locale.maketext("No IPs are being blocked.") %]
[% INCLUDE '_assets/paginate.html.tt' %]
[% END #wrapper %] [% BLOCK js_block %] [% END %]