2013-05-14 52 views
3

我已經搜索並禁用了在側邊欄中隱藏登錄表單的joomla登錄模塊。但如果我把joomla 3 - 如何禁用前端登錄組件?

index.php/component/users 

地址欄中的URL它仍然顯示登錄表單。

有沒有什麼辦法可以隱藏這個登錄表單?

回答

3

您可以通過.htaccess文件中的自定義重寫規則來防止該問題。

# Return 403 Forbidden header and show the content of the root homepage 
RewriteRule index.php/component/users index.php [F] 

或嘗試創建(所以它不會顯示在頁面上不具有模塊堆疊菜單)隱藏菜單項,並設置它的訪問級別爲「特殊」,但我不知道這一個。

0

在安裝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地址。