SSH into DD-WRT router remotely
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
- Go to Administration > Management and "Enable" SSH Management under Remote Access
- 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.
If cPanel is not an option or you host your site yourself, you can use .htaccess file to achieve the same result.
Check your Joomla site for vulnerabilities
OWASP Joomla! Security Scanner is a great security tool to check your Joomla! website for known vulnerabilities and other security issues and be one step ahead of hackers. This tool uses Perl so you need to have it installed on your machine. Most of Linux distributions have it preinstalled.
- Download Joomscan from sourceforge.net (recommended for latest version) or here.
- Extract files and upload to your Linux box.
- Navigate to joomscan-latest
- run ./joomscan.pl update to update local vulnerabilities database
- run ./joomscan.pl -u www.yoursite.com -ot
This will run vulnerabilities scan and save report in joomscan-latest/report folder - For other options and commands run ./joomscan.pl
Replace directory using mod_rewrite redirect in .htaccess
Following rule will replace old-directory with new-directory in your website's URL. Add this to .htaccess file.
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^old-directory(.*)$ http://www.yourdomain.com/new-directory$1 [l,r=301,nc]
Syntax:
rewriterule - defines rewrite rule
^ - start matching
(.*) - match and remember everything
$ - end matching
$1 - append original URL part captured in (.*)
l - last rule (only omit in linked rules)
r=301 - redirect using 301 response (permanent redirect)
[nc] - non case sensitive
Read more: Replace directory using mod_rewrite redirect in .htaccess
- Add www to all URL's on Apach website (.htaccess mod_rewrite)
- HTML paragraph double spacing in Internet Explorer
- Google Maps API v3 - Polygons not appear in Internet Explorer
- Website goes dark on mouse click in IE
- Joomla - Increase search box limit
- Edit or remove "Powered by Phoca Guestbook" back-link
- Disable and redirect Joomla "User Profile" page
- Remove plain text passwords from Joomla registration emails
- Modify or remove "Powered by Kunena Forum" credit links
- Joomla - JUser: :_load: Unable to load user with ID: 62