Accessing Cpanel Behind Strict Firewall

by admin on 2009/04/07

Accessing Cpanel Behind Strict Firewall

I have been called in by one of our local government owned businesses to help with there seo efforts and they use a very strict firewall which wont allow access to ports other than port 80 which makes it hard for me to access my servers.

If I really wanted to I could open the ports needed i.e 2080 but I don’t like opening ports unless its on my system incase I put the companies security at risk. I had this problem several years ago and the only way I got round it was by creating a subdomain and upload my cpanel contents to there.

To make it easier for you to do it in just a couple of steps I have provided you with everything you need. The downside to this method is you have to have access to your server on port 2080 to upload the cpanel folder and to create your subdomain.

There are instructions embedded in the php file, but here's what I di
to get it to work for me.

1) Load up cPanel (www.yourdomain.com/cpanel or www.yourdomain.com:2085)
2) Add a subdomain called cpanel.
3) Copy the script cpanelproxy.php to the /public_html/cpanel/ directory.
4) Modify (or add) the file /public_html/cpanel/.htaccess to include
the following 3 lines:

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/cpanelproxy.php
RewriteRule .* /cpanelproxy.php [last] 

That's it. Once your subdomain is available, you can use
http://cpanel.yourdomain.com to get into cPanel and Webmail.

Download File

Limited Time Directory Submissions

Leave a Comment

Previous post: Help For Heroes

Next post: Tips On Paying For Advertising