{% extends "varnish-bans-manager/core/bans/layout.html" %} {% load i18n %} {% load url from future %} {% load vbm_base_helpers %} {% load vbm_widget_helpers %} {% load vbm_form_helpers %} {% block title %}{% trans 'Bans' %} > {% trans 'Advanced' %}{% endblock %} {% block sidebar_section %}advanced{% endblock %} {% block sidebar_content %}

{% trans 'Set and submit your ban' %}

{% form_cgroup form.regular_expression 'span8' %} {{ form.regular_expression.label_tag }}
{{ form.regular_expression|add_class:"span12" }}
{% form_ferrors form.regular_expression 'block' %} {% endform_cgroup %} {% form_cgroup form.target 'span4' %} {{ form.target.label_tag }}
{{ form.target|add_class:"span12" }}
{% form_ferrors form.target 'block' %} {% endform_cgroup %}

{% trans 'Regular expressions' %}

{% blocktrans with 'http://www.regular-expressions.info/reference.html' as regex %} A regular expression provides a concise and flexible means to match strings of text, such as particular characters, words, or patterns of characters. {% endblocktrans %}

{% blocktrans %} When using the advanced bans submission method, all documents in the selected target, whose URL matches the specified regular expression, are invalidated. Note that the host part of the URL is always ignored, so if the selected target handles several virtual hosts, all of them will be banned. {% endblocktrans %}

{% if perms.core.can_access_expert_ban_submission %}

{% capture expert %}{% url 'bans-expert' %}{% endcapture %} {% blocktrans %} Use the expert bans submission if you are looking for extra document filtering options. {% endblocktrans %}

{% endif %}
{% endblock %}