Whenever you try to install a Joomla template and get an error saying “Direct access to this location is not allowed” simply fix for it is as follows
- Log in to your admin panel.
- Go to Extensions -> Plugin Manager
- Enable the System – Legacy Plugin from the Plugin list.
- Sorted