Example of how to restrict access to a network or logged in user only
The code could be put into functions.php
Note this is an example, and untested in live and would need to be edited to the right network values
It also isn't that secure as the REMOTE_ADDR can be spoofed so shouldn't be used for really secure content - in which case alternative security measures ( i.e. Single Signon within an organisation) should be used