joomla 3 - 如何禁用前端登录组件?
问题描述:
我已经搜索并禁用了在侧边栏中隐藏登录表单的joomla登录模块。但如果我把joomla 3 - 如何禁用前端登录组件?
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中的所有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地址。