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 Deny Manager Custom Error Page?

Discussion in 'General Discussion' started by Mikee[K-9], Aug 8, 2003.

  1. Mikee[K-9]

    Mikee[K-9] Member

    Joined:
    Aug 7, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    When using the IP Deny Manager, is there a way to have the blocked user see a customized page, similar to the custom error pages feature?

    Right now, there is just a simple text message of:

    I tried making a custom .htaccess file with
    ErrorDocument 403 /errors/403.shtml

    so an error references that custom 403.shtml page in my errors folder, but the IP block does not get the custom file.

    Thanks

    cPanel.net Support Ticket Number:
     
  2. Mikee[K-9]

    Mikee[K-9] Member

    Joined:
    Aug 7, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    ^bump...heh..hoping to get some good stuff on this one.

    cPanel.net Support Ticket Number:
     
  3. Mikee[K-9]

    Mikee[K-9] Member

    Joined:
    Aug 7, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I'll try one more bump before I give up. Thanks for any help in advance. Peace!

    cPanel.net Support Ticket Number:
     
  4. DrChaos

    DrChaos Active Member

    Joined:
    Dec 23, 2001
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    I believe that unless the end-user has the option to "Show Custom Error Pages" checked in the IE internet options, they will always see the default IE error page. Nothing you can do about tht, unfortunately. I am sure someone will correct me if I am wrong.

    cPanel.net Support Ticket Number:
     
  5. rbrown

    rbrown Active Member

    Joined:
    Jun 11, 2003
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6

    Yes, I've been having the same problem.

    You cannot see the custom 403.shtml because that page is ALSO denied for the same reason that the other page you were trying to access. (The .htaccess affects its directory and every directory within its descent.)

    You can fix this by putting these lines somewhere in the ~/public_html/.htaccess for each user:


    Code:
    
    order allow,deny
    allow from all
    
    
    but if you have root access on the server, you can fix EVERYONE on the entire machine by putting this somewhere in /usr/local/apache/conf/httpd.conf:


    Code:
    
    order deny,allow
    allow from all
    
    
    Then the changes don't get wiped every time someone installs Frontpage. Wouldn't it be nice if cPanel just put that in the httpd.conf automatically like all that other stuff they put in there?

    cPanel.net Support Ticket Number:
     
  6. Mikee[K-9]

    Mikee[K-9] Member

    Joined:
    Aug 7, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    LOL...I'm glad I set this thread to send me an email, as I gave up on a solution.

    Thank you very much for your response! For my own understanding, what does those two lines actually do with regards to the IP Deny function?

    • order allow,deny
      allow from all

    Does that give someone who is IP banned access to the root folder just to see the custom 403 page?
     
  7. rbrown

    rbrown Active Member

    Joined:
    Jun 11, 2003
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    This bug is now fixed in the cpanel now. Simply upgrade to the latest EDGE release and your custom error pages will start working.

    cPanel.net Support Ticket Number:
     
  8. Mikee[K-9]

    Mikee[K-9] Member

    Joined:
    Aug 7, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Wonderful! Thank you very much!

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page