Allow

Name

Allow --  allows to index the documents with the given URL pattern

indexer.conf

Synopsis

Allow [Match | NoMatch] [Case | NoCase] [String | Regex] {pattern...}

Description

Use this command to allow indexing of the documents with URL matching the given pattern.

The first three optional parameters describe comparison style. The default values are Match, Case, String (case insensitive string pattern match with ? and * wildcards meaning one character and any number of characters correspondingly).

Use Case or NoCase values to choose between case insensitive or case sensitive comparison styles respectively.

Use Regex to choose regular expression comparison.

Use String to choose string with wildcards comparison.

Note: The characters ? and * have special meanings in the String match type. Use the Regex comparison style to describe URL patterns containing these characters.

String match is faster than Regex. Use String when it is possible.

You can use multiple arguments in the same Allow command.

Note that mnoGoSearch automatically adds an

Allow regex .*
command after reading the configuration file. It means it allows everything that is not disallowed.

Scope

Allow takes global effect for the entire configuration file and can be used multiple times.

Note: You can use this command in any part of indexer.conf. However, keep in mind that all Allow, Disallow, CheckOnly, Skip commands are checked in order of their appearance in indexer.conf. So the mutual order of these commands is important.

Examples


# Allow everything:
Allow *

# Allow everything but .php .cgi .pl extensions case insensitively using regex:
Allow NoMatch Regex \.php$|\.cgi$|\.pl$

# Allow .HTM extension case sensitively:
Allow Case *.HTM
      

See also

CheckMP3, CheckMP3Only, CheckOnly, Disallow, IndexIf, HrefOnly, Skip, SkipIf, UseSitemap.