MyBB Community Forums

Full Version: how to shutdown the forum with .htaccess?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
before upgrading:

First, you may want to shut down your forum. Doing this means that no one will interrupt the upgrade process accidentally. Please remember that switching the forum by using the "Board Online/Offline" setting IS NOT recommended. The best method is to use a .htaccess restriction on your forum's root folder so that no one can access the front end.

how can i do this?
Add this to your .htaccess file which lies in the root of your forum:

<Files *>
order deny,allow
deny from all
allow from put.your.ip.here
</Files>

If you don't know your IP just visit a site like www.whatismyip.com

greetings
atnun
I would not recommend this method since you have no way of testing everything, making template changes etc.
The way I wrote is much better.
i think its better to exempt yourself so you can test. i like the first approach although i think i can allow one page as a default for anyone who is try to view or is it a recommended?
Hi all,
I have been following the various instructions in this thread and cannot get any of them to work for me.
I am wanting to update my forum but cannot close it no matter what I try.
Any more sugestions please
(2011-11-29, 02:02 PM)wakey50 Wrote: [ -> ]Hi all,
I have been following the various instructions in this thread and cannot get any of them to work for me.
I am wanting to update my forum but cannot close it no matter what I try.
Any more sugestions please
What doesn't works exactly?

(2011-11-29, 02:09 PM)crazy4cs Wrote: [ -> ]
(2011-11-29, 02:02 PM)wakey50 Wrote: [ -> ]Hi all,
I have been following the various instructions in this thread and cannot get any of them to work for me.
I am wanting to update my forum but cannot close it no matter what I try.
Any more sugestions please
What doesn't works exactly?

the stopping of the front end
This should work fine?:

deny from all
allow from your.ip.address

That would allow only you to see other forum and others would get 403 (forbidden) error.

this works as i followed it.

<Files *>
order deny,allow
deny from all
allow from[b] put.your.ip.here[/b]
</Files>

put you xxx.xxx.xxx.xxx address in this bold letters
Pages: 1 2