0

Is it possible to handpick few ip addresses to allow access to localhost over LAN and rejecting other incoming connections? I am running XAMPP.

OS : Windows XP

4
  • Nitpick: Localhost is 127.0.0.1 and can not be accessed from LAN or any host other than itself.
    – Turbo J
    Oct 3, 2011 at 18:04
  • XAMPP on Windows host?
    – Turbo J
    Oct 3, 2011 at 18:07
  • Yes it is possible, you need to tell us the OS for more help
    – jman
    Oct 4, 2011 at 7:07
  • Its windows XP. Oct 4, 2011 at 7:33

1 Answer 1

0

Yes.

Create .htaccess file.

Inside place...

order deny,allow
deny from all
allow from 192.168
allow from some.ip.address.1
allow from some.ip.address.2

This will allow from all LAN IP that start with 192.168, plus two specific additional IPs. Reject all others.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .