{"id":1812,"date":"2025-06-13T06:59:11","date_gmt":"2025-06-13T06:59:11","guid":{"rendered":"https:\/\/hostrago.com\/knowledge-base\/?p=1812"},"modified":"2025-06-13T06:59:12","modified_gmt":"2025-06-13T06:59:12","slug":"how-to-enable-temporary-url-for-whm","status":"publish","type":"post","link":"https:\/\/hostrago.com\/knowledge-base\/how-to-enable-temporary-url-for-whm\/","title":{"rendered":"How to Enable Temporary URL for WHM: Full Step-by-Step Guide"},"content":{"rendered":"\n<p>When managing multiple websites or migrating accounts, it&#8217;s often necessary to preview a site before the domain&#8217;s DNS is fully propagated. WHM offers a simple solution by allowing temporary URL access via the server IP. This guide will show you <strong>how to enable Temporary URL for WHM<\/strong> easily and securely.<\/p>\n\n\n\n<p>For more in-depth WHM and <a href=\"https:\/\/cpanel.net\/\" target=\"_blank\" rel=\"noopener\">cPanel <\/a>guides, visit our <a class=\"\" href=\"https:\/\/hostrago.com\/knowledge-base\/\">Hostrago Knowledge Base<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a Temporary URL in WHM?<\/h2>\n\n\n\n<p>A <strong>Temporary URL<\/strong> allows you to access websites hosted on your server by using the server\u2019s IP address combined with the cPanel username. This method is extremely helpful when:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DNS changes haven\u2019t propagated.<\/li>\n\n\n\n<li>Websites are being migrated to a new server.<\/li>\n\n\n\n<li>Developers need to preview websites before going live.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How to Enable Temporary URL for WHM (Step-by-Step)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Access WHM as Root User<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open your browser and enter:<br><code>https:\/\/your-server-ip:2087<\/code><\/li>\n\n\n\n<li>Enter your <strong>Root Username<\/strong> and <strong>Password<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Log In<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Open Tweak Settings<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"427\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Tweak-Settings-in-WHM-sidebar-1024x427.webp\" loading=\"lazy\" alt=\"Tweak Settings in WHM sidebar\" class=\"wp-image-1814\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Tweak-Settings-in-WHM-sidebar-1024x427.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Tweak-Settings-in-WHM-sidebar-300x125.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Tweak-Settings-in-WHM-sidebar-768x320.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Tweak-Settings-in-WHM-sidebar-1536x640.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Tweak-Settings-in-WHM-sidebar-2048x853.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In WHM, type <strong>Tweak Settings<\/strong> into the search bar.<\/li>\n\n\n\n<li>Click on <strong>Tweak Settings<\/strong> from the results.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Modify mod_userdir Protection<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Under <strong>Tweak Settings<\/strong>, go to the <strong>Security<\/strong> tab.<\/li>\n\n\n\n<li>Look for the option:<br><strong>&#8220;Enable mod_userdir Protection&#8221;<\/strong><\/li>\n\n\n\n<li>By default, this may be enabled (checked) for security.<\/li>\n\n\n\n<li>Uncheck this box to disable the protection.<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Note:<\/strong> Disabling this allows temporary URL access. Always re-enable after testing for improved server security.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Access Website via Temporary URL<\/h3>\n\n\n\n<p>Now you can access any account\u2019s website via:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>http:\/\/your-server-ip\/~username<br><\/code><\/pre>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>http:\/\/123.456.789.100\/~cpanelusername<br><\/code><\/pre>\n\n\n\n<p>Replace <code>your-server-ip<\/code> with your actual server IP and <code>username<\/code> with the cPanel username.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Re-Enable mod_userdir Protection (Highly Recommended)<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"284\" src=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Re-enabling-mod_userdir-protection-1024x284.webp\" loading=\"lazy\" alt=\"Re-enabling mod_userdir protection\" class=\"wp-image-1815\" srcset=\"https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Re-enabling-mod_userdir-protection-1024x284.webp 1024w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Re-enabling-mod_userdir-protection-300x83.webp 300w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Re-enabling-mod_userdir-protection-768x213.webp 768w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Re-enabling-mod_userdir-protection-1536x426.webp 1536w, https:\/\/hostrago.com\/knowledge-base\/wp-content\/uploads\/2025\/06\/Re-enabling-mod_userdir-protection-2048x568.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Once your testing is complete, go back to <strong>Tweak Settings<\/strong>.<\/li>\n\n\n\n<li>Check <strong>Enable mod_userdir Protection<\/strong> again.<\/li>\n\n\n\n<li>Click <strong>Save<\/strong> to secure your server.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Why Re-Enable mod_userdir Protection?<\/h2>\n\n\n\n<p>Keeping mod_userdir disabled permanently may expose:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Sensitive data<\/li>\n\n\n\n<li>Security vulnerabilities<\/li>\n\n\n\n<li>Potential performance issues<\/li>\n<\/ul>\n\n\n\n<p>Always enable mod_userdir protection after you&#8217;re done using temporary URLs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Need Assistance? Contact Hostrago Support<\/h2>\n\n\n\n<p>If you&#8217;re unsure about any step or face difficulties, our support team is ready to help:<br>\ud83d\udc49 <a href=\"https:\/\/hostrago.com\/contact-us\">Contact Hostrago Support<\/a><\/p>\n\n\n\n<p>For more tutorials like this, explore our <a class=\"\" href=\"https:\/\/hostrago.com\/knowledge-base\/\">Hostrago Knowledge Base<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently Asked Questions (FAQ)<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">1. What is a Temporary URL in WHM?<\/h3>\n\n\n\n<p>A Temporary URL in WHM allows you to access a website using your server&#8217;s IP address combined with the cPanel username. This is useful when DNS changes are pending or during website migrations.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. How to Enable Temporary URL for WHM?<\/h3>\n\n\n\n<p>To enable Temporary URL in WHM:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Log in to WHM as root.<\/li>\n\n\n\n<li>Go to <strong>Tweak Settings<\/strong>.<\/li>\n\n\n\n<li>Under the <strong>Security<\/strong> tab, disable <strong>mod_userdir Protection<\/strong>.<\/li>\n\n\n\n<li>Access your website using:<br><code>http:\/\/your-server-ip\/~username<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. Why is mod_userdir Protection enabled by default?<\/h3>\n\n\n\n<p>WHM enables <strong>mod_userdir Protection<\/strong> by default for security reasons. Disabling it allows public access to user directories, which may expose sensitive data if not managed properly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Is it safe to keep Temporary URL enabled permanently?<\/h3>\n\n\n\n<p>No, it is not recommended. Leaving mod_userdir Protection disabled long-term can pose security risks. Always re-enable it after testing or troubleshooting is complete.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. Can I enable Temporary URL if I don\u2019t have WHM access?<\/h3>\n\n\n\n<p>If you don\u2019t have WHM access, contact your hosting provider (like <a class=\"\" href=\"https:\/\/hostrago.com\/\">Hostrago<\/a>) to enable Temporary URL access for your account.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">6. What is the format of the Temporary URL?The format is:<br><code>http:\/\/your-server-ip\/~username<\/code><br>For example:<br><code>http:\/\/192.168.1.100\/~cpaneluser<\/code><\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">7. What are the alternatives if I can\u2019t enable Temporary URL?<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use a staging environment provided by your hosting provider.<\/li>\n\n\n\n<li>Edit your computer\u2019s hosts file to preview the site locally.<\/li>\n\n\n\n<li>Ask your host for a preview link.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>How to Enable Temporary URL for WHM is a simple, effective way to test your websites during migrations or DNS changes. Just remember to disable it when you&#8217;re finished for maximum server security.<\/p>\n\n\n\n<p>\ud83d\udc49 Learn more with our growing library of <a class=\"\" href=\"https:\/\/hostrago.com\/knowledge-base\/\">Hostrago Knowledge Base articles<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When managing multiple websites or migrating accounts, it&#8217;s often necessary to preview a site before the domain&#8217;s DNS is fully propagated. WHM offers a simple&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1813,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[222,126,220,219,223,218,176,221,200],"class_list":["post-1812","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-whm","tag-dns-propagation","tag-hostrago","tag-mod_userdir","tag-server-access","tag-server-security","tag-temporary-url","tag-web-hosting","tag-website-testing","tag-whm"],"menu_order":0,"_links":{"self":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/1812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=1812"}],"version-history":[{"count":1,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/1812\/revisions"}],"predecessor-version":[{"id":1816,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/1812\/revisions\/1816"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/media\/1813"}],"wp:attachment":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=1812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=1812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=1812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}