我已经搜索并禁用了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]
在"/administrator"文件夹中-允许IP/DNS访问(文件:/administrator/.htaccess):
##### Allow only developers/administrators ####
order deny,allow
deny from all
allow from XXX.XXX.XXX.XXX
其中XXX.XXX.XXX.XXX - admin ip地址