Add a new (or append if one exists) .htccess just inside the wp-admin directory and insert the following:

order deny,allow
allow from 10.10.10.10
deny from all

*Update 10.10.10.10 with your own IP. You can insert multiple “allow” rows with additional IP addresses.

Written by Matt Cooper
Hi, I'm Matt Cooper. I started this blog to pretty much act as a brain dump area for things I learn from day to day. You can contact me at: matt@linuxtutorial.co.uk.