1010 </ div >
1111
1212 < div class ="l-separator "> </ div >
13- <!-- /.l-separator -->
1413
1514 < div class ="l-center animated fadeIn ">
1615 < ?php
101100 </ select >
102101 </ td >
103102 </ tr >
104-
105- </ table >
106- < table class ="data-col2 ">
107103 </ table >
104+ < table class ="data-col2 "> </ table >
108105 </ td >
109106 </ tr >
110107 </ table >
111108 </ form >
112-
113109 </ div >
114110
115111 < script >
116- var country_iplists = [
117- { name : "[ipv4] Country Romania" , source :"http://ipverse.net/ipblocks/data/countries/ro.zone" } ,
118- { name : "[ipv4] Country Germany" , source :"http://ipverse.net/ipblocks/data/countries/de.zone" } ,
119- { name : "[ipv4] Country Switzerland" , source :"http://ipverse.net/ipblocks/data/countries/ch.zone" } ,
120- { name : "[ipv4] Country France" , source :"http://ipverse.net/ipblocks/data/countries/fr.zone" } ,
121- { name : "[ipv4] Country Ukraine" , source :"http://ipverse.net/ipblocks/data/countries/ua.zone" } ,
122- { name : "[ipv4] Country Russia" , source :"http://ipverse.net/ipblocks/data/countries/ru.zone" } ,
123- { name : "[ipv4] Country Spain" , source :"http://ipverse.net/ipblocks/data/countries/es.zone" } ,
124- { name : "[ipv4] Country United Kingdom" , source :"http://ipverse.net/ipblocks/data/countries/gb.zone" } ,
125- { name : "[ipv4] Country United States" , source :"http://ipverse.net/ipblocks/data/countries/us.zone" } ,
126- { name : "[ipv4] Country China" , source :"http://ipverse.net/ipblocks/data/countries/cn.zone" } ,
127- { name : "[ipv4] Country India" , source :"http://ipverse.net/ipblocks/data/countries/in.zone" } ,
128- { name : "[ipv4] Country Canada" , source :"http://ipverse.net/ipblocks/data/countries/ca.zone" } ,
129- { name : "[ipv4] Country Netherlands" , source :"http://ipverse.net/ipblocks/data/countries/nl.zone" } ,
130- /*
131- {name: "[ipv6] Country Romania", source:"http://ipverse.net/ipblocks/data/countries/ro-ipv6.zone"},
132- {name: "[ipv6] Country Germany", source:"http://ipverse.net/ipblocks/data/countries/de-ipv6.zone"},
133- {name: "[ipv6] Country Switzerland", source:"http://ipverse.net/ipblocks/data/countries/ch-ipv6.zone"},
134- {name: "[ipv6] Country France", source:"http://ipverse.net/ipblocks/data/countries/fr-ipv6.zone"},
135- {name: "[ipv6] Country Ukraine", source:"http://ipverse.net/ipblocks/data/countries/ua-ipv6.zone"},
136- {name: "[ipv6] Country Russia", source:"http://ipverse.net/ipblocks/data/countries/ru-ipv6.zone"},
137- {name: "[ipv6] Country Spain", source:"http://ipverse.net/ipblocks/data/countries/es-ipv6.zone"},
138- {name: "[ipv6] Country United Kingdom", source:"http://ipverse.net/ipblocks/data/countries/gb-ipv6.zone"},
139- {name: "[ipv6] Country United States", source:"http://ipverse.net/ipblocks/data/countries/us-ipv6.zone"},
140- {name: "[ipv6] Country China", source:"http://ipverse.net/ipblocks/data/countries/cn-ipv6.zone"},
141- {name: "[ipv6] Country India", source:"http://ipverse.net/ipblocks/data/countries/in-ipv6.zone"},
142- {name: "[ipv6] Country Canada", source:"http://ipverse.net/ipblocks/data/countries/ca-ipv6.zone"},
143- {name: "[ipv6] Country Netherlands", source:"http://ipverse.net/ipblocks/data/countries/nl-ipv6.zone"},
144- */
145- ] ;
112+ var country_iplists = [
113+ // Define IPv4 country lists
114+ { name : "[IPv4] Country - Canada" , source :"http://ipverse.net/ipblocks/data/countries/ca.zone" } ,
115+ { name : "[IPv4] Country - China" , source :"http://ipverse.net/ipblocks/data/countries/cn.zone" } ,
116+ { name : "[IPv4] Country - France" , source :"http://ipverse.net/ipblocks/data/countries/fr.zone" } ,
117+ { name : "[IPv4] Country - Germany" , source :"http://ipverse.net/ipblocks/data/countries/de.zone" } ,
118+ { name : "[IPv4] Country - India" , source :"http://ipverse.net/ipblocks/data/countries/in.zone" } ,
119+ { name : "[IPv4] Country - Netherlands" , source :"http://ipverse.net/ipblocks/data/countries/nl.zone" } ,
120+ { name : "[IPv4] Country - Romania" , source :"http://ipverse.net/ipblocks/data/countries/ro.zone" } ,
121+ { name : "[IPv4] Country - Russia" , source :"http://ipverse.net/ipblocks/data/countries/ru.zone" } ,
122+ { name : "[IPv4] Country - Spain" , source :"http://ipverse.net/ipblocks/data/countries/es.zone" } ,
123+ { name : "[IPv4] Country - Switzerland" , source :"http://ipverse.net/ipblocks/data/countries/ch.zone" } ,
124+ { name : "[IPv4] Country - Ukraine" , source :"http://ipverse.net/ipblocks/data/countries/ua.zone" } ,
125+ { name : "[IPv4] Country - United Kingdom" , source :"http://ipverse.net/ipblocks/data/countries/gb.zone" } ,
126+ { name : "[IPv4] Country - United States" , source :"http://ipverse.net/ipblocks/data/countries/us.zone" } ,
146127
147- var blacklist_iplists = [
148- { name : "[ipv4] Blacklist Script" , source :"script:/usr/local/hestia/install/deb/firewall/ipset/blacklist.sh" } ,
149- /*
150- {name: "[ipv6] Blacklist Script", source:"script:/usr/local/hestia/install/deb/firewall/ipset/blacklist.ipv6.sh"},
151- */
152- ] ;
128+ // Define IPv6 country lists
129+ /*
130+ {name: "[IPv6] Country - China", source:"http://ipverse.net/ipblocks/data/countries/cn-ipv6.zone"},
131+ {name: "[IPv6] Country - Canada", source:"http://ipverse.net/ipblocks/data/countries/ca-ipv6.zone"},
132+ {name: "[IPv6] Country - France", source:"http://ipverse.net/ipblocks/data/countries/fr-ipv6.zone"},
133+ {name: "[IPv6] Country - Germany", source:"http://ipverse.net/ipblocks/data/countries/de-ipv6.zone"},
134+ {name: "[IPv6] Country - India", source:"http://ipverse.net/ipblocks/data/countries/in-ipv6.zone"},
135+ {name: "[IPv6] Country - Netherlands", source:"http://ipverse.net/ipblocks/data/countries/nl-ipv6.zone"},
136+ {name: "[IPv6] Country - Romania", source:"http://ipverse.net/ipblocks/data/countries/ro-ipv6.zone"},
137+ {name: "[IPv6] Country - Russia", source:"http://ipverse.net/ipblocks/data/countries/ru-ipv6.zone"},
138+ {name: "[IPv6] Country - Spain", source:"http://ipverse.net/ipblocks/data/countries/es-ipv6.zone"},
139+ {name: "[IPv6] Country - Switzerland", source:"http://ipverse.net/ipblocks/data/countries/ch-ipv6.zone"},
140+ {name: "[IPv6] Country - Ukraine", source:"http://ipverse.net/ipblocks/data/countries/ua-ipv6.zone"},
141+ {name: "[IPv6] Country - United Kingdom", source:"http://ipverse.net/ipblocks/data/countries/gb-ipv6.zone"},
142+ {name: "[IPv6] Country - United States", source:"http://ipverse.net/ipblocks/data/countries/us-ipv6.zone"},
143+ */
144+ ] ;
153145
154- country_iplists . sort ( function ( a , b ) {
155- return a . name > b . name ;
156- } ) ;
146+ var blacklist_iplists = [
147+ { name : "[IPv4] Block Malicious IPs" , source :"script:/usr/local/hestia/install/deb/firewall/ipset/blacklist.sh" } ,
148+ /*
149+ {name: "[IPv6] Block Malicious IPs", source:"script:/usr/local/hestia/install/deb/firewall/ipset/blacklist.ipv6.sh"},
150+ */
151+ ] ;
157152
158- blacklist_iplists . sort ( function ( a , b ) {
159- return a . name > b . name ;
160- } ) ;
153+ country_iplists . sort ( function ( a , b ) {
154+ return a . name > b . name ;
155+ } ) ;
161156
162- $ ( function ( ) {
163- var targetelement = document . getElementById ( 'datasource_list' ) ;
157+ blacklist_iplists . sort ( function ( a , b ) {
158+ return a . name > b . name ;
159+ } ) ;
164160
165- // Blacklist
166- var newEl = document . createElement ( "option" ) ;
167- newEl . text = "<?php print __('BLACKLIST') ?>" ;
168- newEl . disabled = true ;
169- targetelement . appendChild ( newEl ) ;
161+ $ ( function ( ) {
162+ var targetelement = document . getElementById ( 'datasource_list' ) ;
170163
171- blacklist_iplists . forEach ( iplist => {
164+ // Blacklist
172165 var newEl = document . createElement ( "option" ) ;
173- newEl . text = iplist . name ;
174- newEl . value = iplist . source ;
166+ newEl . text = "<?php print __('BLACKLIST') ?>" ;
167+ newEl . disabled = true ;
175168 targetelement . appendChild ( newEl ) ;
176- } ) ;
177169
178- // IPVERSE
179- var newEl = document . createElement ( "option" ) ;
180- newEl . text = "<?php print __('IPVERSE') ?>" ;
181- newEl . disabled = true ;
182- targetelement . appendChild ( newEl ) ;
170+ blacklist_iplists . forEach ( iplist => {
171+ var newEl = document . createElement ( "option" ) ;
172+ newEl . text = iplist . name ;
173+ newEl . value = iplist . source ;
174+ targetelement . appendChild ( newEl ) ;
175+ } ) ;
183176
184- country_iplists . forEach ( iplist => {
177+ // IPVERSE
185178 var newEl = document . createElement ( "option" ) ;
186- newEl . text = iplist . name ;
187- newEl . value = iplist . source ;
179+ newEl . text = "<?php print __('IPVERSE') ?>" ;
180+ newEl . disabled = true ;
188181 targetelement . appendChild ( newEl ) ;
182+
183+ country_iplists . forEach ( iplist => {
184+ var newEl = document . createElement ( "option" ) ;
185+ newEl . text = iplist . name ;
186+ newEl . value = iplist . source ;
187+ targetelement . appendChild ( newEl ) ;
188+ } ) ;
189189 } ) ;
190- } ) ;
191190 </ script >
0 commit comments