Blocks: On-site/Off-site

Maintained by Picture of Mark Johnson Mark Johnson
A modified version of the HTML block that allows the block to change or hide depending on whether the user is accessing the page though a local network, or the public Internet.
6 sites

This block is based upon the core HTML block.  It allows different 2 different titles and contents to be defined, one being displayed if the user is accessing Moodle via the local network and one being displayed if they're accessing via the public Internet.

The block can also be hidden completely to either group by simply leaving the content blank.

A user's location is determined based on IP address. An IP address from a range reserved for private addresses (10.*, 172.16.* or 192.16.*) is considered "On-site", anything else is considered "Off-site".

This block was previously available for Moodle 1.9 under the name "LAN Only" or "Inside/Outside".  This version should upgrade cleanly from these older versions.

Please dont report bugs here

If you experience an error with the block, or would like to request a feature, please use the "Bug Tracker" link below.


Screenshot #0
Screenshot #1
Screenshot #2


Picture of Mark Johnson
Mark Johnson (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Please login to post comments