Web hosting - password protect entire folder

I have a set of HTML files as an output from Project Analyzer (it documents my VBA projects into a navigatable set of web pages). I'd like to put it on my web server - but if I do my entire code will be open to anyone. So I'd like to restrict access to ONLY if accessed from my WordPress site where I can include a token/URL parameter.

It's not practical to modify/put_anything in the 1,000s of web pages produced by Project Analyzer. Hence the need to limit access globally.

Is this possible? If so I'd be interested in any ideas.

Thanks
hindersalivaAsked:
Who is Participating?
 
David Johnson, CD, MVPConnect With a Mentor OwnerCommented:
most search engines respect the robots.txt file in which you can exclude certain pages from being indexed.
0
 
David Johnson, CD, MVPOwnerCommented:
some details are required in order to help you.  What webserver will you be using to host these project files (make and model)
0
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
If you're talking about delivering VBA files for download or any type of file download, then you want to store your files outside of your public www folder.

When the server receives the proper credentials then you're back in toad can copy the file from outside the private area to a public area for download and within a certain time limit remove the file from the public area so others cannot access.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
hindersalivaAuthor Commented:
Sorry, I left out some important details :(

My site is hosted in shared hosting at Dreamhost.com - It is a Wordpress site. I can place the entire set of 'code documentation web pages' (5Mb all HTML) outside the www folder. There will only be one link from my Wordpress site to Index.htm of this set of pages.

A question: The Wordpress site itself will be password protected. Therefore, no one can access my documentation pages through that one link (above). My concern is that the individual pages of the documentation will be listed in Google and open to the public. Or is it not so?
0
 
Scott Fell, EE MVEConnect With a Mentor Developer & EE ModeratorCommented:
If your documentation is an html page, I would just copy the html as a wordpress post/page and make that password protected. I think that will be much easier.  Even then you can make the page nofollow.
0
 
hindersalivaAuthor Commented:
Thanks Scott and David. The output documentation of my VBA projects run into 300+ pages!
So, sadly, neither of the suggestions is practical in this particular case.
0
 
David Johnson, CD, MVPConnect With a Mentor OwnerCommented:
when I mentioned robots.txt I should have also mentioned you can block directories and subdirectories of those directories as well.
0
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Either you will need to spend time on handcoding or use a ready to go plug in.

https://wordpress.org/plugins/download-manager/
https://wordpress.org/plugins/easy-digital-downloads/

In addition to the above. search wordpress.org for digital downloads for other options.
0
 
hindersalivaAuthor Commented:
David, that's great. If I can get an entire directory 'unlisted' by search engines that would solve my problem. Now to learn about 'robots.txt' ...

Scott, I won't be downloading my code library. Just copying/pasting code from the page.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.