httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
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 http://www.bob.com/~bob and the ip address is 1.2.3.4 i dont
> want people to be able to access it using http://1.2.3.4/~bob
>
> 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} !www.bob.com [NC]
RewriteRule .* - [F]

Joshua.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message