I have some web sites on php (Codeigniter). I want to turn them off just for now (these are web sites for internal usage, and they are not indexed by google etc. So I don't have to worry about SEO etc.).
I am thinking just add this line, require valid-user, in the beginning of .htaccess to turn the whole site off. (all these CodeIgniter sites have .htaccess already)
Later on, if I need to turn these sites back, I can turn it back by comment out or remove this line.
This line, require valid-user, is telling that we need password to access the sites, but I am not giving any AuthUserFile. So it will block off the whole site. This approach is feeling like a trick. Is there a better way to block off the site?
Thanks!