dongtuo4132 2019-04-19 02:57
浏览 37

404错误页面允许访问我的数据库

I'm new to programming and I'm developing an online application using Laravel, with XAMPP (on Windows) to host the database. Now when I test the login page I have noticed that when someone types a wrong URL

Example: localhost/mysitename/home/wrong name 

it is displaying a 404 error page with a "go home" button at the bottom which can direct anyone to the database through phpMyAdmin.

Is there any way to fix this?

  • 写回答

1条回答 默认 最新

  • doumin4553 2019-04-19 03:03
    关注

    For starters, restrict your phpMyadmin to only the local host or an IP address on your local network. Find the conf file and make the following changes. Adjust the IP to something that you know. /etc/phpmyadmin/apache.conf

    <Directory /usr/share/phpmyadmin> Add the following lines at the top: Order Deny,Allow Deny from All Allow from 127.0.0.1

    Next - You really need to look into how to correctly configure Apache and other web services before exposing your front-end.

    评论

报告相同问题?

悬赏问题

  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计