Securing your wordpress from sql injection and hack attempt
In general there are many form of hacking attempt in real world but with little practice we can lowering that risk.
Protect your configuration files :
chmod 444
just reminder :
4 = read
2 = write
1 = execute
First 4 for owner
Second 4 for group
third 4 for others (beside owner dan group)
Make sure you chmod 444 to :
- wp-config.php
- index.php
- wp-setting.php
- Theme directory
How to do this chmod?
1. Using your FTP client ( I use coreftp ) :
Right click on file or folder you want to change mode (chmod).
Click ‘Properties‘

Delete 644, change it into 444, click OK to apply.

After successfully chmod, you’ll see the attribut into r-r-r (read)

2. Using File manager (cpanel)
Tick folder or file you want change its chmod, then click ‘Change Permissions’

Untick selected mode, number will change automatically. Click ‘Change Permission’ to apply.

At right side on ‘Perms’ you’ll see ‘0444′ on succesfull chmod.

|
|
|
|
|
![]() |


transparent_opac said,
Well, 444′ing my templates directory killed my blog!
chmod 444 and chmod 751 for wordpress security | Hosting Formula said,
[...] chmod 444 will definitely kill wordpress template, any solution? [...]
Add A Comment