The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cphulk and apf

Discussion in 'General Discussion' started by denisdekat09, May 11, 2009.

  1. denisdekat09

    denisdekat09 Well-Known Member

    Joined:
    Mar 2, 2002
    Messages:
    265
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Francisco
    Hello,

    I want to try something I am not good at - scripting :)

    I was thinking that I would like to try to pipe the cphulk emails, and grab the IP, then add it to a text file so that APF can use it across all my servers.

    What I first realized is that the script needs to do is look for the string:

    Large number of attempts from this IP:

    And grab the IP right after it. Then appending it to a text part is easy for me.

    I understand how to pipe, but I am curious if anyone can give me a tip or pointer as to how to grab the string and just the IP part. I will in the meantime be reading up on php :)

    Thanks for any ideas!

    :confused::eek::confused::eek::mad::):p
     
  2. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page