{"id":165,"date":"2006-11-27T18:08:49","date_gmt":"2006-11-27T18:08:49","guid":{"rendered":"https:\/\/bodhost.com\/kb\/\/web-hosting\/?p=165"},"modified":"2026-02-26T14:04:58","modified_gmt":"2026-02-26T14:04:58","slug":"cpanel-webmail-accessing-behind-firewall","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/cpanel-webmail-accessing-behind-firewall\/","title":{"rendered":"cPanel and Webmail Accessing Behind a Firewall"},"content":{"rendered":"<p><strong><\/strong><\/p>\r\n<p class=\"wp-block-paragraph\">Sometimes,\u00a0 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\u2019s how to do it.<\/p>\r\n<h3>Steps to Access cPanel and Webmail Behind a Firewall<\/h3>\r\n<ol>\r\n<li>Important Note<br \/>Installation requires access to cPanel from a system not behind a firewall. Complete setup there before accessing from behind a firewall.<\/li>\r\n<li>Log in to cPanel<br \/>Open:<br \/>www.yourdomain.com\/cpanel<br \/><br \/>Or:<br \/>www.yourdomain.com:2085<\/li>\r\n<li>Create a Subdomain<br \/>Add a subdomain named cPanel inside your hosting account.<br \/>Example: cpanel.yourdomain.com<\/li>\r\n<li>Upload the Proxy Script<br \/>Copy the file cpanelproxy.php into<br \/>\/public_html\/cpanel\/<\/li>\r\n<li>Modify or Create .htaccess File<br \/>Inside \/public_html\/cpanel\/, edit or create a .htaccess file and add:<br \/><br \/>&#8211; RewriteEngine on<br \/>&#8211; RewriteCond %{REQUEST_URI} !^\/cpanelproxy.php<br \/>&#8211; RewriteRule .* \/cpanelproxy.php [last]<\/li>\r\n<li>Access cPanel \/ Webmail<br \/>Once the subdomain is active, you can log in via:<br \/>http:\/\/cpanel.yourdomain.com<\/li>\r\n<\/ol>\r\n<p>&nbsp;<\/p>\r\n<h4>Pro Tips<\/h4>\r\n<ul>\r\n<li>Use HTTPS (https:\/\/cpanel.yourdomain.com) for secure access.<\/li>\r\n<li>Ensure mod_rewrite is enabled on your server for .htaccess rules to work.<\/li>\r\n<li>Test Webmail access as well:<br \/>http:\/\/cpanel.yourdomain.com\/webmail<\/li>\r\n<\/ul>\r\n<p><strong><\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>Sometimes,\u00a0 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&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/cpanel-webmail-accessing-behind-firewall\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[370],"tags":[193,1112,1162],"class_list":["post-165","post","type-post","status-publish","format-standard","hentry","category-control-panels","tag-cpanel","tag-firewall","tag-webmail-accessing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>cPanel and Webmail Access Behind Firewall | Easy Setup<\/title>\n<meta name=\"description\" content=\"Learn how to access cPanel and Webmail behind a firewall using a subdomain and proxy script. Easy Steps to bypass port restrictions easily.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/kb\/cpanel-webmail-accessing-behind-firewall\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"cPanel and Webmail Access Behind Firewall | Easy Setup\" \/>\n<meta property=\"og:description\" content=\"Learn how to access cPanel and Webmail behind a firewall using a subdomain and proxy script. Easy Steps to bypass port restrictions easily.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/cpanel-webmail-accessing-behind-firewall\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2006-11-27T18:08:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:04:58+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/cpanel-webmail-accessing-behind-firewall\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/cpanel-webmail-accessing-behind-firewall\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/c48414ad1536cea20e85282b0737a9f9\"},\"headline\":\"cPanel and Webmail Accessing Behind a Firewall\",\"datePublished\":\"2006-11-27T18:08:49+00:00\",\"dateModified\":\"2026-02-26T14:04:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/cpanel-webmail-accessing-behind-firewall\\\/\"},\"wordCount\":193,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"keywords\":[\"cPanel\",\"Firewall\",\"Webmail Accessing\"],\"articleSection\":[\"Control Panels\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/cpanel-webmail-accessing-behind-firewall\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/cpanel-webmail-accessing-behind-firewall\\\/\",\"name\":\"cPanel and Webmail Access Behind Firewall | Easy Setup\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2006-11-27T18:08:49+00:00\",\"dateModified\":\"2026-02-26T14:04:58+00:00\",\"description\":\"Learn how to access cPanel and Webmail behind a firewall using a subdomain and proxy script. Easy Steps to bypass port restrictions easily.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/cpanel-webmail-accessing-behind-firewall\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/cpanel-webmail-accessing-behind-firewall\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/cpanel-webmail-accessing-behind-firewall\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Control Panels\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/control-panels\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"cPanel and Webmail Accessing Behind a Firewall\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/c48414ad1536cea20e85282b0737a9f9\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"cPanel and Webmail Access Behind Firewall | Easy Setup","description":"Learn how to access cPanel and Webmail behind a firewall using a subdomain and proxy script. Easy Steps to bypass port restrictions easily.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bodhost.com\/kb\/cpanel-webmail-accessing-behind-firewall\/","og_locale":"en_US","og_type":"article","og_title":"cPanel and Webmail Access Behind Firewall | Easy Setup","og_description":"Learn how to access cPanel and Webmail behind a firewall using a subdomain and proxy script. Easy Steps to bypass port restrictions easily.","og_url":"https:\/\/www.bodhost.com\/kb\/cpanel-webmail-accessing-behind-firewall\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2006-11-27T18:08:49+00:00","article_modified_time":"2026-02-26T14:04:58+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/cpanel-webmail-accessing-behind-firewall\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/cpanel-webmail-accessing-behind-firewall\/"},"author":{"name":"admin","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/c48414ad1536cea20e85282b0737a9f9"},"headline":"cPanel and Webmail Accessing Behind a Firewall","datePublished":"2006-11-27T18:08:49+00:00","dateModified":"2026-02-26T14:04:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/cpanel-webmail-accessing-behind-firewall\/"},"wordCount":193,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"keywords":["cPanel","Firewall","Webmail Accessing"],"articleSection":["Control Panels"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/cpanel-webmail-accessing-behind-firewall\/","url":"https:\/\/www.bodhost.com\/kb\/cpanel-webmail-accessing-behind-firewall\/","name":"cPanel and Webmail Access Behind Firewall | Easy Setup","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"datePublished":"2006-11-27T18:08:49+00:00","dateModified":"2026-02-26T14:04:58+00:00","description":"Learn how to access cPanel and Webmail behind a firewall using a subdomain and proxy script. Easy Steps to bypass port restrictions easily.","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/cpanel-webmail-accessing-behind-firewall\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/cpanel-webmail-accessing-behind-firewall\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/cpanel-webmail-accessing-behind-firewall\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Control Panels","item":"https:\/\/www.bodhost.com\/kb\/category\/control-panels\/"},{"@type":"ListItem","position":2,"name":"cPanel and Webmail Accessing Behind a Firewall"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/c48414ad1536cea20e85282b0737a9f9","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.bodhost.com\/kb\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=165"}],"version-history":[{"count":8,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/165\/revisions"}],"predecessor-version":[{"id":14447,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/165\/revisions\/14447"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}