Could we help you? Please click the banners. We are young and desperately need the money
Sometimes you wish to protect certain areas of your server by denying access except for a select few. Here's an easy whitelist setup for allowing only clients from specified IP addresses to access your content using Apache2 .htaccess rules.
Order deny,allow
Deny from all
Allow from 12.345.678.9
If you'd like to whitelist more IP addresses, simply add more "Allow from {IP}" declarations. For example, like so:
Order deny,allow
Deny from all
Allow from 12.345.678.9
Allow from 98.765.432.1
Allow from 127.0.0.1