Not logging pingbacks
-
I’m trying to log pingbacks so I can fail2ban the IPs. The pingbacks are not getting logged.
With “define(‘WP_FAIL2BAN_LOG_PINGBACKS’,true);” and “define(‘WP_FAIL2BAN_PINGBACK_LOG’,LOG_LOCAL3);” nothing gets written to Local3 (which is active, I have tested the facility with a simple dummy test:
<?php
openlog(“test”,LOG_NDELAY,LOG_LOCAL3);
syslog(LOG_NOTICE,”Hey”);
closelog();
).I am getting about 10,000 pingbacks per day, but NONE of them trigger this plugin’s logging.
Catching the POST xml data shows me the following:
93.174.93.234<?xmlversion=”1.0″?>
<methodCall>
<methodName>pingback.ping</methodName>
<params>
<param>
<value>
<string>https://www.reportyor.com/?cat=hadise&id=11208</string>
</value>
</param>
<param>
<value>
<string>https://blog.simonandkate.net/20140415/beautiful-new-zealand</string>
</value>
</param>
</params>
</methodCall>It appears to be a valid pingback. Yes I can disable pingback, but I’d rather log them and fail2ban them. I could also just catch xmlrpc.php calls and ban them, but I use xmlrpc…
Can this plugin log the pingbacks?
- The topic ‘Not logging pingbacks’ is closed to new replies.