Page 1 of 1
Htaccess phpmyadmin htaccess
Posted: Sat May 04, 2019 11:47 am
by Sv3n
Hi, can help me?
I will my phpmyadmin with a htaccess how can I do that?
Re: Htaccess phpmyadmin htaccess
Posted: Sat May 04, 2019 3:44 pm
by daz123
Hi,
I am guessing you want to protect phpmyadmin from public access.
In the file:
You can find and change:
Code: Select all
<Directory /usr/share/phpMyAdmin/>
Order Deny,Allow
Deny from All
Allow from 12.34.56.78
</Directory>
replace
with your own ip, you can add multiple lines.
Restart/reload apache after the change.
Re: Htaccess phpmyadmin htaccess
Posted: Sat May 04, 2019 4:25 pm
by Sv3n
I am testing.
and how do I do that with cp and roundcube htaccess
Re: Htaccess phpmyadmin htaccess
Posted: Sat May 04, 2019 5:38 pm
by daz123
Code: Select all
/etc/httpd/conf.d/roundcubemail.conf
You do the same kind of thing with that file, btw if you are worried about those apps being hacked in the future, you could just install mod_security
Re: Htaccess phpmyadmin htaccess
Posted: Mon Jun 10, 2019 5:25 am
by James
daz123 wrote: ↑Sat May 04, 2019 5:38 pm
Code: Select all
/etc/httpd/conf.d/roundcubemail.conf
You do the same kind of thing with that file, btw if you are worried about those apps being hacked in the future, you could just install mod_security
Thank. I have the same problem, I hope it will help me mod_security for my
site.
Re: Htaccess phpmyadmin htaccess
Posted: Mon Mar 16, 2020 4:59 pm
by jrdavid
Create a backup copy before you edit any .htaccess file. I am giving you a reference article, might this help you
https://mythemeshop.com/blog/edit-htaccess-file/