Skip to content

AgID/wai-matomo-plugin-LoginFilterIp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matomo LoginFilterIp Plugin

Description

This plugin makes possible to filter (whitelist) the ip/ranges allowed to login in your Matomo instance with username/password credentials.

This is different from the whitelisting feature included in Matomo because the filter is only applied to the login action when using username and password and not when providing a single sign-on experience using the logme action provided by the Login plugin.

In this scenario is possibile to completely hide the login form and return an error page or redirect the user to another address.

Installation

Refer to this Matamo FAQ.

Usage

Add the following section to your config.ini.php:

[LoginFilterIp]
allow_login_from[] = <IP ADDRESS or RANGE>
; uncomment to redirect the user instead of displaying an error page
;redirect_unallowed_to = <URL>

Make sure you have direct access to the config.ini.php file before using this plugin as it could prevent you from authenticating in your Matomo instance.