Force mp3, pdf and other files to download (Apache)

If your website visitor clicks on a URL that links to a file, such as mp3, mp4, doc, pdf, etc., the file will be displayed/played inside the browser if the browser supports that particular format. This is inconsistent across different browsers as not all browsers support the same file formats.

To make experience more consistent you can force files to be downloaded rather than be displayed inside browsers.

SSH into DD-WRT router remotely

SSH into DD-WRT router

To connect to a router running DD-WRT firmware perform following:

  • Login into router's web GUI as administrator
  • Go to Services > Services and "Enable" SSHd under Secure Shell
    DD-WRT Services > Services > SSHd
  • Go to Administration > Management and "Enable" SSH Management under Remote Access
    DD-WRT Administration > Management > SSH Management
  • Connect to router's IP address using your favourite SSH client (i.e. PUTTY) using username: root and password you normally use to login to the web admin GUI.


Password protect Joomla administrator directory

One of the ways to increase your Joomla site security is password protect administrator directory.

If you use third party hosting provider which offers cPanel site administration, you can easily protect your administrator directory using built-in cPanel Password Protect Directories option.

cPanel - Password Protect Directories

If cPanel is not an option or you host your site yourself, you can use .htaccess file to achieve the same result.


Subscribe to receive occasional updates on new posts.
Your email will not be used for any other purpose and you can unsubscribe at any time.
Please wait