Hi,
You could use the .htninja script:
<?php
/*
+===========================================================================================+
| NinjaFirewall optional configuration file |
| |
| See: https://blog.nintechnet.com/ninjafirewall-wp-edition-the-htninja-configuration-file/ |
+===========================================================================================+
*/
if (isset( $_GET['action'] ) && $_GET['action'] == 'lostpassword' && ! empty( $_POST ) ) {
// Log the request:
file_put_contents(
'/some-folder/some-log.log',
"{$_SERVER['REMOTE_ADDR']}\n{$_SERVER['REQUEST_URI']}\n". print_r( $_POST, true )."\n\n",
FILE_APPEND
);
}
Replace ‘/some-folder/some-log.log’ with the path to the log you want to create.
Thank you very much again for your prompt reply.
Best,
Larry