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!

Custom error page -401 - email me their ip?

Discussion in 'E-mail Discussion' started by mick3578, Jul 23, 2009.

  1. mick3578

    mick3578 Registered

    Joined:
    Jul 23, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    Hello,

    I have set up my custom error pages using cpanel, they work fine - but for example the 401 not authorized page - i would like it to email me their ip address (or all the echo data) when someone tries to enter a restricted area and this page is triggered.

    - Does anyone know how i do this?

    This is what i have on the page now.

    Code:
    <!--#echo var="HTTP_REFERER" --> |
    <!--#echo var="REMOTE_ADDR" --> |
    <!--#echo var="REQUEST_URI" --> |
    <!--#echo var="HTTP_USER_AGENT" --> |
    <!--#echo var="REDIRECT_STATUS" --> <br>
    
    <meta http-equiv="Refresh" content="14; url=/">
    
    <center>
    <br><br><br>
    <h1> 401 ERROR </h1>
    <br>
    <h2> Returning you to main website in 10 seconds </h2>
    
    <br><br><br>
    
    
    

    Thank you for your help
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice