{% extends 'safety/rules/rule.html' %} {% block toolbar_rule_adult %}class="active"{%endblock%} {% block rule_desc %}{%endblock%} {% block rule_content %} {% if form.non_field_errors %}
{% for error in form.non_field_errors %} {{ error|escape }} {% endfor %}
{% endif %}
Notice: obscene adult content is always blocked according to Internet Watch Foundation black list. For more information see https://www.iwf.org.uk
{% csrf_token %}
{% if form.phrases_maximum_weight.errors %} {{form.phrases_maximum_weight.errors|striptags}} {% else %} Sets maximum weight of the inspected text. Any text with exceeding weight is considered to be explicit and blocked. The weight of a text is calculated as sum of weights of all scanned words. Default value is 40. Set it to lower value to block more and higher to block less. Database of prohibited phrases is stored at /opt/websafety/var/spool/adult/weighted.conf (you need to edit it manually if required). {%endif%}
{% if form.phrases_maximum_size.errors %} {{form.phrases_maximum_size.errors|striptags}} {% else %} Sets maximum size of text to be inspected (in bytes). Scanning text larger than 2MB requires very powerful CPU and should be avoided on any weaker hardware. Typical size of a Google search results page is approximately 1MB, of YouTube search results page 1.3MB. Default value is 2097152 bytes (2MB). {%endif%}
{% if form.heuristics_maximum_weight.errors %} {{form.heuristics_maximum_weight.errors|striptags}} {% else %} Sets maximum weight of the words in URL and Referer URL. Any request with exceeding weight is considered to be explicit and blocked. The weight of URL is calculated as sum of weights of all scanned URL parts. Default value is 40. Set it to lower value to block more and higher to block less. Database of prohibited words in URL is stored at /opt/websafety/var/spool/adult/heuristics.conf (you need to edit it manually if required). {%endif%}
{% endblock %}