Command Execute after block

Post Reply
zstergios
Junior Member
Posts: 4
Joined: 04 Apr 2018, 10:10

Command Execute after block

Post by zstergios »

I am looking for a field to add a command like cphulk
https://documentation.cpanel.net/displa ... Protection

Is there any existing functionallity? Or can be added?

I need to post remote ip/country/reason/time etc to able to track and build my own blocklist
zstergios
Junior Member
Posts: 4
Joined: 04 Apr 2018, 10:10

Re: Command Execute after block

Post by zstergios »

I found it BLOCK_REPORT
zstergios
Junior Member
Posts: 4
Joined: 04 Apr 2018, 10:10

Re: Command Execute after block

Post by zstergios »

Does not work...
Can you help me please?

I tried the following value
/usr/local/bin/php /root/csf_block.php
/root/csf_block.php *

*file starts with http://prntscr.com/nx5uz0

permissions chmod +x /root/csf_block.php (755)


I have tested with command line as root and works,
Seems CSF does not trigger the file.

Also i searched in logs no mention found for "csf_block.php"
Post Reply