简体   繁体   中英

joomla 3 - how to disable front end login component?

I have searched and disabled joomla login module which hides login form in sidebar. But if I put

index.php/component/users

URL in address bar it still displays login form.

Is there any way to hide this login form ?

You can prevent that by custom rewrite rules in .htaccess file.

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

or try creating hidden menu item (stacked in menu that doesn't have module so it's not shown on the page) and setting it's Access level to 'Special' but I'm not sure about this one.

Before start website development process immediately after installation Joomla! or simply for preventing/blocking POST-data follow next steps.

Prevent all POST excluding /administrator folder in Joomla! (file: /.htaccess):

####### Block front-end POST ##############
RewriteCond %{REQUEST_URI} !^/administrator [NC]
RewriteCond %{REQUEST_METHOD} POST
RewriteRule .* index.php [F]

In "/admininstrator" folder - allow access by IP/DNS (file: /admininstrator/.htaccess):

##### Allow only developers/administrators ####    
order deny,allow
deny from all
allow from XXX.XXX.XXX.XXX

Where XXX.XXX.XXX.XXX - admin IP-address.

Make 301 redirect in .htaccess file:

Instruction: https://skalolaskovy.ru/joomla/500-htaccess-301-redirect-with-parametr

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM