{"id":45170,"date":"2019-06-08T03:01:28","date_gmt":"2019-06-07T17:01:28","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=45170"},"modified":"2019-06-06T21:28:31","modified_gmt":"2019-06-06T11:28:31","slug":"apache-web-server-directory-privacy-via-cpanel-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/apache-web-server-directory-privacy-via-cpanel-tutorial\/","title":{"rendered":"Apache Web Server Directory Privacy via cPanel Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Apache\/apache_webserver_directory_protection.gif\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Apache Web Server Directory Privacy via cPanel Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Apache\/apache_webserver_directory_protection.gif\" title=\"Apache Web Server Directory Privacy via cPanel Tutorial\"   \/><\/a><p class=\"wp-caption-text\">Apache Web Server Directory Privacy via cPanel Tutorial<\/p><\/div>\n<p>Some <a target=_blank href='https:\/\/en.wikipedia.org\/wiki\/Apache_HTTP_Server' title='Apache web server information from Wikipedia ... thanks'>Apache<\/a>\/PHP\/MySql web server <a target=_blank href='https:\/\/cpanel.net\/' title='cPanel landing page'>cPanel<\/a> configurations offer an option to directory protect a web server directory.  We have a few questions &#8230;<\/p>\n<ol>\n<li>Why do this Apache web server directory protection?\n<ul>\n<li>you may be developing and testing an incomplete website&#8217;s coding, as a programmer, and not want to allow access to the general public as this testing phase continues &#8230; on this, please see &#8220;Did you know?&#8221; section below as well<\/li>\n<li>it may be a way to put off hackers<\/li>\n<\/ul>\n<\/li>\n<li>How does this work?\n<ul>\n<li>for any one web browser session the first access to an Apache web server protected directory the user will be asked for the authorization username\/password &#8230; and succeed with subsequent access to this and other non-protected areas of the website visited during that web browser session<\/li>\n<li>the Apache web server protected directory can be unprotected in cPanel as a separate operation later, as required<\/li>\n<\/ul>\n<\/li>\n<li>When does this happen?\n<ul>\n<li>as soon as the cPanel settings are saved &#8230;<\/li>\n<li>there is no need to restart the Apache httpd service to make this start happening<\/li>\n<\/ul>\n<\/li>\n<li>Where do you go in cPanel to start the ball rolling?\n<ul>\n<li>each cPanel configuration can be different but if there is a &#8220;Files&#8221; set of icons a &#8220;Directory Privacy&#8221; icon would be apt &#8230;<\/li>\n<li>search for &#8220;Directory Privacy&#8221; in the &#8220;Search&#8221; textbox of cPanel &#8230; noting that some Apache web servers do not offer this functionality<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>We hope this clarifies a programmer&#8217;s view of this issue.  We&#8217;re pretty sure there will be other reasons to use this feature by webmasters out there in the &#8220;net&#8221; wooooooorrrrrrlllllld.<\/p>\n<p><i><b>Did you know?<\/b><\/i><\/p>\n<p>As far as privacy goes there is (web server) &#8220;directory level&#8221; protection, as above, and then there is the attempt to not be discovered by Search Engines as another matter entirely.  Supposing you are halfway through developing a website, are testing migration issues with the live public domain URL of the website, but do not want to be &#8220;discovered&#8221; (by search engines) in the meantime?  No guarantees, but the search engines may look for a <a target=_blank title='robots.txt' href='http:\/\/www.robotstxt.org\/robotstxt.html'>&#8220;robots.txt&#8221; file<\/a> placed in the website root directory to honour any &#8220;Disallow&#8221; clauses such as &#8230;<\/p>\n<p><code><br \/>\nUser-agent: *<br \/>\nDisallow: \/config<br \/>\nDisallow: \/index.php<br \/>\n<\/code><\/p>\n<p> &#8230; respectively for (the case of) a web server directory and (the case of an) individual file.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d45170' onclick='var dv=document.getElementById(\"d45170\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/apache\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d45170' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Some Apache\/PHP\/MySql web server cPanel configurations offer an option to directory protect a web server directory. We have a few questions &#8230; Why do this Apache web server directory protection? you may be developing and testing an incomplete website&#8217;s coding, &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/apache-web-server-directory-privacy-via-cpanel-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,37],"tags":[85,249,327,336,418,450,2977,2976,2975,1114,1319,1404,1411,1418,1421],"class_list":["post-45170","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-apache","tag-configuration","tag-did-you-know","tag-directory","tag-file","tag-folder","tag-hacker","tag-privacy","tag-robots-txt","tag-security","tag-tutorial","tag-web-browser","tag-web-server","tag-webpage","tag-website"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/45170"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=45170"}],"version-history":[{"count":3,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/45170\/revisions"}],"predecessor-version":[{"id":45173,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/45170\/revisions\/45173"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=45170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=45170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=45170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}