Mask Your Web Server for Enhanced Security Published: Nov 13, 2003
  • Rating


Learn how to modify the CPanel bandwidth exceeded page when a clients site uses all their bandwidth up.

In this tutorial you will learn how to modify the Cpanel bandwidth exceeded page. This page is shown for clients automatically when they run out of bandwidth. Bandwidth counts are reset every month.

Step 1: Login to the server as root in SSH.

Step 2:  This will make a backup copy of the original file incase you need to revert back
cp /usr/local/cpanel/apache/mod_bwlimited.c /usr/local/cpanel/apache/mod_bwlimited.c.bak

Step 3: Then type:
 pico -w /usr/local/cpanel/apache/mod_bwlimited.c

Scroll down until you reach the section where you'll see the HTML code for the bandwidth page or do a search for it in Pico #: Ctrl+W   then paste this in: <HTML><HEAD>n<TITLE>509 Bandwidth Limit Exceeded</TITLE>

Change it to whatever you like... carefully.

Step 4: Save the file while still in pico #:
Crtl+X then Y

  • Rating


Related Articles

Comments (1)

  • Gravatar - Edward
    Edward 01:36, February 8, 2004
    Mask apache server & services version numbers!
    "Masked responce to server ident quries"

    Changes all your apache php etc version #'s to just "apache on Linux"

    ssh to your box

    su -

    vi /etc/httpd/conf/httpd.conf

    #These are VI command use pico or whatever you like.

    # This searches for ServerSignature


    # Hitting i enters insert mode..


    edit ServerSignature on to ServerSignature off

    #Underneath add this line:

    ServerTokens ProductOnly

    # Hiting ESC exits "Insert" mode..


    # This command writes the file and quits


    # Restart Apache

    /etc/rc.d/init.d/httpd restart

    Now your server ident and version #'s for apache and it's services should be masked!

Add Your Thoughts is a hosting directory, not a web host.

Copyright © 1998-2018