Title: Authentication and xmlrpc log writer
Author: Federico Rota
Published: <strong>17 dezembro, 2015</strong>
Last modified: 18 novembro, 2016

---

Pesquisar plugins

![](https://ps.w.org/authentication-and-xmlrpc-log-writer/assets/banner-772x250.
png?rev=1326431)

Este plugin **não foi testado com os 3 lançamentos principais mais recentes do WordPress**.
Ele pode não ser mais mantido ou suportado e pode ter problemas de compatibilidade
quando usado com versões mais recentes do WordPress.

![](https://ps.w.org/authentication-and-xmlrpc-log-writer/assets/icon-128x128.png?
rev=1310731)

# Authentication and xmlrpc log writer

 Por [Federico Rota](https://profiles.wordpress.org/mrrotella/)

[Baixar](https://downloads.wordpress.org/plugin/authentication-and-xmlrpc-log-writer.1.2.2.zip)

 * [Detalhes](https://br.wordpress.org/plugins/authentication-and-xmlrpc-log-writer/#description)
 * [Avaliações](https://br.wordpress.org/plugins/authentication-and-xmlrpc-log-writer/#reviews)
 *  [Instalação](https://br.wordpress.org/plugins/authentication-and-xmlrpc-log-writer/#installation)
 * [Desenvolvimento](https://br.wordpress.org/plugins/authentication-and-xmlrpc-log-writer/#developers)

 [Suporte](https://wordpress.org/support/plugin/authentication-and-xmlrpc-log-writer/)

## Descrição

This plugin writes the log of failed access attempts (brute force attack) and invalids
pingbacks requests ( by xmlrpc.php ). Very useful to process data via fail2ban.

You can activate the log for each pingback request feature and stop the user enumeration
method (by redirecting to the home) with log. If activated it remove the wordpress
version number and meta generator in the head section of your site. If activated
it disable xmlrpc methods that require authentication, in order to avoid brute force
attack by xmlrpc. Use this feature if you don’t need these xmlrpc methods. If activated
can kill multiple requests in a single xmlrpc call returning a 401 code on xmlrpc
login error. This feature may be useful to prevent server overloading on brute force
attack by xmlrpc. You can also view your CUSTOM error log in the admin panel.

#### You can write error by

 1. SYSLOG
 2. APACHE ERROR_LOG
 3. CUSTOM a custom error log file (the used path need to be writable or APACHE ERROR
    LOG wil be used)

#### Log examples

 * SYSLOG
 *     ```
       Dec 17 14:21:02 webserver wordpress(`SERVER_HTTP_HOST`)[2588]: Authentication failure on [`WORDPRESS_SITE_NAME`] for `USED_LOGIN` from `111.222.333.444`
       Dec 17 14:21:02 webserver wordpress(`SERVER_HTTP_HOST`)[2588]: Pingback error `IXR_ERROR_CODE` generated on [`WORDPRESS_SITE_NAME`] from `111.222.333.444`
       Dec 17 14:21:02 webserver wordpress(`SERVER_HTTP_HOST`)[2588]: Pingback requested for `PINGBACK_URL` generated on [`WORDPRESS_SITE_NAME`] from `111.222.333.444`
       Dec 17 14:21:02 webserver wordpress(`SERVER_HTTP_HOST`)[2588]: User enumeration attempt generated on [`WORDPRESS_SITE_NAME`] from `111.222.333.444`
       ```
   
 * APACHE
 *     ```
       [Thu Dec 17 14:23:33.662339 2015] [:error] [pid 2580:tid 140001350244096] [client 111.222.333.444:52599] wordpress(`SERVER_HTTP_HOST`) Authentication failure on [`WORDPRESS_SITE_NAME`] for `USED_LOGIN` from `111.222.333.444`, referer: SITE_ADDRESS/wp-login.php
       [Thu Dec 17 14:23:33.662339 2015] [:error] [pid 2580:tid 140001350244096] [client 111.222.333.444:52599] wordpress(`SERVER_HTTP_HOST`) Pingback error `IXR_ERROR_CODE` generated on [`WORDPRESS_SITE_NAME`] from `111.222.333.444`, referer: SITE_ADDRESS/xmlrpc.php
       [Thu Dec 17 14:23:33.662339 2015] [:error] [pid 2580:tid 140001350244096] [client 111.222.333.444:52599] wordpress(`SERVER_HTTP_HOST`) Pingback requested for `PINGBACK_URL` generated on [`WORDPRESS_SITE_NAME`] from `111.222.333.444`, referer: SITE_ADDRESS/xmlrpc.php
       [Thu Dec 17 14:23:33.662339 2015] [:error] [pid 2580:tid 140001350244096] [client 111.222.333.444:52599] wordpress(`SERVER_HTTP_HOST`) User enumeration attempt generated on [`WORDPRESS_SITE_NAME`] from `111.222.333.444`
       ```
   
 * CUSTOM
 *     ```
       [Thu Dec 17 14:25:34.000000 2015] wordpress(`SERVER_HTTP_HOST`) Authentication failure on [`WORDPRESS_SITE_NAME`] for `USED_LOGIN` from `111.222.333.444`
       [Thu Dec 17 14:25:34.000000 2015] wordpress(`SERVER_HTTP_HOST`) Pingback error `IXR_ERROR_CODE` generated on [`WORDPRESS_SITE_NAME`] from `111.222.333.444`
       [Thu Dec 17 14:25:34.000000 2015] wordpress(`SERVER_HTTP_HOST`) Pingback requested for `PINGBACK_URL` generated on [`WORDPRESS_SITE_NAME`] from `111.222.333.444`
       [Thu Dec 17 14:25:34.000000 2015] wordpress(`SERVER_HTTP_HOST`) User enumeration attempt generated on [`WORDPRESS_SITE_NAME`] from `111.222.333.444`
       ```
   

#### fail2ban configuration

See the FAQ section

#### Log viewer

Log viewer is available only in CUSTOM mode. Note: the log path and the file must
exist.

#### Tradução

 * English (default) – always included
 * Italian – since 1.1.3 version

### Traduções

 * English – default, always included
 * Italiano – disponibile dalla versione 1.1.3

_Note:_ Feel free to translate this plugin in your language. This is very important
for all users worldwide. So please contribute your language to the plugin to make
it even more useful. For translating I recommend the [“Poedit Editor”](http://www.poedit.net/).

## Capturas de tela

[⌊Settings view.⌉⌊Settings view.⌉[

Settings view.

[⌊Custom log viewer.⌉⌊Custom log viewer.⌉[

Custom log viewer.

## Instalação

#### Requisitos mínimos

 * WordPress 3.5 or greater
 * PHP version 4 or greater

#### Instalação automática

Automatic installation is the easiest option as WordPress handles the file transfers
itself and you don’t need to leave your web browser. To do an automatic install 
of “authentication and xmlrpc log writer”, log in to your WordPress dashboard, navigate
to the Plugins menu and click Add New.

In the search field type “authentication and xmlrpc log writer” and click Search
Plugins. Once you’ve found our plugin you can view details about it such as the 
the point release, rating and description. Most importantly of course, you can install
it by simply clicking “Install Now”.

#### Instalação manual

 1. Upload `authentication-and-xmlrpc-log-writer.php` to the `/wp-content/plugins/`
    directory or install via zip
 2. Ative o plugin por meio do menu “Plugins” no WordPress

## Perguntas frequentes

  How can I configure the plugin?

You can defines the options in the AX Logwriter Settings page.

 * **Error Type**: define the error type
 * **Options:**
 *     ```
       SYSTEM -> write into SYSLOG;
       APACHE -> write into APCACHE ERROR LOG;
       CUSTOM -> write into log file defined into admin panel;
       ```
   
 * **CUSTOM Error Log Path**: error log file absolute path ( only in CUSTOM mode)
 *     ```
       e.g. /your/error/logs/path/
       ```
   
 * **CUSTOM Error Log Name**: error log file name ( only in CUSTOM mode )
 *     ```
       e.g. sites_auth_errors.log
       ```
   
 * **TIMEZONE**: time zone to use ( only if current_time() WP function not exists)
 *     ```
       e.g. Europe/Rome
       ```
   
 * **Log each pingback request**: enable the log of each pingback request
 * **Stop User Enumeration**: enable the log of user enumeration attempts. Make 
   also a redirect to the site home
 * **Remove WP version and generator tag**: remove the wordpress version number 
   and generator meta from the head section of your site
 * **Kill multiple xmlrpc request on xmlrpc login error**: kill multiple requests
   in a single xmlrpc call returning a 401 code on xmlrpc login error to prevent
   server overloading on brute force attack by xmlrpc.
 * **Disable xmlrpc authenticated methods**: disable all xmlrpc methods that require
   authentication in order to avoid brute force attack by xmlrpc. Use this feature
   if you don’t need these xmlrpc methods.

  How can I configure fail2ban to work with this log?

 1. Create new filter called **wp-auth-and-xmlrpc.conf** into **/filter.d** path of
    fail2ban
 2. Filter content:
 3.     ```
        [Definition]
        failregex = ^.*Authentication failure on .* from <HOST>.*$
                    ^.*Pingback error .* generated on .* from <HOST>.*$
        ignoreregex =
        ```
    
 4. Create new jail called **wp-auth-and-xmlrpc.conf** into **/jail.d** path of fail2ban
 5. Jail content:
 6.     ```
        [wp-auth-and-xmlrpc]
        enabled  = true
        logpath  = /storage/www/logs/sites_auth_errors.log
        maxretry = 5
        bantime  = 600
        findtime = 60
        filter   = wp-auth-and-xmlrpc
        action   = %(action_mwl)s
        ```
    
 7. **logpath must exists before activate the jail and need to be the same used for
    this plugin**
 8. Reload or restart `fail2ban`

## Avaliações

![](https://secure.gravatar.com/avatar/0d55ce78f936a04c77aedc480d59e27a3d078ca89a0f2a518e7e71abdc561865?
s=60&d=retro&r=g)

### 󠀁[Fantastic Plugn](https://wordpress.org/support/topic/fantastic-plugn/)󠁿

 [rouiksi](https://profiles.wordpress.org/rouiksi/) 3 setembro, 2016

This plugin is very usefull to elaborate login failure attemps and xmlrpc pingback
hacks by fail2ban.

 [ Leia a 1 avaliação ](https://wordpress.org/support/plugin/authentication-and-xmlrpc-log-writer/reviews/)

## Colaboradores e desenvolvedores

“Authentication and xmlrpc log writer” é um programa de código aberto. As seguintes
pessoas contribuíram para este plugin.

Colaboradores

 *   [ Federico Rota ](https://profiles.wordpress.org/mrrotella/)

[Traduzir o “Authentication and xmlrpc log writer” para seu idioma.](https://translate.wordpress.org/projects/wp-plugins/authentication-and-xmlrpc-log-writer)

### Interessado no desenvolvimento?

[Navegue pelo código](https://plugins.trac.wordpress.org/browser/authentication-and-xmlrpc-log-writer/),
consulte o [repositório SVN](https://plugins.svn.wordpress.org/authentication-and-xmlrpc-log-writer/)
ou assine o [registro de desenvolvimento](https://plugins.trac.wordpress.org/log/authentication-and-xmlrpc-log-writer/)
por [RSS](https://plugins.trac.wordpress.org/log/authentication-and-xmlrpc-log-writer/?limit=100&mode=stop_on_copy&format=rss).

## Registro de alterações

#### 1.2.2

 * Fixed error path error on no custom error type selection.

#### 1.2.1

 * Fixed the php fatal error on update.

#### 1.2

 * Fixed the path error if the path not exists on no custom mode.
 * Added more backend control on the log viewer page.

#### 1.1.7

 * Fixed php warning on xmlrpc login error.

#### 1.1.6

 * Added kill multiple xmlrpc request on xmlrpc login error feature.
 * Added disable xmlrpc authenticated methods feature.

#### 1.1.5

 * Added remove version number and generator meta feature.

#### 1.1.4

 * Added log each pingback feature.
 * Added log and stop user enumeration feature.
 * Fixed: Show errors on update options process.

#### 1.1.3

 * Fixed: Use of php functions to determinate timestamp with microseconds.
 * Added italian translation.

#### 1.1.2

 * Added log viewer for CUSTOM log mode.
 * Added plugin admin menu entry.

#### 1.1.1

 * fixed current time issue for old wp version.

#### 1.1.0

 * Added plugin config options page.

#### 1.0.1

 * Added fail2ban config instructions to readme.

#### 1.0.0

 * Release version.

## Meta

 *  Versão **1.2.2**
 *  Última atualização **10 anos atrás**
 *  Instalações ativas **60+**
 *  Versão do WordPress ** 3.5.1 ou superior **
 *  Testado até **4.7.38**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/authentication-and-xmlrpc-log-writer/)
 * Tags
 * [Brute Force](https://br.wordpress.org/plugins/tags/brute-force/)[fail2ban](https://br.wordpress.org/plugins/tags/fail2ban/)
   [security](https://br.wordpress.org/plugins/tags/security/)
 *  [Visualização avançada](https://br.wordpress.org/plugins/authentication-and-xmlrpc-log-writer/advanced/)

## Classificações

 5 de 5 estrelas.

 *  [  1 avaliação com 5 estrela     ](https://wordpress.org/support/plugin/authentication-and-xmlrpc-log-writer/reviews/?filter=5)
 *  [  0 avaliação com 4 estrela     ](https://wordpress.org/support/plugin/authentication-and-xmlrpc-log-writer/reviews/?filter=4)
 *  [  0 avaliação com 3 estrela     ](https://wordpress.org/support/plugin/authentication-and-xmlrpc-log-writer/reviews/?filter=3)
 *  [  0 avaliação com 2 estrela     ](https://wordpress.org/support/plugin/authentication-and-xmlrpc-log-writer/reviews/?filter=2)
 *  [  0 avaliação com 1 estrela     ](https://wordpress.org/support/plugin/authentication-and-xmlrpc-log-writer/reviews/?filter=1)

[Sua avaliação](https://wordpress.org/support/plugin/authentication-and-xmlrpc-log-writer/reviews/#new-post)

[Ver todas avaliações](https://wordpress.org/support/plugin/authentication-and-xmlrpc-log-writer/reviews/)

## Colaboradores

 *   [ Federico Rota ](https://profiles.wordpress.org/mrrotella/)

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/authentication-and-xmlrpc-log-writer/)

## Doar

Gostaria de contribuir para o desenvolvimento deste plugin?

 [ Doe para este plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8N6D7LHAUYNQA)