Results 1 to 11 of 11

Thread: Show Suspended Domain on Suspended Page

  1. #1
    Member
    Join Date
    Jun 2008
    Posts
    28

    Default Show Suspended Domain on Suspended Page

    Hey All,

    I have a reseller account, so I don't have access to modify the httpd.conf, but wondered if there was any way to be able to retrieve the suspended domain on the suspended page? So for example:

    You visited clientsdomain.com which gets redirected to myresellerdomain.com/suspended.page/. I want to be able to output clientsdomain.com on myresellerdomain.com/suspended.page/.

    Is this at all possible? I was thinking that maybe I could write a script to be able to log into the account after and modify the .htaccess file, however, once the account is suspended, there is no access to it.

    Any help would be appreciated.

    Thanks.

  2. #2
    Member
    Join Date
    May 2005
    Posts
    100

    Default

    Have you considered using the Apache's environmental variable HTTP_REFERER in a script in the suspended.page folder?

  3. #3
    Member
    Join Date
    Jun 2008
    Posts
    28

    Default

    Yeah, but it doesn't pass the variable there. I spit out all the server variables and nothing showed the domain.

  4. #4
    Member bvierra's Avatar
    Join Date
    Jul 2006
    Location
    Southern California
    Posts
    55

    Default

    Quote Originally Posted by djbob2 View Post
    Have you considered using the Apache's environmental variable HTTP_REFERER in a script in the suspended.page folder?
    It's a mod_rewrite so that wont work... If you processed anything of code it would also just take up additional resources... not sure I really see the reason behind it.

  5. #5
    Member
    Join Date
    Jun 2008
    Posts
    28

    Default

    The reason I want the referrer is because I want to display relevent ads to the domain, so that I can actually make a little money from unpaying customers or abusers to help reduce the loss. I don't see why cpanel wouldn't send the url to this page by default.

  6. #6
    Member
    Join Date
    Jul 2009
    Posts
    18

    Default Ur best answear so far

    Firstly go notepad copy and paste this code into it edit it to you likes then save it as suspended.html uploaded it to all the domains and when there going o get suspended just redirect the page to www.cilentsdomain.com/suspended.html

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
    <title>Account Suspended on yourdomain.com</title> 
    <style> 
    a { font-family: arial, verdana; font-size: 14px; color: #000000; text-decoration: none; }
    a:hover { text-decoration: underline; }
     
     
    body { background-color: #FFF; font-family: arial, verdana, sans-serif; font-size: 14px;}
    .cellheader { border-top: 1px #374646 solid; border-left: 1px #374646 solid; border-right: 1px #374646 solid; border-bottom: 1px #374646 solid; font-family: verdana, arial; font-size: 20pt; font-weight: normal; color: #F1F1F1; }</style> 
    </head> 
    <body> 
    <table width="100%" align="center" bgcolor="#ffffff" border="0"> 
    <tbody> 
    <tr class="cellheader"> 
    <td bgcolor="#788298"> 
    <center><strong> 
    This Account Has Been Suspended.</strong></center></td></tr></tbody></table> 
    <center> 
    Please contact billing/support center A.S.A.P
    <center>Billing@yourdomain.com</center>
    <br /><br /> 
    <br /><br /> 
    <br /><br /> 
    <br /><br /> 
    <br /><br /> 
    <br /><br /> 
    <br /><br /> 
    
    </center> 
    </body> 
    </html>

  7. #7
    Registered User
    Join Date
    Nov 2008
    Location
    Alaska
    Posts
    1

    Default Re: Show Suspended Domain on Suspended Page

    Any fix on this, i even tried some php in the suspended page to pass it on, i think its lame we cant put the suspended domain on the suspended page

    I was hoping something like this would work

    Code:
    <?php
    $url = "[HTTP_REFERER]";
    header('Referer: $url');
    header('Location: http://www.web-hosting-service.org/suspended.php');
    ?>

    you can see the referer works by Clicking here
    Last edited by mknjhill; 12-03-2010 at 09:01 PM.

  8. #8
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2004
    Location
    Bulgaria
    Posts
    93

    Default Re: Show Suspended Domain on Suspended Page

    the problem is that in suspended page PHP is not working!
    cPanel knows that, but will not fix this issue.

    The only way is to replace suspededpage.cgi file with your own.

  9. #9
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Show Suspended Domain on Suspended Page

    Quote Originally Posted by the_bobara View Post
    the problem is that in suspended page PHP is not working!
    cPanel knows that, but will not fix this issue.

    The only way is to replace suspededpage.cgi file with your own.
    I'm unable to locate a request in our Feature Request Forums or its subforums regarding this. If you can PM me a URL for where we said we would refuse to fix this issue, I will gladly investigate this further.

    Regarding the suspended.tmpl file not handling PHP, that is correct. That template file is not designed to accommodate PHP. Would you like us to accommodate all of PHP with this template, or do you just need some tags like the name of the suspended domain?

  10. #10
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2004
    Location
    Bulgaria
    Posts
    93

    Default Re: Show Suspended Domain on Suspended Page

    I just PM you. The idea is to show basic information in this suspended page that is specific to this domain. For example we cannot show the suspended domain in this page, because it is static!

  11. #11
    Member
    Join Date
    Dec 2010
    Location
    Delhi, India
    Posts
    15

    Default Re: Show Suspended Domain on Suspended Page

    Anyways, redirection is a nice trick.!

Similar Threads

  1. Cannot show Suspended Account Page ????
    By hkewell in forum cPanel & WHM Discussions
    Replies: 47
    Last Post: 05-02-2011, 08:39 AM
  2. Suspended account redirecting to http://www.suspended.page/
    By n000b in forum cPanel & WHM Discussions
    Replies: 9
    Last Post: 07-31-2007, 01:09 PM
  3. suspended.page forwards to www.suspended.page ?
    By Serpico in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 10-20-2006, 07:20 AM
  4. suspended page wont show
    By AbeFroman in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 09-15-2002, 04:43 AM
  5. suspended page wont show
    By AbeFroman in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 06-18-2002, 01:36 PM