Page 1 of 1
Deactivate an entire website with .htaccess file.
Posted: Tue Apr 14, 2009 3:02 pm
by JellyFish
How can I deactivate an entire website with an .htaccess file? Can I do anything like this with an .htaccess file? I just would like to be able to disable a site with something in an .htaccess file so that no one can visit any of the pages. This way when I want to enable the site again I just remove some kind of directive from the .htaccess file.
Is there any .htaccess directive that will restrict all users or IPs?
Thanks for reading, all help is appreciated.
Re: Deactivate an entire website with .htaccess file.
Posted: Tue Apr 14, 2009 3:13 pm
by alex.barylski
Use Debian and it'sa a2ensite or a2dissite utilities...
Re: Deactivate an entire website with .htaccess file.
Posted: Tue Apr 14, 2009 3:17 pm
by Eran
Re: Deactivate an entire website with .htaccess file.
Posted: Tue Apr 14, 2009 10:44 pm
by JAB Creations
JellyFish wrote:How can I deactivate an entire website with an .htaccess file?
Copy and paste this in to the file...
wrgwrv35890gjm35234T@YG%^#&Y@#%Y@#%IGYJ@#%GH()K#%Y#%)

Re: Deactivate an entire website with .htaccess file.
Posted: Thu Apr 16, 2009 5:44 pm
by JellyFish
Hey thanks pytrin, that's exactly what I was looking for.
JAB Creations wrote:
Copy and paste this in to the file...
wrgwrv35890gjm35234T@YG%^#&Y@#%Y@#%IGYJ@#%GH()K#%Y#%)
That's a bit scary... Looking.

Re: Deactivate an entire website with .htaccess file.
Posted: Sun Apr 19, 2009 2:27 pm
by JAB Creations
It was a joke.

It's so easy to break an entire website with .htaccess and I still haven't grasped whatever the Apache language is unfortunately. But if you're looking to keep people out with .htaccess then it's really not all that hard!
