Skip to content

Commit

Permalink
Protect: Add formatting help text to IP list controls (#39448)
Browse files Browse the repository at this point in the history
  • Loading branch information
nateweller authored Sep 21, 2024
1 parent 836a715 commit 20eab85
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Firewall: added help text for IP list formatting rules
24 changes: 17 additions & 7 deletions projects/plugins/protect/src/js/routes/firewall/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,14 @@ const FirewallPage = () => {
onChange={ handleChange }
disabled={ ! canEditFirewallSettings || ! ipBlockListEnabled }
/>
{ ipBlockListEnabled && (
<Text variant="body-extra-small" mt={ 1 }>
{ __(
'IPv4 and IPv6 supported. Separate IPs with commas, spaces, or new lines. To specify a range, use CIDR notation (i.e. 12.12.12.0/24) or enter the low value and high value separated by a dash (i.e. 12.12.12.0–12.12.12.255).',
'jetpack-protect'
) }
</Text>
) }
</div>
) }
{ ipBlockListEnabled && (
Expand Down Expand Up @@ -502,7 +510,7 @@ const FirewallPage = () => {
</Text>
<Text mb={ 1 }>
{ __(
'IP addresses added to this list are always allowed by Jetpack.',
'IP addresses added to this list are always allowed to access your site, regardless of any other Jetpack security settings.',
'jetpack-protect'
) }
</Text>
Expand All @@ -516,12 +524,14 @@ const FirewallPage = () => {
onChange={ handleChange }
disabled={ ! canEditIpAllowList }
/>
<Text variant="body-extra-small" mt={ 1 }>
{ __(
"Add IP addresses here to ensure they always have access to your site, regardless of Jetpack's security features.",
'jetpack-protect'
) }
</Text>
{ jetpackWafIpAllowListEnabled && (
<Text variant="body-extra-small" mt={ 1 }>
{ __(
'IPv4 and IPv6 supported. Separate IPs with commas, spaces, or new lines. To specify a range, use CIDR notation (i.e. 12.12.12.0/24) or enter the low value and high value separated by a dash (i.e. 12.12.12.0–12.12.12.255).',
'jetpack-protect'
) }
</Text>
) }
</div>
) }
{ jetpackWafIpAllowListEnabled && (
Expand Down

0 comments on commit 20eab85

Please sign in to comment.