N
N
nik_32122016-03-07 20:00:55
linux
nik_3212, 2016-03-07 20:00:55

How to close access?

There is a computer with linux and a lamp-server installed on it. In order to enter phpmyadmin, you need to enter localhost / phpmyadmin in the address bar (everything is as it should). If, for example, I have a site called mysite.com and if I add the address phpmyadmin(mysite.com/phpmyadmin) to that, the control panel opens. Is there anything that can be done to prevent this from happening?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
CityCat4, 2016-03-07
@CityCat4

1. Restrict access by IP
2. Move phpmyadmin to a directory with a different name and generally try not to use the "standard" directories
3. Use mod_rewrite to intercept requests by sending them or reading the 404.html page or somewhere else.

O
OnYourLips, 2016-03-07
@OnYourLips

You should use virtual hosts.

K
Konstantin Frolov, 2016-03-08
@nitro80

So after all, in the phpmyadmin config itself, it is possible to set any arbitrary address (alias) just for your case.
Well and still, I would restrict access on ip.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question