Block access to files in an HTTP directory by IP address using .htaccess

if you’re working on something you only want people be able to see in your office and you have a static IP address at the office then the following works really well to protect your files!

Just replace “11.222.333.444” with your IP address.

Order Deny,Allow
Deny from all
Allow from 11.222.333.444