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.

Custom error page -401 - email me their ip?

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

  1. mick3578

    mick3578 Registered

    Joined:
    Jul 23, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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