[pmwiki-users] URL Approvals white list

Patrick R. Michaud pmichaud at pobox.com
Wed Feb 23 11:58:12 CST 2005


On Thu, Feb 24, 2005 at 06:16:07AM +1300, Simon wrote:
>    >From http://www.pmwiki.org/wiki/PmWiki/UrlApprovals
> 
>    You will then approve URLs while adding them to a "white list" defined in
>    the variable $WhiteUrlPatterns which is set in the local/config.php file.
>    To add multiples URLs, use the separator | .
> 
>    Question:
>    If I add "http://.nz|http://.au" will that allow any links from either of
>    those two countries?

Nope.  Try the following instead:

    include_once('scripts/urlapprove.php');
    $WhiteUrlPatterns[] = 'http://[^/]+\\.nz';
    $WhiteUrlPatterns[] = 'http://[^/]+\\.au';

Pm



More information about the pmwiki-users mailing list