Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

How to kill a ip/connection from apache status?

Discussion in 'EasyApache' started by tui, Aug 25, 2014.

  1. tui

    tui Well-Known Member

    Jun 15, 2007
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello, I just noticed that some ip addressees where all day connected to one of my boxes, some kind of servers or autosurfs bots, i blocked them in iptables, however if i go to Whm>>Server Status>>Apache Status i see them "connected" to my box, how can i kick them or kill its connections? (i dont want to restart apache)

    I identify this thanks to Cloudlinux LVE manager i saw that one website still in the "current usage" tab for a lot of minutes then i check in apache status and i found the ip addresses and that they had a very high "req", i just want to know how can i kill those connections.

    After i blocked them with iptables the website disappear from the "current usage" tab in Cloudlinux LVE manager however the connection still there in Apache status:

    Srv PID Acc M CPU SS Req Conn Child Slot Client VHost Request
    17-533 - 0/0/11053 . 0.07 4691 351195970 0.0 0.00 306.33 GET /?cat=26 HTTP/1.1
    18-530 - 0/0/8835 . 0.04 4691 373203976 0.0 0.00 231.21 GET /?p=21434 HTTP/1.1
    19-546 - 0/0/8100 . 29.72 4691 304207264 0.0 0.00 214.38 GET /?p=21630 HTTP/1.1

    How can i kill them?

  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    Is there any particular reason you prefer to not restart Apache? It's likely why you still see those connections under "Apache Status".

    Thank you.

Share This Page