Startpage >> PmWiki >> Blocklist

Blocklist

PmWiki.Blocklist History

Hide minor edits - Show changes to output

August 31, 2011, at 11:00 AM by Blahma - restarigis post atako de spamisto
Changed lines 1-162 from:
http://www.annssunnyday.com/ valtrex >:O http://www.elderfritz.com/ how to get prescription accutane =-PP http://www.treintadetreinta.org/propecia.html buy propecia 5mg wmzpz http://www.ffashop-longboard.com/tramadol.html buy href tramadol jifndu http://www.sabelojimpa.com/levitra.html cheapest online cost for levitra =OO
to:
(:Summary:Blocking IP addresses, phrases, and expressions to counteract spam and vandalism.:)
(:Audience: administrators (basic) :)

The block list is one of a number of [[security]] measures that can be taken to protect your wiki from unwelcome postings.

Unfortunately, the open-editability of many wiki systems often makes them attractive targets for "link spam" or "wikispam", in which links are added to pages in an effort to increase search engine rankings or drive traffic to other sites. Also, many link spammers have developed automated systems to locate sites that accept visitor input and attempt to flood the site with unwanted links.
Also, and harder to deal with, is just plain [[PmWiki/Security#wikivandalism|wiki vandalism]] where nonsense changes are made, often replacing entire pages.

By far the best countermeasure against wikispam is to restrict editing through the use of passwords (see [[Passwords]] and [[Passwords Admin]]). Experience has shown that passwords can be effective even if the password is widely known, and even if the password is publicly available on the site itself. However, there are many cases where passwording may be an impediment, so these will generally want to use some form of blocklist.

!! Blocklist basics

A ''blocklist'' is a list of IP addresses, phrases, and expressions which are prevented from being added into pages on the website. PmWiki is distributed with a built-in blocklisting capability; blocklists can be enabled by adding the following line to ''local/config.php'':

-> $EnableBlocklist = 1;

This tells PmWiki to scan the [[SiteAdmin.Blocklist]] page and the "SiteAdmin.Blocklist-Farm" page (and possibly other pages -- see below) looking for phrases and IP addresses to be excluded from posting to the site.

!!! Blocking by word or phrase
The simplest form of block is simply a line containing "[@block:@]" followed by a word or phrase to be excluded from postings. For example, a line like

-> [@block:spam.com @]

in SiteAdmin.Blocklist will block any posts containing the string "spam.com" (case-insensitive) anywhere in the post.

[[#blockbyipaddress]]
!!! Blocking by IP address
Sometimes we wish to restrict posts coming from particular addresses or address ranges that are known as sources of wikispam. If a blocklist page contains IP addresses of the form "a.b.c.d" or "a.b.c.*", then any posts coming from that address or range will be blocked.

-> %note% To find an author's IP address, try hovering the mouse over the author name in the [[page history]] for a page.

!!! Blocking by regular expression or pattern
Blocking on simple words can sometimes pose difficulties; for example, a simple "[@block:cial@]" entry will also block the word "specialist". For these cases it's often helpful to use a regular expression, as in:

->[@block:/\bcial\b/@]

This says to block "cial" only if it doesn't occur in the middle of a larger word. The leading slash (/) after "block:" tells PmWiki to use a regular expression match instead of a simple string match. (Blocklist uses PCRE or "Perl Compatible Regular Expressions"; see http://php.net/manual/en/ref.pcre.php for more information.)

!!!! Regular expression to block 'href'

If you want to block '@@href@@', you can use the following markup:
-> [@block:/[^\w\\]href\b/@]
which blocks '@@href@@', but neither '@@\href@@' nor '@@toughref@@'.

The regular expression can be interpreted as follows: Match any character that is '''neither''' a word character
'''nor''' a '\', followed by @@href@@ which ends in a word boundary.

!! Letting authors know why they've been blocked

By default, blocklist only tells an author that a particular edit has been blocked, but doesn't give a specific reason for the blocking (e.g., the offending phrase). Setting the following in a local customization file will also provide the reasons for the block:

-> $EnableWhyBlocked = 1;


!! Managing multiple blocklists

PmWiki allows blocklist entries to come from multiple pages by setting the $BlocklistPages variable. By default $BlocklistPages is set to "SiteAdmin.Blocklist", as well as any automatically downloaded blocklists as described below. PmWiki will use all entries in all the blocklists for filtering wikispam. Setting a value of $BlocklistPages changes the default:

-> $BlocklistPages = array('Main.Blocklist', '{$Group}.Blocklist');

The order of blocklists really doesn't matter -- all of the blocklist
pages ultimately get used, and the [@unblock:@] entries are processed
after all of the blocklist pages have been loaded.

[[#automaticblocklists]]
!! Automatically downloaded blocklists

Maintaining blocklists is relatively easy to do, but can become tedious over time. Several groups have formed and maintain "shared blocklists", where a common blocklist is made available to all. PmWiki's blocklist capability has built-in features for automatically downloading and updating such shared blocklists.

If you're just in a hurry to make use of some standard blocklists, make the following setting in ''local/config.php'':

-> $EnableBlocklist = 10;

This tells PmWiki to not only enable blocklists on the site, but to also configure itself to automatically retrieve and maintain local copies of well-known blocklists such as [[(http://)chongqed.org]] and [[http://moinmaster.wikiwikiweb.de/|MoinMaster]]. These local copies will be saved in SiteAdmin.Blocklist-Chongqed and SiteAdmin.Blocklist-MoinMaster and refreshed once per day (as determined by the value of $BlocklistDownloadRefresh).

To automatically retrieve the [[SiteAdmin.Blocklist]] page used at pmwiki.org, add the following setting in ''local/config.php'':

-> [@ $BlocklistDownload["$SiteAdminGroup.Blocklist-PmWiki"] = array('format' => 'pmwiki'); @]

!! Ignoring specific entries in a blocklist (unblock)

When using a large master blocklist or blocklists automatically refreshed from external sites, it may be that some entries in the blocklists are inappropriate or overeager and block legitimate content. In this case a wikiadministrator can use "unblock" in a blocklist page to ignore an entry from the blocklist. For example, to allow "spam.com" even if another blocklist has a block entry for it:

-> unblock:spam.com

In order for unblocking to work the phrase or pattern following "unblock:" must be ''exactly'' the same as the original.

!! Permissions on blocklist pages

In general, an [[(wiki )administrator]] will want to edit-protect the SiteAdmin.Blocklist and any other blocklist pages to prevent arbitrary changes to the blocklist (see [[Passwords]]). Since most pages in the SiteAdmin.* group are edit-protected by default anyway, this usually isn't a problem.

Administrators may also wish to read-protect the various blocklist pages so that others do not know the exact phrases and/or IP addresses that are being blocked. (By their nature blocklists tend to contain phrases or terms that may be offensive or inappropriate to some.)

Any pages created via automatic download (see above) are automatically locked against viewing except by administrators.

%audience% administrators (intermediate)
!! Detailed configuration of automatically downloaded blocklists

Automatic downloading of blocklist information is controlled by the $BlocklistDownload array. An entry for MoinMaster might look like:

-> $BlocklistDownload["$SiteAdminGroup.Blocklist-MoinMaster"] = array(
--> 'url' => 'http://moinmaster.wikiwikiweb.de/BadContent?action=raw',
--> 'format' => 'regex',
--> 'refresh' => 86400);

This says to download the blocklist data from the given url into the SiteAdmin.Blocklist-MoinMaster page, that the entries in the blocklist are regular expressions, and to refresh the information every 86,400 seconds (one day).

If 'refresh' is omitted, then the page will be refreshed at the time interval given by $BlocklistDownloadRefresh (default one day). If 'format' is omitted, the page is assumed to have PmWiki-formatted entries as described above. If 'url' is omitted, then the blocklist information is downloaded from a standard location on the pmwiki.org site.

To force a refresh of an automatically downloaded blocklist, simply delete the existing page -- a new version will be installed upon the next blocklist scan. Blocklist pages are checked for download in response to any ?action=edit request.

If you are specifying your Blocklist-Pages in the config.php you have to specify the automatically updated pages too, else they won't be updated or created even if you use $EnableBlocklist = 10; .

!! Farm-wide blocklist

A blocklist can be applied farm-wide (see [[(Cookbook:)SharedPages]]).
After these pages are created they can be moved into the farm ''shared.d/'' directory:

!! [[#variables]] Blocklist Variables

The following variables help control the configuration and operation of blocklists:

:$EnableBlocklist:If set to a non-zero value, then blocklists are enabled on the site. If set to a value of ten or higher, then add entries for automatic downloads of standard blocklists.
: : $EnableBlocklist = 1; # enable blocklists
: : $EnableBlocklist = 10; # auto-configure standard blocklists

:$EnableWhyBlocked:By default, authors are not told which particular phrases or IP addresses are causing a particular post to be blocked; setting $EnableWhyBlocked to 1 provides this information.
: : $EnableWhyBlocked = 1; # give reasons for blocking

:$BlocklistPages:An array of pages to be checked for blocklist entries. The elements of the array may contain [[page variables]]. Defaults to "Site.Blocklist", plus any other automatically downloaded blocklist pages.

:$BlocklistMessageFmt:The message to provide the author whenever a post has been blocked.

:$BlockedMessagesFmt:If $EnableWhyBlocked is set, defines the text to use for each type of block being performed. Currently only 'ip' and 'text' are recognized.
: : BlockedMessagesFmt['ip'] = "$[IP address blocked from posting]: ";
: : $BlockedMessagesFmt['text'] = "$[Text blocked from posting]: ";

:$BlocklistDownload:An array of automatically-downloaded blocklists. The keys of the array are the pages in which the blocklists should be stored, the values contain the url, format, and refresh interval for the downloaded blocklist.
->[@ # Download the MoinMaster blocklist every twelve hours
$BlocklistDownload["$SiteAdminGroup.Blocklist-MoinMaster"] = array(
'url' => 'http://moinmaster.wikiwikiweb.de/BadContent?action=raw',
'format' => 'regex',
'refresh' => 43200);
# Download a shared blocklist from pmwiki.org every day
$BlocklistDownload["$SiteAdminGroup.Blocklist-Shared"] = array(
'format' => 'pmwiki');
@]

:$BlocklistDownloadRefresh:The default refresh interval for any $BlocklistDownload entries that don't explicitly specify a 'refresh' value.
: : # perform automatic downloads once per week by default
: : $BlocklistDownloadRefresh = 86400 * 7;

:$BlocklistDownloadFmt:The format to use when saving automatically downloaded blocklists.


:$EnableBlocklistImmediate:Some cookbook recipes update pages with author input but don't use the built-in data posting routines. If $EnableBlocklistImmediate is set (default) and the current action is listed in $BlocklistActions (below), then an immediate blocklist scan is performed on the incoming text.

:$BlocklistActions:A list of actions for which immediate blocklist checks should be performed (see $EnableBlocklistImmediate above).
: : # perform immediate checks for ?action=comment
: : $BlocklistActions['comment'] = 1;
: : # perform immediate checks for ?action=postdata
: : $BlocklistActions['postdata'] = 1;
February 06, 2011, at 05:05 AM by chickenflame - OwkBhnymbgIVyDNU
Changed line 1 from:
http://www.fotopnt.com/accutane.html accutane buy =]] http://www.imrightyourwrong.com/ ultram 113 http://www.samcontracts.com/ tramadol 8-(( http://www.giancarivi.com/ discounted nexium pill wthxoi http://www.disfrutaquito.com/tramadol.html buy domain tramadol byqhlq
to:
http://www.annssunnyday.com/ valtrex >:O http://www.elderfritz.com/ how to get prescription accutane =-PP http://www.treintadetreinta.org/propecia.html buy propecia 5mg wmzpz http://www.ffashop-longboard.com/tramadol.html buy href tramadol jifndu http://www.sabelojimpa.com/levitra.html cheapest online cost for levitra =OO
February 04, 2011, at 06:37 AM by kaIkariver - BBlMvOqWipJEzgsWNtc
Changed line 1 from:
http://www.centralparkposse.com/Nexium.htm nexium online pharmacy renova stimula 17932 http://www.dasolindas.com/ambien.html ambien without prescription cialis 258
to:
http://www.fotopnt.com/accutane.html accutane buy =]] http://www.imrightyourwrong.com/ ultram 113 http://www.samcontracts.com/ tramadol 8-(( http://www.giancarivi.com/ discounted nexium pill wthxoi http://www.disfrutaquito.com/tramadol.html buy domain tramadol byqhlq
February 01, 2011, at 11:19 AM by theNeologism - GRHZDXPmaTFJPRikVdC
Changed line 1 from:
http://www.truthhappiness.com/levitra.html levitra kvua http://www.canaveraldistrict.org/nexium.html nexium ivhqzn http://www.canaveraldistrict.org/propecia.html propecia bpmtnm http://www.2humanity.org/Nexium.html nexium 742266
to:
http://www.centralparkposse.com/Nexium.htm nexium online pharmacy renova stimula 17932 http://www.dasolindas.com/ambien.html ambien without prescription cialis 258
January 29, 2011, at 11:25 PM by netllcn - nDfXNjwxCbx
Changed line 1 from:
http://www.theinsurgentcampaign.com/avapro.html avapro cheap fllqhc http://www.johnfritchey.com/ultracet.html buying ultracet 52956 http://www.theinsurgentcampaign.com/ventolin.html ventolin wemm
to:
http://www.truthhappiness.com/levitra.html levitra kvua http://www.canaveraldistrict.org/nexium.html nexium ivhqzn http://www.canaveraldistrict.org/propecia.html propecia bpmtnm http://www.2humanity.org/Nexium.html nexium 742266
January 28, 2011, at 06:16 PM by gabeedeos - nglRccRuUcVIscOiZYn
Changed line 1 from:
http://www.pcc2000.com/propecia.php propecia yax http://www.pcc2000.com/meridia.php meridia drug >:))
to:
http://www.theinsurgentcampaign.com/avapro.html avapro cheap fllqhc http://www.johnfritchey.com/ultracet.html buying ultracet 52956 http://www.theinsurgentcampaign.com/ventolin.html ventolin wemm
January 27, 2011, at 06:00 AM by amjenger - hCaepnSQFlhZsLpm
Changed line 1 from:
http://www.puntodenfoque.com/flurazepam.html buy flurazepam online 422 http://www.faisonsle.com/tramadol tramadol 718
to:
http://www.pcc2000.com/propecia.php propecia yax http://www.pcc2000.com/meridia.php meridia drug >:))
January 26, 2011, at 07:31 AM by tefalalie - baJAUZPQXNOdNYwd
Changed line 1 from:
http://www.2humanity.org/ propecia 8)) http://www.citiaction.org/ lunesta 8-]]] http://www.2humanity.org/Nexium.html discounted nexium pill 9179
to:
http://www.puntodenfoque.com/flurazepam.html buy flurazepam online 422 http://www.faisonsle.com/tramadol tramadol 718
January 25, 2011, at 11:29 AM by pushthepop - ViGbppQlrOsrpmWj
Changed line 1 from:
http://www.xingbing66.com/ nexium verses prilosec 8)) http://www.2humanity.org/ propecia 7186 http://www.81yiyu.com/ prednisone online %PP http://www.citiaction.org/ buy online lunesta 411576
to:
http://www.2humanity.org/ propecia 8)) http://www.citiaction.org/ lunesta 8-]]] http://www.2humanity.org/Nexium.html discounted nexium pill 9179
January 23, 2011, at 08:10 PM by FOeverrSHOrty - xuPlXLfax
Changed line 1 from:
http://www.cafebabelseattle.com/acyclovir.htm acyclovir overnight shipping =-[ http://www.cafebabelseattle.com/abilify.htm abilify %DDD http://www.cafebabelseattle.com/baclofen.htm buy generic baclofen 4827 http://www.theinsurgentcampaign.com/famciclovir.html famciclovir =)))
to:
http://www.xingbing66.com/ nexium verses prilosec 8)) http://www.2humanity.org/ propecia 7186 http://www.81yiyu.com/ prednisone online %PP http://www.citiaction.org/ buy online lunesta 411576
January 23, 2011, at 06:35 PM by sbseed - olunayYFXCxLUCgt
Changed line 1 from:
http://www.pcc2000.com/ambien.php ambien :P http://www.obsessedwithbroadway.com/ buy meridia =-)
to:
http://www.cafebabelseattle.com/acyclovir.htm acyclovir overnight shipping =-[ http://www.cafebabelseattle.com/abilify.htm abilify %DDD http://www.cafebabelseattle.com/baclofen.htm buy generic baclofen 4827 http://www.theinsurgentcampaign.com/famciclovir.html famciclovir =)))
January 21, 2011, at 03:53 AM by bekyzinha - NJbapsfnvVnFcNBafGq
Changed line 1 from:
http://www.citiaction.org/ lunesta 786842 http://www.marsyslaw.org/acomplia.html acomplia amp phentermine diet pills 53952
to:
http://www.pcc2000.com/ambien.php ambien :P http://www.obsessedwithbroadway.com/ buy meridia =-)
January 20, 2011, at 05:14 PM by SockandRock - MxWRWOsBFmJdjzmdBT
Changed line 1 from:
http://www.cafebabelseattle.com/oxazepam.htm order oxazepam on line =-] http://www.johnfritchey.com/atarax.html where to buy atarax 6299 http://www.theinsurgentcampaign.com/tegretol.html tegretol bfm
to:
http://www.citiaction.org/ lunesta 786842 http://www.marsyslaw.org/acomplia.html acomplia amp phentermine diet pills 53952
January 18, 2011, at 07:53 PM by DoomsdayHand - jjLwcdjRIrnGCBf
Changed line 1 from:
http://www.neoselvazoologicalconservancy.com/ultram.html ultram rjefx http://www.truthhappiness.com/levitra.html levitra 191 http://www.81yiyu.com/ prednisone 585494
to:
http://www.cafebabelseattle.com/oxazepam.htm order oxazepam on line =-] http://www.johnfritchey.com/atarax.html where to buy atarax 6299 http://www.theinsurgentcampaign.com/tegretol.html tegretol bfm
January 17, 2011, at 05:03 PM by prathdarkwyrm - BRoXXCdVaMBQ
Changed line 1 from:
http://www.pcc2000.com/valium.php valium lyn http://www.dasolindas.com/ambien.html buy ambien :P
to:
http://www.neoselvazoologicalconservancy.com/ultram.html ultram rjefx http://www.truthhappiness.com/levitra.html levitra 191 http://www.81yiyu.com/ prednisone 585494
January 17, 2011, at 06:21 AM by kirbzzzz - yOiopEwGSLq
Changed line 1 from:
http://www.neoselvazoologicalconservancy.com/tramadol.html buy tramadol without priscription jtms http://www.rmspnaturecenter.org/accutane.html accutane buy >:-]]] http://www.canaveraldistrict.org/propecia.html propecia tczt
to:
http://www.pcc2000.com/valium.php valium lyn http://www.dasolindas.com/ambien.html buy ambien :P
January 15, 2011, at 09:06 PM by Nerobi - aHqWJWJjBzbJDlBi
Changed line 1 from:
http://www.canaveraldistrict.org/nexium.html buy nexium international pharmacy vnes http://www.81yiyu.com/ prednisone gtulh http://www.marsyslaw.org/acomplia.html acomplia znkfw
to:
http://www.neoselvazoologicalconservancy.com/tramadol.html buy tramadol without priscription jtms http://www.rmspnaturecenter.org/accutane.html accutane buy >:-]]] http://www.canaveraldistrict.org/propecia.html propecia tczt
January 13, 2011, at 07:29 PM by louisekthnx - xoadxQZsI
Changed line 1 from:
http://www.puntodenfoque.com/kamagra.html kamagra :-PPP http://www.calciofossacesia.com/xanax.html xanax on line %-) http://www.christinelegrandphotography.com/ tramadol :-DD
to:
http://www.canaveraldistrict.org/nexium.html buy nexium international pharmacy vnes http://www.81yiyu.com/ prednisone gtulh http://www.marsyslaw.org/acomplia.html acomplia znkfw
January 12, 2011, at 07:21 AM by SoakTheSins - MgEejtEJ
Changed line 1 from:
http://www.panzavidela.com/ online prescription for acomplia 538 http://www.obsessedwithbroadway.com/ meridia buy i drugs >:D http://www.gerryggriffin.com/propecia propecia 22143
to:
http://www.puntodenfoque.com/kamagra.html kamagra :-PPP http://www.calciofossacesia.com/xanax.html xanax on line %-) http://www.christinelegrandphotography.com/ tramadol :-DD
January 11, 2011, at 04:24 AM by NateNYC - FXXKRonMWMnEHZcm
Changed line 1 from:
http://www.cafebabelseattle.com/buspirone.htm buspirone >:[[ http://www.theinsurgentcampaign.com/orlistat.html cheapest orlistat 463 http://www.theinsurgentcampaign.com/neurontin.html neurontin 561343 http://www.johnfritchey.com/terbinafine.html on line terbinafine %-[
to:
http://www.panzavidela.com/ online prescription for acomplia 538 http://www.obsessedwithbroadway.com/ meridia buy i drugs >:D http://www.gerryggriffin.com/propecia propecia 22143
January 08, 2011, at 08:52 PM by CountingCoz - RpnuoNMmYbsrB
Changed line 1 from:
http://www.adventuregamingstl.org/tramadol.aspx tramadol 213123 http://www.librolacarta.com/cialis.html cheap generic cialis 67011
to:
http://www.cafebabelseattle.com/buspirone.htm buspirone >:[[ http://www.theinsurgentcampaign.com/orlistat.html cheapest orlistat 463 http://www.theinsurgentcampaign.com/neurontin.html neurontin 561343 http://www.johnfritchey.com/terbinafine.html on line terbinafine %-[
January 08, 2011, at 06:29 AM by heuilleman - unuGUlkYrAXjI
Changed line 1 from:
http://www.panzavidela.com/ acomplia 01951 http://www.reclaiminglife.com/ buy dreampharm from tramadol 2727 http://www.adventuregamingstl.org/xanax.aspx discount xanax 8PP http://www.hermanamarthapereyrairaola.org/ acomplia medication =-PP
to:
http://www.adventuregamingstl.org/tramadol.aspx tramadol 213123 http://www.librolacarta.com/cialis.html cheap generic cialis 67011
January 05, 2011, at 06:14 AM by cossaloops - UtjOHVwqwScQp
Changed line 1 from:
http://www.calciofossacesia.com/ valium online starlight 462 http://www.christinelegrandphotography.com/ultram.html ultram >:]]] http://www.puntodenfoque.com/priligy.html ordering priligy =] http://www.christinelegrandphotography.com/ tramadol 200 pills online =DD
to:
http://www.panzavidela.com/ acomplia 01951 http://www.reclaiminglife.com/ buy dreampharm from tramadol 2727 http://www.adventuregamingstl.org/xanax.aspx discount xanax 8PP http://www.hermanamarthapereyrairaola.org/ acomplia medication =-PP
January 04, 2011, at 09:05 AM by lumputwo - SmRcGWhWRYwMACQZ
Changed line 1 from:
http://www.theinsurgentcampaign.com/metoclopramide.html metoclopramide ofofvh http://www.johnfritchey.com/metoprolol.html metoprolol bcajhq http://www.cafebabelseattle.com/furosemide.htm furosemide nousp
to:
http://www.calciofossacesia.com/ valium online starlight 462 http://www.christinelegrandphotography.com/ultram.html ultram >:]]] http://www.puntodenfoque.com/priligy.html ordering priligy =] http://www.christinelegrandphotography.com/ tramadol 200 pills online =DD
January 03, 2011, at 09:28 PM by leventgokkaya - dTgqaNHUy
Changed line 1 from:
http://www.centroshambala.net/ accutane cuutp http://www.resistancenorge.org/ dreampharmaceuticalscom online order propecia 8296 http://www.calciofossacesia.com/ valium =(( http://www.calciofossacesia.com/xanax.html xanax kpparc
to:
http://www.theinsurgentcampaign.com/metoclopramide.html metoclopramide ofofvh http://www.johnfritchey.com/metoprolol.html metoprolol bcajhq http://www.cafebabelseattle.com/furosemide.htm furosemide nousp
December 31, 2010, at 09:14 AM by wecndo - ReWhuETfhfKA
Changed line 1 from:
http://www.calciofossacesia.com/ valium online iwpmx http://www.faisonsle.com/kamagra buy online kamagra >:[ http://www.calciofossacesia.com/xanax.html xanax generic alprazolam pner http://www.christinelegrandphotography.com/ buy deine nachricht site tramadol 492
to:
http://www.centroshambala.net/ accutane cuutp http://www.resistancenorge.org/ dreampharmaceuticalscom online order propecia 8296 http://www.calciofossacesia.com/ valium =(( http://www.calciofossacesia.com/xanax.html xanax kpparc
December 29, 2010, at 10:18 AM by swtmnty - zWWcujxVfHwIGIyB
Changed line 1 from:
http://www.enfoquesunad.com/ levitra and grapefruit juice 56257 http://www.standrewsvillageblog.com/lexotan.html lexotan =] http://www.hermanamarthapereyrairaola.org/ acomplia =(( http://www.gerryggriffin.com/xanax xanax 1495
to:
http://www.calciofossacesia.com/ valium online iwpmx http://www.faisonsle.com/kamagra buy online kamagra >:[ http://www.calciofossacesia.com/xanax.html xanax generic alprazolam pner http://www.christinelegrandphotography.com/ buy deine nachricht site tramadol 492
December 20, 2010, at 08:26 AM by swimmingklutz - yqocbrWXmlxlK
Changed line 1 from:
U16FeA <a href="http://rcvxqnlmvway.com/">rcvxqnlmvway</a>, [url=http://vtvkhhzucfom.com/]vtvkhhzucfom[/url], [link=http://ungmolkzogvy.com/]ungmolkzogvy[/link], http://yygiupfuxuvw.com/
to:
http://www.enfoquesunad.com/ levitra and grapefruit juice 56257 http://www.standrewsvillageblog.com/lexotan.html lexotan =] http://www.hermanamarthapereyrairaola.org/ acomplia =(( http://www.gerryggriffin.com/xanax xanax 1495
December 15, 2010, at 06:45 PM by youbao - 604800
Changed lines 1-162 from:
(:Summary:Blocking IP addresses, phrases, and expressions to counteract spam and vandalism.:)
(:Audience: administrators (basic) :)

The block list is one of a number of [[security]] measures that can be taken to protect your wiki from unwelcome postings.

Unfortunately, the open-editability of many wiki systems often makes them attractive targets for "link spam" or "wikispam", in which links are added to pages in an effort to increase search engine rankings or drive traffic to other sites. Also, many link spammers have developed automated systems to locate sites that accept visitor input and attempt to flood the site with unwanted links.
Also, and harder to deal with, is just plain [[PmWiki/Security#wikivandalism|wiki vandalism]] where nonsense changes are made, often replacing entire pages.

By far the best countermeasure against wikispam is to restrict editing through the use of passwords (see [[Passwords]] and [[Passwords Admin]]). Experience has shown that passwords can be effective even if the password is widely known, and even if the password is publicly available on the site itself. However, there are many cases where passwording may be an impediment, so these will generally want to use some form of blocklist.

!! Blocklist basics

A ''blocklist'' is a list of IP addresses, phrases, and expressions which are prevented from being added into pages on the website. PmWiki is distributed with a built-in blocklisting capability; blocklists can be enabled by adding the following line to ''local/config.php'':

-> $EnableBlocklist = 1;

This tells PmWiki to scan the [[SiteAdmin.Blocklist]] page and the "SiteAdmin.Blocklist-Farm" page (and possibly other pages -- see below) looking for phrases and IP addresses to be excluded from posting to the site.

!!! Blocking by word or phrase
The simplest form of block is simply a line containing "[@block:@]" followed by a word or phrase to be excluded from postings. For example, a line like

-> [@block:spam.com @]

in SiteAdmin.Blocklist will block any posts containing the string "spam.com" (case-insensitive) anywhere in the post.

[[#blockbyipaddress]]
!!! Blocking by IP address
Sometimes we wish to restrict posts coming from particular addresses or address ranges that are known as sources of wikispam. If a blocklist page contains IP addresses of the form "a.b.c.d" or "a.b.c.*", then any posts coming from that address or range will be blocked.

-> %note% To find an author's IP address, try hovering the mouse over the author name in the [[page history]] for a page.

!!! Blocking by regular expression or pattern
Blocking on simple words can sometimes pose difficulties; for example, a simple "[@block:cial@]" entry will also block the word "specialist". For these cases it's often helpful to use a regular expression, as in:

->[@block:/\bcial\b/@]

This says to block "cial" only if it doesn't occur in the middle of a larger word. The leading slash (/) after "block:" tells PmWiki to use a regular expression match instead of a simple string match. (Blocklist uses PCRE or "Perl Compatible Regular Expressions"; see http://php.net/manual/en/ref.pcre.php for more information.)

!!!! Regular expression to block 'href'

If you want to block '@@href@@', you can use the following markup:
-> [@block:/[^\w\\]href\b/@]
which blocks '@@href@@', but neither '@@\href@@' nor '@@toughref@@'.

The regular expression can be interpreted as follows: Match any character that is '''neither''' a word character
'''nor''' a '\', followed by @@href@@ which ends in a word boundary.

!! Letting authors know why they've been blocked

By default, blocklist only tells an author that a particular edit has been blocked, but doesn't give a specific reason for the blocking (e.g., the offending phrase). Setting the following in a local customization file will also provide the reasons for the block:

-> $EnableWhyBlocked = 1;


!! Managing multiple blocklists

PmWiki allows blocklist entries to come from multiple pages by setting the $BlocklistPages variable. By default $BlocklistPages is set to "SiteAdmin.Blocklist", as well as any automatically downloaded blocklists as described below. PmWiki will use all entries in all the blocklists for filtering wikispam. Setting a value of $BlocklistPages changes the default:

-> $BlocklistPages = array('Main.Blocklist', '{$Group}.Blocklist');

The order of blocklists really doesn't matter -- all of the blocklist
pages ultimately get used, and the [@unblock:@] entries are processed
after all of the blocklist pages have been loaded.

[[#automaticblocklists]]
!! Automatically downloaded blocklists

Maintaining blocklists is relatively easy to do, but can become tedious over time. Several groups have formed and maintain "shared blocklists", where a common blocklist is made available to all. PmWiki's blocklist capability has built-in features for automatically downloading and updating such shared blocklists.

If you're just in a hurry to make use of some standard blocklists, make the following setting in ''local/config.php'':

-> $EnableBlocklist = 10;

This tells PmWiki to not only enable blocklists on the site, but to also configure itself to automatically retrieve and maintain local copies of well-known blocklists such as [[(http://)chongqed.org]] and [[http://moinmaster.wikiwikiweb.de/|MoinMaster]]. These local copies will be saved in SiteAdmin.Blocklist-Chongqed and SiteAdmin.Blocklist-MoinMaster and refreshed once per day (as determined by the value of $BlocklistDownloadRefresh).

To automatically retrieve the [[SiteAdmin.Blocklist]] page used at pmwiki.org, add the following setting in ''local/config.php'':

-> [@ $BlocklistDownload["$SiteAdminGroup.Blocklist-PmWiki"] = array('format' => 'pmwiki'); @]

!! Ignoring specific entries in a blocklist (unblock)

When using a large master blocklist or blocklists automatically refreshed from external sites, it may be that some entries in the blocklists are inappropriate or overeager and block legitimate content. In this case a wikiadministrator can use "unblock" in a blocklist page to ignore an entry from the blocklist. For example, to allow "spam.com" even if another blocklist has a block entry for it:

-> unblock:spam.com

In order for unblocking to work the phrase or pattern following "unblock:" must be ''exactly'' the same as the original.

!! Permissions on blocklist pages

In general, an [[(wiki )administrator]] will want to edit-protect the SiteAdmin.Blocklist and any other blocklist pages to prevent arbitrary changes to the blocklist (see [[Passwords]]). Since most pages in the SiteAdmin.* group are edit-protected by default anyway, this usually isn't a problem.

Administrators may also wish to read-protect the various blocklist pages so that others do not know the exact phrases and/or IP addresses that are being blocked. (By their nature blocklists tend to contain phrases or terms that may be offensive or inappropriate to some.)

Any pages created via automatic download (see above) are automatically locked against viewing except by administrators.

%audience% administrators (intermediate)
!! Detailed configuration of automatically downloaded blocklists

Automatic downloading of blocklist information is controlled by the $BlocklistDownload array. An entry for MoinMaster might look like:

-> $BlocklistDownload["$SiteAdminGroup.Blocklist-MoinMaster"] = array(
--> 'url' => 'http://moinmaster.wikiwikiweb.de/BadContent?action=raw',
--> 'format' => 'regex',
--> 'refresh' => 86400);

This says to download the blocklist data from the given url into the SiteAdmin.Blocklist-MoinMaster page, that the entries in the blocklist are regular expressions, and to refresh the information every 86,400 seconds (one day).

If 'refresh' is omitted, then the page will be refreshed at the time interval given by $BlocklistDownloadRefresh (default one day). If 'format' is omitted, the page is assumed to have PmWiki-formatted entries as described above. If 'url' is omitted, then the blocklist information is downloaded from a standard location on the pmwiki.org site.

To force a refresh of an automatically downloaded blocklist, simply delete the existing page -- a new version will be installed upon the next blocklist scan. Blocklist pages are checked for download in response to any ?action=edit request.

If you are specifying your Blocklist-Pages in the config.php you have to specify the automatically updated pages too, else they won't be updated or created even if you use $EnableBlocklist = 10; .

!! Farm-wide blocklist

A blocklist can be applied farm-wide (see [[(Cookbook:)SharedPages]]).
After these pages are created they can be moved into the farm ''shared.d/'' directory:

!! [[#variables]] Blocklist Variables

The following variables help control the configuration and operation of blocklists:

:$EnableBlocklist:If set to a non-zero value, then blocklists are enabled on the site. If set to a value of ten or higher, then add entries for automatic downloads of standard blocklists.
: : $EnableBlocklist = 1; # enable blocklists
: : $EnableBlocklist = 10; # auto-configure standard blocklists

:$EnableWhyBlocked:By default, authors are not told which particular phrases or IP addresses are causing a particular post to be blocked; setting $EnableWhyBlocked to 1 provides this information.
: : $EnableWhyBlocked = 1; # give reasons for blocking

:$BlocklistPages:An array of pages to be checked for blocklist entries. The elements of the array may contain [[page variables]]. Defaults to "Site.Blocklist", plus any other automatically downloaded blocklist pages.

:$BlocklistMessageFmt:The message to provide the author whenever a post has been blocked.

:$BlockedMessagesFmt:If $EnableWhyBlocked is set, defines the text to use for each type of block being performed. Currently only 'ip' and 'text' are recognized.
: : BlockedMessagesFmt['ip'] = "$[IP address blocked from posting]: ";
: : $BlockedMessagesFmt['text'] = "$[Text blocked from posting]: ";

:$BlocklistDownload:An array of automatically-downloaded blocklists. The keys of the array are the pages in which the blocklists should be stored, the values contain the url, format, and refresh interval for the downloaded blocklist.
->[@ # Download the MoinMaster blocklist every twelve hours
$BlocklistDownload["$SiteAdminGroup.Blocklist-MoinMaster"] = array(
'url' => 'http://moinmaster.wikiwikiweb.de/BadContent?action=raw',
'format' => 'regex',
'refresh' => 43200);
# Download a shared blocklist from pmwiki.org every day
$BlocklistDownload["$SiteAdminGroup.Blocklist-Shared"] = array(
'format' => 'pmwiki');
@]

:$BlocklistDownloadRefresh:The default refresh interval for any $BlocklistDownload entries that don't explicitly specify a 'refresh' value.
: : # perform automatic downloads once per week by default
: : $BlocklistDownloadRefresh = 86400 * 7;

:$BlocklistDownloadFmt:The format to use when saving automatically downloaded blocklists.


:$EnableBlocklistImmediate:Some cookbook recipes update pages with author input but don't use the built-in data posting routines. If $EnableBlocklistImmediate is set (default) and the current action is listed in $BlocklistActions (below), then an immediate blocklist scan is performed on the incoming text.

:$BlocklistActions:A list of actions for which immediate blocklist checks should be performed (see $EnableBlocklistImmediate above).
: : # perform immediate checks for ?action=comment
: : $BlocklistActions['comment'] = 1;
: : # perform immediate checks for ?action=postdata
: : $BlocklistActions['postdata'] = 1;
to:
U16FeA <a href="http://rcvxqnlmvway.com/">rcvxqnlmvway</a>, [url=http://vtvkhhzucfom.com/]vtvkhhzucfom[/url], [link=http://ungmolkzogvy.com/]ungmolkzogvy[/link], http://yygiupfuxuvw.com/
Lasta ŝanĝo August 31, 2011, at 11:00 AM