简体   繁体   中英

Login screen in PhpMyAdmin

I have made PHP Application & I am going to install XAMPP on client's Windows machine in order to run the application. Everything is working as expected but I need a Login Screen (my own mysql database or builtin mysql functionality) when someone go to localhost/phpmyadmin . I don't want that client access the Db.

Secondly is there a nice & simple way to hide/encrypt (something like exe) my php code so that my client does not open my php files etc.

Thanks

for encryption use ioncube php encoder

for disable phpmyadmin login page go to folder\\apache\\conf\\extra\\httpd-xampp.conf

Somewhere down in the bottom of this configuration file is the LocationMatch node

Even though you would think the default Order is set to deny, allow with Deny from all. This configuration by default is set to Allow from 192.168.0.#. Remove this ip range and you are set. and change this

<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16

ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

to this

<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 \
fe80::/10 169.254.0.0/16

ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM