Šis apraksts nav mainīts vairāk kā gadu.Iespējams, ka tas ir novecojis!

XWiki registration

If any user is allowed to register in XWiki, it can be (and is) abused by spambots. This recipe shows, how to avoid it using Apache proxy server, assuming that most of spambots don't execute JavaScript.
  1. Add following lines to the .htaccess (or /sites-available/default|ssl) file:

    ## XWiki Registration
    RewriteRule ^/xwiki/bin/register/XWiki/Register$ http://localhost:8080/xwiki/bin/view/Custom/Register [[P,L]]
    RewriteRule ^/xwiki/bin/register/XWiki/RegisterAAA$ http://localhost:8080/xwiki/bin/register/XWiki/Register [[P,L]]

    You need to open page in edit mode to avoid redirection, opening e.g. following link: http://localhost:8080/xwiki/bin/edit/Custom/Register

  2. Create intermediate XWiki document (e.g. /xwiki/bin/edit/Custom/Register in this case), which will redirect to proxied Registration page with following content:

    <script type="text/javascript">
    window.location = "/xwiki/bin/register/XWiki/RegisterAAA"
    {{warning}}To register JavaScript support in browser is required!{{/warning}}
  3. Reload Apache settings:

    /etc/init.d/apache2 reload


Tagi: XWiki English
Izveidojis Valdis Vītoliņš 2013-11-09 15:24
Pēdējais mainījis Valdis Vītoliņš 2013-11-09 15:35
Xwiki Powered
Creative Commons Attribution 3.0 Unported License