Home > The Newbie Zone > Questions and Answers

Noob Question protecting directories (4)


06-10-2015 05:31 PM #1 mcfearson (Member)
Noob Question protecting directories

Hi

I am trying to figure out how to prevent someone from going to my domain directory and finding all my landers.

My set up is www.mydomain.com/landers (just an example)

How to I prevent people from getting to that domain and seeing all my landers?

Thank you in advance.


06-10-2015 05:47 PM #2 vortex (Senior Moderator)

Why that's easy!

Just put a file in your directory root - any file - either one of your landing pages or a blank page - and name it index.html or index.htm or index.php. You'll also need to put an index file in EACH of your folders to prevent people from seeing the contents of any folder.

And to tell search engines not to index your pages - paste the following contents into a text file, name it robots.txt, and put it in your directory root (not necessary to do this for all folders - just your domain root):

# Disallow Web Bots
User-agent: *
Disallow: /
# Disallow Archive Bots
User-agent: ia_archiver
Disallow: /

Hope that's what you're looking for!


Amy


06-10-2015 07:24 PM #3 mcfearson (Member)

Thank you very much


06-16-2015 02:19 PM #4 Ruby Tunes ()

Yep, the index method is simple and I used to always use it until I discovered disabling indexes!

You can disable them globally so a once off job will fix you for good

Check out this thread here and particularly this post (or the ones above for a different method): http://stmforum.com/forum/showthread...l=1#post167129


Home > The Newbie Zone > Questions and Answers