Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member Janak's Avatar
    Join Date
    Jul 2009
    Posts
    71

    Default Blocking IP address or Domain

    I wish to block certain IP address or domain name accessing my server. I have done entry of IP address in my CSF firewall "Deny IP" option and also I have done entry in cPanel -> IP Deny Manager but still I can see that IP address accessing my server from Apache logs.

    Any idea?

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Janak View Post
    I wish to block certain IP address or domain name accessing my server. I have done entry of IP address in my CSF firewall "Deny IP" option and also I have done entry in cPanel -> IP Deny Manager but still I can see that IP address accessing my server from Apache logs.

    Any idea?
    cPanel -> IP Deny Manager only blocks people from visiting the websites on that specific cPanel account. You may want to use the Host Access Control feature in WHM for a broader ban on that IP.

  3. #3
    Member
    Join Date
    Aug 2004
    Posts
    472

    Default

    He has told he has blocked the IP in csf. It should be fine. Please see you have added the IP into the deny list in cf properly.
    www.cliffsupport.com
    i WebManager | Access WHM from your iPhone

  4. #4
    Member linux7802's Avatar
    Join Date
    Dec 2007
    Posts
    218
    cPanel/Enkompass Access Level

    Root Administrator

    Default Solution

    You can also block the ip in Servers iptable or router to block the access for specific ip to your server..
    Regards,
    G R Sonar
    cPanel Hosting Blog

  5. #5
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by david510 View Post
    He has told he has blocked the IP in csf. It should be fine. Please see you have added the IP into the deny list in cf properly.
    ... And restarted the CSF service!

    Quote Originally Posted by Janak
    I wish to block certain IP address or domain name accessing my server. I have done entry of IP address in my CSF firewall "Deny IP" option and also I have done entry in cPanel -> IP Deny Manager but still I can see that IP address accessing my server from Apache logs.
    If you don't restart the firewall then the changes won't take effect!

    Code:
    service csf restart
    Or, the Restart CSF firewall" option added by CSF under WHM ...

    This is assuming of course that CSF has been installed and configured
    correctly and that it is properly linked to IPTABLES / IPCHAINS. Otherwise,
    the firewall is pretty useless and isn't really doing anything for you at all.

    Incidentally ...

    To add a block by IPTABLES directly, you could also do:
    Code:
    iptables -A INPUT -s x.x.x.x -j DROP
    (Where x.x.x.x is the IP address or CIDR range you want to block)

    NOTE: Blocking an IP doesn't remove old log entries where an IP has
    previously connected so the IP may still show up in your log files even
    though it is now blocked and unable to connect. Be sure to check the
    date stamps on any log entries to make sure that you are not looking
    at old log entries from BEFORE you blocked the IP address!

  6. #6
    Member Janak's Avatar
    Join Date
    Jul 2009
    Posts
    71

    Default

    Thanks to all and specially to Spiral. I was looking old log entries and now the IP address seems to be blocked.

  7. #7
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by Janak View Post
    Thanks to all and specially to Spiral. I was looking old log entries and now the IP address seems to be blocked.
    You're welcome!

Similar Threads & Tags
Similar threads

  1. CPL blocking my IP address
    By eville in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 04-14-2006, 02:48 PM
  2. Blocking IP address
    By fashezee in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-06-2005, 05:08 PM
  3. Blocking an email address or ip
    By petfut in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 03-30-2005, 04:39 AM
  4. Blocking Domain E-mail Address
    By ZachICU in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-16-2003, 08:03 PM
  5. Blocking and IP address
    By cbingham in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-20-2002, 02:32 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube