You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ip_blocking.admin.inc
+200-2Lines changed: 200 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -88,8 +88,6 @@ function ip_blocking_form($form, &$form_state, $default_ip) {
88
88
'#description' => t('Enter a valid IP address.'),
89
89
'#prefix' => '<p>' . t('The IP addresses listed below are blocked from this site. Blocked addresses will be completely denied access to the site and will instead see a short message explaining the situation or a 404 error page (of your choice using the "Settings" tab above).') .
90
90
'<br>' . t('From the "Operations" column you can unblock any IP and check its status in AbuseIPDB (opens in a new tab).') . '</p>',
91
-
92
-
93
91
);
94
92
$form['reason'] = array(
95
93
'#title' => t('Reason for blocking (optional)'),
@@ -332,3 +330,203 @@ function ip_blocking_orphaned_table_form_submit($form, &$form_state) {
'#description' => t('Enter a CIDR (e.g. 1.2.3.0/24 or 2001:db8::/32)')
418
+
. '<br>'
419
+
. t('or an explicit range (e.g. 1.2.3.4-1.2.3.9).'),
420
+
'#prefix' => '<p>' . t('The IP ranges listed below are blocked from this site. Blocked IP ranges will be completely denied access to the site and will instead see a short message explaining the situation or a 404 error page (of your choice using the "Settings" tab above).') .
421
+
'<br>' . t('From the "Operations" column you can unblock any IP range and check its status in AbuseIPDB (opens in a new tab).') . '</p>',
422
+
);
423
+
424
+
$form['reason'] = array(
425
+
'#title' => t('Reason for blocking (optional)'),
426
+
'#type' => 'textfield',
427
+
'#size' => 52,
428
+
'#maxlength' => 255,
429
+
'#default_value' => '',
430
+
'#description' => t('Short description of the reason for blocking this IP range, e.g: "DDoS subnet".'),
0 commit comments