Hi MichaelZ,

I am not sure you have the right idea. Naming it private does not make it private (you can name it anything you like), but using htaccess to add password protection gives you controlled access.

It is true that Google and other similar services cannot show the content of a password-protected site to the browsing crowd.

But you can blindfold Google by using a simple trick called ‘robots.txt’ (see https://www.robotstxt.org/robotstxt.html for details). Let's assume you do not care about password protection, but just want to make a site for friends that only a few know about. Then you could use a not obvious path that you email to your friends, and add it to robots.txt so that it does not show up when using Google. Here is how to do it:

your main site is located at: something/,,,/public_html

make a subfolder something/,,,/public_html/private

put the following in robots.txt (placed in the main ‘public_html’ folder):
User-agent: *
Disallow: /private/


The effect is that Google will not record any data that is in your private folder and its subfolders.

Create a difficult path to the actual second private site, e.g. /private/bLthayosaQLfropH

Upload the second site to this location (e.g. www.domain.com/private/bLthayosaQLfropH/index.html)

Then send this address to the selected few (“go to www.domain.com/private/bLthayosaQLfropH for private content”) who can bookmark it and use it easily ever after. The odds are good that outsiders will not stumble on this site.

This avoids password management, and makes life easier if there is not anything to hide. It is not access control, the files are there for everybody to read if they know the difficult path.

Quote Originally Posted by MichaelZ View Post
Thank you Lex. That would do it. I didn't realize you can upload say 2 index.htm files to the same domain but i guess the only one thing that goes out to the www is what is in public? ie. if someone googles something, the pages under private will not be in the search results? Thanks again Lex.