Forum Moderators: phranque

Message Too Old, No Replies

Show a directory based on IP address

using .htacess

         

gosman

11:17 am on Mar 8, 2010 (gmt 0)

10+ Year Member



Is there a way of showing a directory only to select range of IP address using .htaccess. Everyone else would get a 404?

gosman

6:48 pm on Mar 8, 2010 (gmt 0)

10+ Year Member



Bump ;)

g1smd

7:27 pm on Mar 8, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes there is.

What code have you tried so far?

gosman

11:02 am on Mar 10, 2010 (gmt 0)

10+ Year Member



Hi G1smd.

I figured it out. I used index.php in the directory to detect the ip address and and send a 404 header if it didn't match my list of IP's

Regards