Controlling access to /billing

From Kolmisoft Wiki
Revision as of 15:00, 24 April 2009 by Admin (talk | contribs) (New page: Edit /var/www/html/billing/.htaccess and add following lines to it: Order Deny,Allow Deny from all Allow from friends_ip another_friends_ip You can add multiple ip addresses, hostname...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Edit /var/www/html/billing/.htaccess and add following lines to it:

Order Deny,Allow
Deny from all
Allow from friends_ip another_friends_ip

You can add multiple ip addresses, hostnames or diapazones.

Now restart apache:

/etc/init.d/httpd restart


info:

http://httpd.apache.org/docs/1.3/howto/htaccess.html

http://httpd.apache.org/docs/2.0/mod/mod_access.html#allow

http://httpd.apache.org/docs/1.3/mod/mod_access.html#allow