01.12.2012 Views

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Blacklist plugin<br />

Banlist<br />

228<br />

��<br />

��<br />

��<br />

Tip: One possibility with which to send all users (whe<strong>the</strong>r registered<br />

or not) general information are so-called broadcasts. These are messages<br />

that can be seen on every TWiki page via <strong>the</strong> toolbar. You can<br />

define its content in TWikiPreferences by making an entry to <strong>the</strong><br />

variable BROADCASTMESSAGE. In <strong>the</strong> following lines, you will see<br />

two examples that you can simply copy and adapt accordingly. The<br />

second method is only possible when <strong>the</strong> Pattern skin is used.<br />

Broadcasts are especially useful if you wish to inform users about<br />

large-scale maintenance work or changes to <strong>the</strong> TWiki.<br />

15.6<br />

Spam in TWiki<br />

The general problem of spam in wikis has already been described in<br />

Chapter 8.4. In TWiki, as in MediaWiki, <strong>the</strong>re are two means of<br />

counteracting <strong>the</strong> spam threat: <strong>the</strong> nofollow attribute in Links and a<br />

blacklist for IP addresses. Both can be achieved with <strong>the</strong> Blacklist<br />

plugin. 2 Once this extension has been installed, you can perform all<br />

relevant settings on <strong>the</strong> page TWiki/BlackListPlugin. There, you will<br />

find <strong>the</strong> entry BLACKLIST. It contains a list of IP addresses, separated<br />

by commas, which are prohibited from performing actions in<br />

TWiki. It is even possible to indicate entire address realms by simply<br />

leaving off <strong>the</strong> last number of <strong>the</strong> IP address. If an IP is blocked, inquiries<br />

coming from it will be delayed for one minute, and <strong>the</strong>n an<br />

error message is issued. The message is defined in <strong>the</strong> variable<br />

BLACKLISTMESSAGE.<br />

In contrast to <strong>the</strong> blacklist, <strong>the</strong> BANLIST is dynamic and reacts<br />

automatically. Principally, it is based on a point system. Per action in<br />

TWiki, an IP address receives a certain number of points. If, within a<br />

stipulated amount of time, a certain number of points is collected,<br />

one can assume that <strong>the</strong> respective computer is manipulating data. In<br />

such a case, <strong>the</strong> IP address is automatically blocked. Incorrect classifications<br />

in machine-controlled blocks can occur. Thus, you can find<br />

a form via <strong>the</strong> BANLIST with which IP addresses can be removed<br />

from <strong>the</strong> list again.<br />

Note: Due to a programming error, <strong>the</strong> BANLIST does not work until<br />

you have manually added an IP address and <strong>the</strong>n deleted it again.<br />

The parameters for automatic blocking can be found in <strong>the</strong> variable<br />

BANLISTCONFIG. The numbers indicate in order how many points<br />

are allocated for registration, <strong>the</strong> save/upload procedure, displaying a<br />

2 See Chapter 8.4 regarding <strong>the</strong> installation of plugins.<br />

15 Administering TWiki

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!