CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   HELP: htaccess allow/deny/redirect IP (http://www.codingforums.com/showthread.php?t=266759)

Psionicsin 06-30-2012 04:34 PM

HELP: htaccess allow/deny/redirect IP
 
I need to allow only 3 IP address, and redirect all others that are not that IP address to another page.

Configuring htaccess is confusing to me, so can someone throw me a bone?

Fou-Lu 07-01-2012 05:29 PM

Simple allow/deny rules.
Code:

order deny, allow
deny from all
allow from 127.0.0.1
allow from 192.168.0.0/16
allow from 172.16.0.0–172.31.255.255

You can group them together as well as use ranges and cidr notation.


All times are GMT +1. The time now is 08:48 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.