# Restrict access to dashboard only for my IP

**URL:** <https://forum.mautic.org/t/restrict-access-to-dashboard-only-for-my-ip/18549>\
**Category:** Product Support\
**Created:** [March 12, 2021, 3:07pm UTC](https://forum.mautic.org/t/restrict-access-to-dashboard-only-for-my-ip/18549 "2021-03-12T15:07:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![briba](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/briba/32/1341_2.png) [@briba](https://forum.mautic.org/u/briba)\
**Post date:** [March 12, 2021, 3:07pm UTC](https://forum.mautic.org/t/restrict-access-to-dashboard-only-for-my-ip/18549/1 "2021-03-12T15:07:51Z")

</div>

**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 !
