Posted by mayur.pimple on February 6, 2014 at 5:59am
Hi
In many time We follow the process for site deployment.
First we upload in local then test .
after completing test site then we upload in live site.
but test site URL display in google.
Many User visit the test site and register.
I want to stop access for visitor to visit test site.
any module is there to access test login and visit test site.
Comments
use password protect
use password protect code(.htaccess & .htpasswd) for your test site directory..
thanks
thanks
Use shield module
Best way to protect your site use Shield module
https://drupal.org/project/shield
Gaurav Deshpande
Everything Opensource way
Profile: https://www.linkedin.com/in/gauravvdeshpande
thanks
thanks
Deny search engine indexing of test/staging sites
You can also deny search engines to index your test site content by modifying robots.txt in drupal.
yes
yes...
robots.txt
This works for me. You need to add the following directive to the robots.txt and place it at the root folder that you want to protect.
Robot.txt
Put robot.txt in the root folder of test/staging server and add the following code
User-agent: *
Disallow: /
it will just instruct search engine not to visit / crawl any pages in the website
Devaraj
Manager - Drupal Development
Future GolfTech, Bangalore.