Sometimes,  Access to cPanel and Webmail blocks firewall using standard ports (2082, 2083, 2085, 2096). To bypass this restriction, you can set up a subdomain and proxy script, allowing secure access through regular HTTP ports (80/443). Here’s how to do it.

Steps to Access cPanel and Webmail Behind a Firewall

  1. Important Note
    Installation requires access to cPanel from a system not behind a firewall. Complete setup there before accessing from behind a firewall.
  2. Log in to cPanel
    Open:
    www.yourdomain.com/cpanel

    Or:
    www.yourdomain.com:2085
  3. Create a Subdomain
    Add a subdomain named cPanel inside your hosting account.
    Example: cpanel.yourdomain.com
  4. Upload the Proxy Script
    Copy the file cpanelproxy.php into
    /public_html/cpanel/
  5. Modify or Create .htaccess File
    Inside /public_html/cpanel/, edit or create a .htaccess file and add:

    – RewriteEngine on
    – RewriteCond %{REQUEST_URI} !^/cpanelproxy.php
    – RewriteRule .* /cpanelproxy.php [last]
  6. Access cPanel / Webmail
    Once the subdomain is active, you can log in via:
    http://cpanel.yourdomain.com

 

Pro Tips

  • Use HTTPS (https://cpanel.yourdomain.com) for secure access.
  • Ensure mod_rewrite is enabled on your server for .htaccess rules to work.
  • Test Webmail access as well:
    http://cpanel.yourdomain.com/webmail

Popular Posts You May Read

Explore more hosting insights, tips and industry updates.

How to Create an Email Filter in Webmail

In this article, we will explain to you how to create an Email filter in…

Fix rsync Failed to Connect to cPanel Error

Introduction: When updating cPanel with /scripts/updatenow, you may encounter the “rsync failed to connect to…

Business, Technology and Dedicated Servers

Today, with so much advancement in the technology, doing online business has become one of…