Forum Moderators: phranque

Message Too Old, No Replies

blocking all but a couple IPs..

blocking users off..

         

phpacer

8:59 pm on Oct 31, 2003 (gmt 0)

10+ Year Member



My apologies if this has been discussed before.

I am running Apache 2 on windows for serving only to serve to my local intranet.. however, since I am connected through a cable modem, I am getting hacked..

is there anyway I can limit access to only a couple IPs? Could I do it with .htaccess?

You help is appreciated in advance. Thanks a bunch.

phpacer

jdMorgan

9:23 pm on Oct 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



phpacer,

You might want to consider purchasing a firewall to install between the modem and your network to block all incoming connection requests. Trying to block this kind of problem with .htaccess is a case of closing the barn door after the horses have all escaped...

Jim

phpacer

10:44 pm on Oct 31, 2003 (gmt 0)

10+ Year Member



Jim,

Thanks for the quick response.

I do have a router/ firewall that I can connect my computer to. However, I'd like for the web server to be accessible by a few computers not in the same network.. as in open the firewall to a select set of IPs.. I am assuming I could do that.. or would that again let the can of worms out?

Thanks again Jim.

phpacer

jdMorgan

11:09 pm on Oct 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



phpacer,

Yes, do this.

> open the firewall to a select set of IPs

Close all ports that you don't need, and block all incoming requests except those from remote IP addresses you recognize.

If you have broadband, you need a firewall...

Jim

phpacer

12:19 am on Nov 1, 2003 (gmt 0)

10+ Year Member



Thanks a bunch Jim.