- Block cart functionality.
- Always show interstitial or pop-up.
- Switch the whole site off.
1. Block cart functionality
If you're running an eCommerce website, you can just block cart feature and block search bots from crawling your shopping cart pages using robots.txt file or a robots meta tag. This helps both Google and your website visitors understand your site is not available for shopping today.2. Always show interstitial or pop-up
In some cases you may want to turn off your whole site for a day or a period and worried about rankings and search presence. In these cases, you need to block the entire site from users and be it with a "temporarily unavailable" message, informational page, or popup, and the server should return a 503 HTTP result code ("Service Unavailable"). If your server didn't return a 503 HTTP result code, the interstitial would be indexed as your website's content. So, make sure all your pages are returning with 503 HTTP code with some helpful information to your visitors.3. Switch the whole website off
If you're moving your server to a different data center, you can turn off your server completely and have a temporary server available to serve a 503 HTTP result code for all URLs and switch your DNS to point to new server. And, don't forget to give an appropriate informational page for your site visitors. Here is how you do it,- Set your DNS TTL to a low time (such as 5 minutes) a few days in advance.
- Change the DNS to the temporary server's IP address.
- Take your main server offline once all requests go to the temporary server.
- Your server is now offline.
- When ready, bring your main server online again.
- Switch DNS back to the main server's IP address.
- Change the DNS TTL back to normal.
Written by Sudheer Kiran
Full Stack Growth Marketing Professional & Fractional CMOHey, I'm Sudheer. I've spent nearly two decades working in growth marketing—mostly with B2B SaaS companies, agencies, and startups. I help businesses find smart, scalable ways to grow through digital transformation, brand strategy, and marketing that actually converts.



