Restrict access to dashboard only for my IP

Your software
My Mautic version is: 3.2.5
My PHP version is: 7.3
My Database type and version is: MariaDB 10.3.27

Your problem
My problem is:

Hello,

I want to block the access to the dashboard to any connection except for my IP address.

I tried to add this line below to access_control in app/config/security.php .
[‘path’ => ‘^/s/’, ‘roles’ => ‘ROLE_USER_IP’, ‘ips’ => ‘127.0.0.1’],

To test if it works, i try to only give access to localhost. But nothing changed for any host.

Is there anyone who could help me ?

Thanks !