<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Allow</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="mnoGoSearch 3.3.8 reference manual" HREF="index.html"><LINK REL="UP" TITLE="mnoGoSearch command reference" HREF="msearch-cmdref.html"><LINK REL="PREVIOUS" TITLE="AliasProg" HREF="msearch-cmdref-aliasprog.html"><LINK REL="NEXT" TITLE="AlwaysFoundWord" HREF="msearch-cmdref-alwaysfoundword.html"><LINK REL="STYLESHEET" TYPE="text/css" HREF="mnogo.css"><META NAME="Description" CONTENT="mnoGoSearch - Full Featured Web site Open Source Search Engine Software over the Internet and Intranet Web Sites Based on SQL Database. It is a Free search software covered by GNU license."><META NAME="Keywords" CONTENT="shareware, freeware, download, internet, unix, utilities, search engine, text retrieval, knowledge retrieval, text search, information retrieval, database search, mining, intranet, webserver, index, spider, filesearch, meta, free, open source, full-text, udmsearch, website, find, opensource, search, searching, software, udmsearch, engine, indexing, system, web, ftp, http, cgi, php, SQL, MySQL, database, php3, FreeBSD, Linux, Unix, mnoGoSearch, MacOS X, Mac OS X, Windows, 2000, NT, 95, 98, GNU, GPL, url, grabbing"></HEAD ><BODY CLASS="refentry" BGCOLOR="#EEEEEE" TEXT="#000000" LINK="#000080" VLINK="#800080" ALINK="#FF0000" ><!--#include virtual="body-before.html"--><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" ><SPAN CLASS="application" >mnoGoSearch</SPAN > 3.3.8 reference manual: Full-featured search engine software</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="msearch-cmdref-aliasprog.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="msearch-cmdref-alwaysfoundword.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="cmdref-allow" ></A >Allow</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN7112" ></A ><H2 >Name</H2 ><B CLASS="command" >Allow</B > -- allows to index the documents with the given <ACRONYM CLASS="acronym" >URL</ACRONYM > pattern <P ><B ></B ><TT CLASS="filename" >indexer.conf</TT ></P ></DIV ><DIV CLASS="refsynopsisdiv" ><A NAME="AEN7119" ></A ><H2 >Synopsis</H2 ><P ><B CLASS="command" >Allow</B > [Match | NoMatch] [Case | NoCase] [String | Regex] {pattern...}</P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN7132" ></A ><H2 >Description</H2 ><P >Use this command to allow indexing of the documents with <ACRONYM CLASS="acronym" >URL</ACRONYM > matching the given pattern. </P ><P > The first three optional parameters describe comparison style. The default values are <TT CLASS="literal" >Match</TT >, <TT CLASS="literal" >Case</TT >, <TT CLASS="literal" >String</TT > (case insensitive string pattern match with <TT CLASS="literal" >?</TT > and <TT CLASS="literal" >*</TT > wildcards meaning <SPAN CLASS="emphasis" ><I CLASS="emphasis" >one character</I ></SPAN > and <SPAN CLASS="emphasis" ><I CLASS="emphasis" >any number of characters</I ></SPAN > correspondingly). </P ><P >Use <TT CLASS="literal" >Case</TT > or <TT CLASS="literal" >NoCase</TT > values to choose between <SPAN CLASS="emphasis" ><I CLASS="emphasis" >case insensitive</I ></SPAN > or <SPAN CLASS="emphasis" ><I CLASS="emphasis" >case sensitive</I ></SPAN > comparison styles respectively. </P ><P >Use <TT CLASS="literal" >Regex</TT > to choose <SPAN CLASS="emphasis" ><I CLASS="emphasis" >regular expression</I ></SPAN > comparison. </P ><P >Use <TT CLASS="literal" >String</TT > to choose string with wildcards comparison. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note: </B > The characters <TT CLASS="literal" >?</TT > and <TT CLASS="literal" >*</TT > have special meanings in the <TT CLASS="literal" >String</TT > match type. Use the <TT CLASS="literal" >Regex</TT > comparison style to describe <ACRONYM CLASS="acronym" >URL</ACRONYM > patterns containing these characters. </P ></BLOCKQUOTE ></DIV ><P ><TT CLASS="literal" >String</TT > match is faster than <TT CLASS="literal" >Regex</TT >. Use <TT CLASS="literal" >String</TT > when it is possible. </P ><P > You can use multiple arguments in the same <B CLASS="command" >Allow</B > command. </P ><P >Note that <SPAN CLASS="application" >mnoGoSearch</SPAN > automatically adds an <PRE CLASS="programlisting" >Allow regex .*</PRE > command after reading the configuration file. It means it allows everything that is not disallowed. </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN7170" ></A ><H2 >Scope</H2 ><P > <B CLASS="command" >Allow</B > takes global effect for the entire configuration file and can be used multiple times. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Note: </B > You can use this command in any part of <TT CLASS="filename" >indexer.conf</TT >. However, keep in mind that all <B CLASS="command" ><A HREF="msearch-cmdref-allow.html" >Allow</A ></B >, <B CLASS="command" ><A HREF="msearch-cmdref-disallow.html" >Disallow</A ></B >, <B CLASS="command" ><A HREF="msearch-cmdref-checkonly.html" >CheckOnly</A ></B >, <B CLASS="command" ><A HREF="msearch-cmdref-skip.html" >Skip</A ></B > commands are checked in order of their appearance in <TT CLASS="filename" >indexer.conf</TT >. So the mutual order of these commands is important. </P ></BLOCKQUOTE ></DIV ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN7186" ></A ><H2 >Examples</H2 ><DIV CLASS="informalexample" ><P ></P ><A NAME="AEN7188" ></A ><PRE CLASS="programlisting" > # 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 </PRE ><P ></P ></DIV ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN7190" ></A ><H2 >See also</H2 ><P > <A HREF="msearch-cmdref-checkmp3.html" >CheckMP3</A >, <A HREF="msearch-cmdref-checkmp3only.html" >CheckMP3Only</A >, <A HREF="msearch-cmdref-checkonly.html" >CheckOnly</A >, <A HREF="msearch-cmdref-disallow.html" >Disallow</A >, <A HREF="msearch-cmdref-indexif.html" >IndexIf</A >, <A HREF="msearch-cmdref-hrefonly.html" >HrefOnly</A >, <A HREF="msearch-cmdref-skip.html" >Skip</A >, <A HREF="msearch-cmdref-skipif.html" >SkipIf</A >. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="msearch-cmdref-aliasprog.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="msearch-cmdref-alwaysfoundword.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >AliasProg</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="msearch-cmdref.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >AlwaysFoundWord</TD ></TR ></TABLE ></DIV ><!--#include virtual="body-after.html"--></BODY ></HTML >