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.

ip not beeing blocked

Discussion in 'General Discussion' started by ploppy, Dec 11, 2007.

  1. ploppy

    ploppy Active Member

    Joined:
    Mar 28, 2006
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    i have inserted an ip in the deny manager and it still has access to the site. it dosen't appear to be denied. any advice? the ip is in the .htaccess file. thanks

    cpanel ver: 11.11.0-STABLE 18033
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    What does the entry in the..htaaccess file look like?
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Anything show up in Apache's error_log that might give a clue?
     
  4. ploppy

    ploppy Active Member

    Joined:
    Mar 28, 2006
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    in one entry it says:

    Code:
    deny from xx.xxx.54.140
    and under that:

    Code:
    all entries are on 1 line seperated by what looks like a [] character but smaller
    the xx i have put in :) many thanks
     
  5. ploppy

    ploppy Active Member

    Joined:
    Mar 28, 2006
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    notjhing in logs kenneth.
     
  6. ploppy

    ploppy Active Member

    Joined:
    Mar 28, 2006
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    any advice guys. this spammer is hammering my site. thanks
     
  7. darren.nolan

    darren.nolan Well-Known Member

    Joined:
    Oct 4, 2007
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    So your whole .htaccess file is something like the below? Is your .htaccess file in the root web doc directory? /home/username/public_html right?

    Code:
    order allow,deny
    deny from 123.456.789.1
    allow from all
     
    #7 darren.nolan, Dec 11, 2007
    Last edited: Dec 11, 2007
  8. ploppy

    ploppy Active Member

    Joined:
    Mar 28, 2006
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    hi darren. here is a snip of .htaccess which is in the public_html

    Code:
    <Limit GET HEAD POST>
    order allow,deny
    deny from 216.195
    deny from 74.197.103.71
    allow from all
    </LIMIT>
    
    deny from 24.252.54.140
    as you can see, i have tried both ways to do this. but stll getting through. i have tried blocking my own ip and that blocks no prob, just by issuing deny command. any input? cheers
     
  9. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    I may be wrong, but I believe you need the full IP Address in the Deny statement. Hence
    Code:
    deny from 216.195
    
    doesn't work.

    You state that you can successfully block your own IP Address. What leads you to believe the other IP Addresses you enter are not being blocked? Entries in log files?
     
Loading...

Share This Page