Skip to content

A guide to using best practice methods to remove an internet-facing development site/environment from being indexed by search engines - in particular Google

Notifications You must be signed in to change notification settings

clockworkmedia/dev-dissallow-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

dev-dissallow-search

A guide to using best practice methods to remove an internet-facing development site/environment from being indexed by search engines - in particular Google

  • Password protect the directory
    • cPanel method
    • .htaccess method
  • Use robots.txt
  • Use the robots index.html meta tag
  • Google Search Consol

Password protect the directory

cPanel method

Log into the cPanel, konsoleH, or whatever server/environment management tool, set a password on the directory you would like to hide from search engines

.htaccess method

Refer to this link

Use the robots.txt

Structure your robots.txt like this:

# Don't allow web crawlers to index anything
User-agent: *
Disallow: /

Place the robots.txt in the directory you wish to hide from search engines

Use the robots index.html meta tag

Put the following meta tag into the of your index.html file

<meta name="robots" content="noindex">

Google Search Consol

Set your site up on Google Search Consol. Once set up, use the

  • Go to the Remove outdated content page
  • Enter the URL (web address) of the page that you want to remove
  • Select Request removal

About

A guide to using best practice methods to remove an internet-facing development site/environment from being indexed by search engines - in particular Google

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published