How to take a forum offline temporarily

If you don’t want anyone to access it change your a record and add it to your hosts.