Advertisement
How to restrict access to /administrator/index.php?
Moderators: mandville, General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant / FPA - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant / FPA - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Enthusiast
- Posts: 115
- Joined: Thu Jan 25, 2024 9:15 am
How to restrict access to /administrator/index.php?
Greetings, i have successfully restricted access to the /administrator path but that restriction doesn't include the /administrator/index.php which is unrestrictable. Why this happened?
Thanks in advance!
Thanks in advance!
Advertisement
- toivo
- Joomla! Master
- Posts: 18137
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: How to restrict access to /administrator/index.php?
How did you restrict the access to the administrator folder? If your host has given you cPanel, the simplest way is to go to Files - Directory Privacy and configure a username and password that only you and the web server know.
Toivo Talikka, Global Moderator
- AMurray
- Joomla! Master
- Posts: 10611
- Joined: Sat Feb 13, 2010 7:35 am
- Location: Australia
Re: How to restrict access to /administrator/index.php?
if using htaccess / htpasswd, those files must be in the folder you're protecting i.e. /administrator folder.
In addition to what Toivo advised above, you can use an extension such as Akeeba Admin tools to protect the admin directory.
In addition to what Toivo advised above, you can use an extension such as Akeeba Admin tools to protect the admin directory.
Regards - A Murray
Global Support Moderator
Global Support Moderator
-
- Joomla! Enthusiast
- Posts: 115
- Joined: Thu Jan 25, 2024 9:15 am
Re: How to restrict access to /administrator/index.php?
Hi, no i just added a location context (location /administrator { } ) in my nginx configuration and denied all the requests except those from my IP address.
-
- Joomla! Enthusiast
- Posts: 115
- Joined: Thu Jan 25, 2024 9:15 am
Re: How to restrict access to /administrator/index.php?
Actually now works great but when i add the username and the password in the /administrator page after that instead of send me in the dashboard throws a 403 forbidden page...btw I use the nginx access key to restrict access
-
- Joomla! Apprentice
- Posts: 17
- Joined: Fri Aug 26, 2022 1:34 pm
Re: How to restrict access to /administrator/index.php?
This article can help you to hide access to /administrator/ without using 3rd party plugin:
Hiding URL to your Administrator Panel (Joomla)
Hiding URL to your Administrator Panel (Joomla)
- AMurray
- Joomla! Master
- Posts: 10611
- Joined: Sat Feb 13, 2010 7:35 am
- Location: Australia
Re: How to restrict access to /administrator/index.php?
simpler just to use multi-factor authentication or Webauthn, which works by setting the device as trusted. Login won't work on any other device unless you set up the same authenticaiton method on each device. That works with things like Windows login (PIN, or its biometrics such as Windows Hello or fingerprint scan).
It's not a good idea to rename the /administrator folder. That could cause the site to break, permanently (or not without effort to restore it).
It's not a good idea to rename the /administrator folder. That could cause the site to break, permanently (or not without effort to restore it).
Regards - A Murray
Global Support Moderator
Global Support Moderator
- pe7er
- Joomla! Master
- Posts: 25448
- Joined: Thu Aug 18, 2005 8:55 pm
- Location: Nijmegen, Netherlands
- Contact:
Re: How to restrict access to /administrator/index.php?
You can protect the /administrator/ back-end with a htaccess password.
And there are Joomla plugins available to protect it with a security token:
https://extensions.joomla.org/tags/access-security/
https://extensions.joomla.org/tags/back ... s-control/
Kind Regards,
Peter Martin, Global Moderator + Joomla 5.2 Release Manager
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
Peter Martin, Global Moderator + Joomla 5.2 Release Manager
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
- JAVesey
- Joomla! Hero
- Posts: 2802
- Joined: Tue May 14, 2013 1:21 pm
- Location: Cardiff, Wales, UK
- Contact:
Re: How to restrict access to /administrator/index.php?
Agreed, and there are a number them around…
This is probably the best known and most well-used:
https://extensions.joomla.org/extension ... dminexile/
John V
Cardiff, Wales, UK
Joomla 5.3.0 "live" site on PHP 8.3.16 and MariaDB 10.11.10 (with b/c plugin enabled)
Joomla 5.3.0 on MAMP Pro 7.2.3 with PHP 8.3.14 and MySQL 8.0.40 (with b/c plugin enabled)
Cardiff, Wales, UK
Joomla 5.3.0 "live" site on PHP 8.3.16 and MariaDB 10.11.10 (with b/c plugin enabled)
Joomla 5.3.0 on MAMP Pro 7.2.3 with PHP 8.3.14 and MySQL 8.0.40 (with b/c plugin enabled)
Advertisement