Skip to main content

How to export all failed IPs from cpHulk into txt/csv?

Comments

2 comments

  • cPRex Jurassic Moderator
    Hey there! This is something you should bring up to the CSF team at Technical Support as we don't create the plugin or interface on our end. You can access the deny list at /etc/csf/csf.deny as that gives the IP address, service that blocked it, reason, country of origin, and time - using that flat file might be easier for your processing than the interface.
    0
  • phil99
    For exporting the list, have a look at the WHM API1 functions: /usr/sbin/whmapi1 get_cphulk_failed_logins | awk '$0 ~ /ip:/ {print $2}' > file.txt
    0

Please sign in to leave a comment.