Anish Kumar
Anish Kumar

Reputation: 89

How to block a wbsite using .htacces?

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

Answers (1)

someone
someone

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

Related Questions