MyBB Community Forums

Full Version: Close Site
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I see, the preferred method to close board on upgrading is now htaccess restricting, instead of the on/off setting in the ACP.

That's ok, but what code i need to add to my htaccess?

I can't find any info on the wiki.

Thanks.
deny from 127.0.0.0

Replace 127.0.0.0 with IP address, but remember this would deny only specific or mass IP ranges but not all, best way to close the board and additionally create a custom index.php if required.
<Files *>
order deny,allow
deny from all
allow from put.your.ip.here
</Files>

(reference)
Thank you ranjani!