: How to stop beta websites indexing in Google Search? I want stop my beta.example.com being indexed by search engines, because it can generate duplication issue.
I want stop my beta.example.com being indexed by search engines, because it can generate duplication issue.
More posts by @Gretchen104
1 Comments
Sorted by latest first Latest Oldest Best
After trying different methods I came to the conclusion that you can never be really sure if a search engine respects robots.txt or no-index or anything the like.
So if you really want to be sure your test site is not indexed, I's recommend using password protection through a .htaccess / .htpasswd file combi similar to the following code snippet:
AuthType Basic
AuthName "Password Protected Area"
AuthUserFile /path/to/.htpasswd
Require valid-user
The .htpasswd file should then contain something like this:
myusename:al9sjdl98kajdaklsjdalkdj
(username followed by md5 encrypted password)
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.