httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: IP address -> Name
Date Sun, 26 May 2002 00:38:35 GMT

On Wed, 29 May 2002, Ashutosh Kadakia wrote:

> Got a question.
> I have a remotely hosted site. I assume is virutally hosted.
> I would like to deny access to people who have the wrong address meaning if
> the address is and the ip address is i dont
> want people to be able to access it using
> Im not sure if its possible on a virutally hosted remote site (to which i do
> not have access to the config files. it needs to be done thru .ht files)

If your ISP allows mod_rewrite:

RewriteEngine On
RewriteCond %{HTTP_HOST} ! [NC]
RewriteRule .* - [F]


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message