blob: 99bb5c91a284d3db7c4ecdadea0b4f2adf736cc1 [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Rule file for the plugin urlfilter-fast
# Used to filter a large number of domain and host-specific regular
# expressions
#
# `Domain` rules are applied to all hosts and subdomains of a domain, e.g.
#
# Domain example.org
# DenyPath (?i)%7c # matches against just the path part of URL
# DenyPathQuery ^/resource\?x=1 # matches against path + query
#
#
# To match against a single hostname:
#
# Host www.example.com
# DenyPath (?i)%7c
#
#
# Global rules are defined using the domain name `.`:
#
# Domain .
# (/[^/]+)/[^/]+\1/[^/]+\1/
# # skips URLs with slash-delimited segment that repeats 3+ times, to break loops
#
#
# Comments start with the `#` character and reach until the end of the line.
#
#
# For more details, see
# - src/plugin/urlfilter-fast/README.md
# - src/plugin/urlfilter-fast/src/java/org/apache/nutch/urlfilter/fast/FastURLFilter.java
#