HTACCESS: Access to a Dir for Local & Forbid External

[SIZE=4][FONT=Century Gothic]*Using .htaccess file
I’ve created a local web server using WAMP (in online mode)
I want to forbid access to a particular Directory e.g. “blog” to all external IPs but allow access for “localhost” or

How do I do it using .htacceess file?



WAMP installs as a localhost server, i.e., it will only be accessible via localhost or



There are 2 modes of WAMP…online & offline.
In offline mode, only localhost is able to access. But in online mode, everyone…both external & local IP are able to access. Now please re-read my question.