Reputation: 89
Today, I was interviewed for the post of webserver admin, and the interviewer asked one question that I never heard before..ever:
using .htaccess file how to down a live website?
Any one know the answer?
Upvotes: 0
Views: 47
Reputation: 1468
If you control the website, just put this in the .htaccess file in the root web directory:
deny from all
If you don't control the website, there is no way to do this unless there is a security vulnerability in the website unrelated to .htaccess.
Upvotes: 1