ban.banning_ips.html.twig

Same filename in other branches
  1. 9 core/modules/help_topics/help_topics/ban.banning_ips.html.twig
  2. 8.9.x core/modules/help_topics/help_topics/ban.banning_ips.html.twig
  3. 10 core/modules/ban/help_topics/ban.banning_ips.html.twig
---
label: 'Banning IP addresses'
related:
  - user.overview
---
{% set ban_link_text %}{% trans %}IP address bans{% endtrans %}{% endset %}
{% set ban_link = render_var(help_route_link(ban_link_text, 'ban.admin_page')) %}
<h2>{% trans %}Goal{% endtrans %}</h2>
<p>{% trans %}Ban visitors from one or more IP addresses from accessing and viewing your site.{% endtrans %}</p>
<h2>{% trans %}Steps{% endtrans %}</h2>
<ol>
  <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>Configuration</em> &gt; <em>People</em> &gt; <em>{{ ban_link }}</em>{% endtrans %}</li>
  <li>{% trans %}Enter an <em>IP address</em> and click <em>Add</em>.{% endtrans %}</li>
  <li>{% trans %}You should see the IP address you entered listed under <em>Banned IP addresses</em>. Repeat the above steps to ban additional IP addresses.{% endtrans %}</li>
</ol>

File

core/modules/ban/help_topics/ban.banning_ips.html.twig

View source
  1. ---
  2. label: 'Banning IP addresses'
  3. related:
  4. - user.overview
  5. ---
  6. {% set ban_link_text %}{% trans %}IP address bans{% endtrans %}{% endset %}
  7. {% set ban_link = render_var(help_route_link(ban_link_text, 'ban.admin_page')) %}
  8. <h2>{% trans %}Goal{% endtrans %}</h2>
  9. <p>{% trans %}Ban visitors from one or more IP addresses from accessing and viewing your site.{% endtrans %}</p>
  10. <h2>{% trans %}Steps{% endtrans %}</h2>
  11. <ol>
  12. <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>Configuration</em> &gt; <em>People</em> &gt; <em>{{ ban_link }}</em>{% endtrans %}</li>
  13. <li>{% trans %}Enter an <em>IP address</em> and click <em>Add</em>.{% endtrans %}</li>
  14. <li>{% trans %}You should see the IP address you entered listed under <em>Banned IP addresses</em>. Repeat the above steps to ban additional IP addresses.{% endtrans %}</li>
  15. </ol>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.