How To make your Website: Non-searchable

google-non-searchOk so Google knows everything and finds everyone on their search engine.

But you either make your website private with a password or change your .htaccess file

I will show you how to make change your root directory with a file called the

robots.txt in your main website.

 

First you must create a robots.txt file using notepad or my favorite: notepad++
and add the lines:

User-Agent: *
Disallow: /

 

Then upload that robots.txt file to your main public_html file and add this meta data to your index file (ie, index.html or index.php). This meta code should go after <head> and before </head>.

<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex, nofollow">

That’s it!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.