Securing your wordpress from sql injection and hack attempt

Thursday, June 5, 2008 18:48
Posted in category Tips

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.

Add to Del.cio.us RSS Feed Add to Technorati Favorites Stumble It! Digg It!
    www.sajithmr.com

You can leave a response, or trackback from your own site.

2 Responses to “Securing your wordpress from sql injection and hack attempt”

  1. transparent_opac says:

    July 7th, 2008 at 3:56 am

    Well, 444′ing my templates directory killed my blog!

  2. chmod 444 and chmod 751 for wordpress security | Hosting Formula says:

    August 21st, 2008 at 11:12 pm

    [...] chmod 444 will definitely kill wordpress template, any solution? [...]

Leave a Reply