From: Ian Holsman <kryton@gmail.com>
To: Askar Ali Khan <askarali@gmail.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: how to redirect certain IPs to specific url
Date: Thu, 1 Jul 2004 11:11:31 +1000 [thread overview]
Message-ID: <2a627cd2040630181121a67ba6@mail.gmail.com> (raw)
In-Reply-To: <a0f69e504063000446f514e22@mail.gmail.com>
Hi.
If your running a apache webserver you can do this via re-write rules
check out http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
something like
rewriteengine on
RewriteCond %{REMOTE_HOST} ^host1.* [OR]
RewriteCond %{REMOTE_HOST} ^host2.* [OR]
RewriteCond %{REMOTE_HOST} ^host3.*
RewriteRule ...some special stuff for any of these hosts...
On Wed, 30 Jun 2004 12:44:09 +0500, Askar Ali Khan <askarali@gmail.com> wrote:
>
> hi
> got a very simple question, i want to redirect certain IPs(clients)
> request to a specific URL (ip)?
> and also later on how to Flush the specific rule from the the chain as
> -A will append it on the bottom, how i will delete it ?
>
> thanks
>
>
prev parent reply other threads:[~2004-07-01 1:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-30 7:44 how to redirect certain IPs to specific url Askar Ali Khan
2004-06-30 8:31 ` Antony Stone
2004-06-30 9:13 ` Askar Ali Khan
2004-06-30 9:34 ` Antony Stone
2004-06-30 15:14 ` James A. Pattie
2004-07-01 1:11 ` Ian Holsman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2a627cd2040630181121a67ba6@mail.gmail.com \
--to=kryton@gmail.com \
--cc=askarali@gmail.com \
--cc=ian@holsman.net \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox