# Protect Mautic Directory

**URL:** <https://forum.mautic.org/t/protect-mautic-directory/5570>\
**Category:** General Discussion\
**Created:** [April 2, 2016, 6:29pm UTC](https://forum.mautic.org/t/protect-mautic-directory/5570 "2016-04-02T18:29:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [April 2, 2016, 6:29pm UTC](https://forum.mautic.org/t/protect-mautic-directory/5570/1 "2016-04-02T18:29:37Z")

</div>

Hi, guys, there’s a method to protect the Mautic directory from people that are messing around?  
  
  
  
for sample, my mautic instance is in [www.domain.com/mautic](http://www.domain.com/mautic)  
  
there is a why to protect that directory with a login page or something, but without interrupt Mautic correct functionality?

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [April 2, 2016, 6:29pm UTC](https://forum.mautic.org/t/protect-mautic-directory/5570/2 "2016-04-02T18:29:37Z")

</div>

Hi, guys, there’s a method to protect the Mautic directory from people that are messing around?

for sample, my mautic instance is in [www.domain.com/mautic](http://www.domain.com/mautic)  
there is a why to protect that directory with a login page or something, but without interrupt Mautic correct functionality?

---

<div class="post-metadata">

**Author:** ![dbhurley](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dbhurley/32/2_2.png) [@dbhurley](https://forum.mautic.org/u/dbhurley)\
**Post date:** [April 2, 2016, 8:38pm UTC](https://forum.mautic.org/t/protect-mautic-directory/5570/3 "2016-04-02T20:38:41Z")

</div>

Hey!

So you should be able to just use a rather standard .htaccess to block access to directory browsing. In fact, I think that Mautic comes with that capability already so you may want to double check and see if something is not being interpreted right by your server/web host.

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [April 2, 2016, 8:41pm UTC](https://forum.mautic.org/t/protect-mautic-directory/5570/4 "2016-04-02T20:41:46Z")

</div>

Thanks @dbhurley

---

<div class="post-metadata">

**Author:** ![jcschile](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jcschile/32/129_2.png) [@jcschile](https://forum.mautic.org/u/jcschile)\
**Post date:** [January 20, 2017, 5:43pm UTC](https://forum.mautic.org/t/protect-mautic-directory/5570/5 "2017-01-20T17:43:42Z")

</div>

@dbhurley how can I do that??? I haven’t find the way to restrict access to the loging page.

Thank you in advance

---

<div class="post-metadata">

**Author:** ![imautic](https://avatars.discourse-cdn.com/v4/letter/i/74df32/32.png) [@imautic](https://forum.mautic.org/u/imautic)\
**Post date:** [January 20, 2017, 8:32pm UTC](https://forum.mautic.org/t/protect-mautic-directory/5570/6 "2017-01-20T20:32:47Z")

</div>

> [@](#):
>
> In fact, I think that Mautic comes with that capability already so you may want to double check and see if something is not being interpreted right by your server/web host.

This “I will give you a hint but you will have to figure it out on your own” kind of answer is worse than no answer.

[quote=19150:@jcschile]@dbhurley how can I do that??? I haven’t find the way to restrict access to the loging page.

Thank you in advance[/quote]  
Most cPanel already provides an easy to use feature called “privacy”, which you can use to protect a folder or a file with a password. If you choose to protect the mautic folder, I am not sure if it will interfere with mautic’s normal functions or not.

---

<div class="post-metadata">

**Author:** ![jcschile](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jcschile/32/129_2.png) [@jcschile](https://forum.mautic.org/u/jcschile)\
**Post date:** [January 20, 2017, 10:18pm UTC](https://forum.mautic.org/t/protect-mautic-directory/5570/7 "2017-01-20T22:18:59Z")

</div>

Thank you @imautic for you answer, I have tried blocking the mautic folder, also .domain.com/s/loging/ via .htaccess but it didn’t work well because Mautic did not work properly.

But thank you anyway 🙂

---

<div class="post-metadata">

**Author:** ![jcschile](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jcschile/32/129_2.png) [@jcschile](https://forum.mautic.org/u/jcschile)\
**Post date:** [January 20, 2017, 10:20pm UTC](https://forum.mautic.org/t/protect-mautic-directory/5570/8 "2017-01-20T22:20:11Z")

</div>

Thank you @MxyzptlkFishStix , I will try it 🙂

---

<div class="post-metadata">

**Author:** ![jcschile](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jcschile/32/129_2.png) [@jcschile](https://forum.mautic.org/u/jcschile)\
**Post date:** [January 21, 2017, 3:07am UTC](https://forum.mautic.org/t/protect-mautic-directory/5570/9 "2017-01-21T03:07:00Z")

</div>

@MxyzptlkFishStix I don’t know how to do that … but thank you anyway
