[英]joomla 3 - how to disable front end login component?
我已经搜索并禁用了在侧边栏中隐藏登录表单的 joomla 登录模块。 但如果我把
index.php/component/users
地址栏中的 URL 仍然显示登录表单。
有没有办法隐藏这个登录表单?
您可以通过.htaccess
文件中的自定义重写规则来防止这种情况发生。
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule index.php/component/users index.php [F]
或尝试创建隐藏菜单项(堆叠在没有模块的菜单中,因此不会显示在页面上)并将其访问级别设置为“特殊”,但我不确定这个。
在安装 Joomla 后立即开始网站开发过程之前! 或者只是为了防止/阻止 POST 数据,请遵循以下步骤。
阻止 Joomla 中除 /administrator 文件夹之外的所有 POST! (文件:/.htaccess):
####### Block front-end POST ##############
RewriteCond %{REQUEST_URI} !^/administrator [NC]
RewriteCond %{REQUEST_METHOD} POST
RewriteRule .* index.php [F]
在“/admininstrator”文件夹中 - 允许通过 IP/DNS 访问(文件:/admininstrator/.htaccess):
##### Allow only developers/administrators ####
order deny,allow
deny from all
allow from XXX.XXX.XXX.XXX
其中 XXX.XXX.XXX.XXX - 管理员 IP 地址。
在.htaccess文件中进行301重定向:
说明: https : //skalolaskovy.ru/joomla/500-htaccess-301-redirect-with-parametr
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.