Stop *all* requests to IP-only GET requests in apache?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: der.hans
Date:  
Subject: Stop *all* requests to IP-only GET requests in apache?
Am 06. Aug, 2001 schwäzte Kurt Granroth so:

> Offhand, I'm wondering if it's possible to reject all GET requests that
> use only my IP address and not one of my virtual hosts. Currently, these
> requests just get routed to my first virtual host (www.granroth.org)...
> but what I would like is for them to get a dropped TCP connection or a
> refused or something. There is really no good reason for anybody but me
> to be accessing my web server using the IP address.


How about setting up a virtual server for the IP addy and making sure that
ends up at a 404 not found. Not dropped packets, but keeps 'em out.

Probably a way to do it with iptables, though. Hey Nick, still awake? :)

ciao,

der.hans
--
# home.pages.de/~lufthans/ www.DevelopOnline.com
# Motorraeder toeten nicht. Motorraeder werden getoetet.