Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2006
    Kepler 62f

    Stop cPanel redirects for subdomains, subfolders

    I'm annoyed by the swiss cheese of cPanel. Specially, all the login methods available.
    It causes problems, and I'm tired of it.

    I want to entirely block
    - subdomains (cpanel., whm., etc)
    - subfolders (/cpanel, /whm, etc)

    I DO NOT want to merely redirect them. I want the requests to be 404.

    How can this be done?
    || Need a good host?
    || See my Suggested Hosts List || Editorial: EIG/Site5/Arvixe/Hostgator Alternatives

  2. #2
    Join Date
    Dec 2010
    You could change the folder names which would make them 404.

    nano /usr/local/apache/conf/httpd.conf

    ScriptAliasMatch ^/?cpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAliasMatch ^/?webmail/?$ /usr/local/cpanel/cgi-sys/wredirect.cgi
    ScriptAliasMatch ^/?whm/?$ /usr/local/cpanel/cgi-sys/whmredirect.cgi

    /usr/local/cpanel/bin/apache_conf_distiller --update
    /etc/init.d/httpd restart
    Licensecart - We only sell High Quality licenses
    Visit us @ ~ sales(➾) ~
    WHT isn't what it used to be… power changes people :]

Similar Threads

  1. I can't remove permanent redirects in cPanel Redirects
    By Tim G in forum Hosting Security and Technology
    Replies: 8
    Last Post: 07-19-2008, 09:36 PM
  2. cPanel Redirects
    By bryankm282 in forum Hosting Software and Control Panels
    Replies: 3
    Last Post: 03-19-2007, 07:49 PM
  3. Cpanel's redirects
    By Bambuk in forum Web Hosting
    Replies: 3
    Last Post: 02-03-2005, 10:58 PM
  4. cpanel subdomains are just redirects?
    By andreaf in forum Hosting Software and Control Panels
    Replies: 2
    Last Post: 09-05-2003, 12:07 PM
  5. Ensim - subfolders instead of subdomains
    By pzman in forum Hosting Software and Control Panels
    Replies: 0
    Last Post: 09-08-2002, 05:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts