Here we will use Windows security settings to temporarily lock out the account for xx minutes (xx as per your choice) whenever the wrong password is entered x times. This will prevent the hacker from being able to repeatedly guess your password by making it a longer time job.

This Graphical method will only work for Business, Professional, Enterprise, and Ultimate versions of Windows 7 and Vista.

Step 1:
Open Local Security Policy from Control Pane -> Administrative Tools.

Step 2:
Expand Account Policies on the left and select Account Lockout Policy..

Step 3:
Now, double-click on the Account lockout threshold.

Step 4:
A dialog box will appear. In this dialog, enter the maximum number of trails you want to allow. For example, if you enter 4, so your account will be automatically locked after 4 unsuccessful attempts. Click Ok.

Step 5:
One more window will appear asking for Account lockout duration and the length of time to Reset account lockout counter. If you want to keep them to default value of 30 minutes, Click Ok. Otherwise you can change these values by double-clicking them.

Step 6: