Hi - is it possible to have an intro page which redirects to page A (and
rest of site) for 99% visitors, but which redirects to page B for users from
certain IP addresses?

Thanks

Re: Redirection based on user IP by Kevin

Kevin
Fri Aug 13 07:36:27 CDT 2004

Yes. It would require some custom server-side programming in ASP, ASP.Net,
or some less fabulous server-side programming technology.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"jann" <jann@dial.pipex.com> wrote in message
news:uSjJGNRgEHA.3320@TK2MSFTNGP11.phx.gbl...
> Hi - is it possible to have an intro page which redirects to page A (and
> rest of site) for 99% visitors, but which redirects to page B for users
from
> certain IP addresses?
>
> Thanks
>
>



Re: Redirection based on user IP by Mike

Mike
Fri Aug 13 08:36:48 CDT 2004

Jann,
Here is a snip from my default.asp page which redirects
machines on my LAN to a page that has no tracking or hit
counter on it.
----------------------------------------------------------------
<%
' redirects work computer away from page with site tracking

dim strIPAddress, strIPAddressShort
strIPAddress = Request.ServerVariables("Remote_Addr")
strIPAddressShort = left (strIPAddress, 7)

if strIPAddressShort = "192.168" then
response.redirect "default2.asp"
End If
%>
----------------------------------------------------------------
HTH,
Mike


Kevin Spencer wrote:
: Yes. It would require some custom server-side programming
: in ASP, ASP.Net, or some less fabulous server-side
: programming technology.
:
:
: "jann" <jann@dial.pipex.com> wrote in message
: news:uSjJGNRgEHA.3320@TK2MSFTNGP11.phx.gbl...
:: Hi - is it possible to have an intro page which
:: redirects to page A (and rest of site) for 99% visitors,
:: but which redirects to page B for users from certain IP
:: addresses?
::
:: Thanks



Re: Redirection based on user IP by clintonG

clintonG
Fri Aug 13 10:22:40 CDT 2004

That was helpful Mike but the OP sounds as if a number of IP
addresses need to be blocked. Your code as written will not scale.

The OP should provide additional commentary to confirm, deny
or clarify (what, how and why) and a refined solution may be possible
to provide without a laborious effort that would otherwise require
compensation.

--
<%= Clinton Gallagher, "Twice the Results -- Half the Cost"
Architectural & e-Business Consulting -- Software Development
NET csgallagher@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/




"Mike Mueller" <MikeMueller@ecinet.net.net> wrote in message
news:e0MnepTgEHA.1188@TK2MSFTNGP11.phx.gbl...
> Jann,
> Here is a snip from my default.asp page which redirects
> machines on my LAN to a page that has no tracking or hit
> counter on it.
> ----------------------------------------------------------------
> <%
> ' redirects work computer away from page with site tracking
>
> dim strIPAddress, strIPAddressShort
> strIPAddress = Request.ServerVariables("Remote_Addr")
> strIPAddressShort = left (strIPAddress, 7)
>
> if strIPAddressShort = "192.168" then
> response.redirect "default2.asp"
> End If
> %>
> ----------------------------------------------------------------
> HTH,
> Mike
>
>
> Kevin Spencer wrote:
> : Yes. It would require some custom server-side programming
> : in ASP, ASP.Net, or some less fabulous server-side
> : programming technology.
> :
> :
> : "jann" <jann@dial.pipex.com> wrote in message
> : news:uSjJGNRgEHA.3320@TK2MSFTNGP11.phx.gbl...
> :: Hi - is it possible to have an intro page which
> :: redirects to page A (and rest of site) for 99% visitors,
> :: but which redirects to page B for users from certain IP
> :: addresses?
> ::
> :: Thanks
>
>



Re: Redirection based on user IP by Mike

Mike
Fri Aug 13 11:56:13 CDT 2004

Clinton-
It was meant as a sample.

As you know, the OP did not provide all the info needed. If
it was the same scenario that I am in it would remove up to
64K addresses.

clintonG wrote:
: That was helpful Mike but the OP sounds as if a number of
: IP addresses need to be blocked. Your code as written
: will not scale.
:
: The OP should provide additional commentary to confirm,
: deny
: or clarify (what, how and why) and a refined solution may
: be possible to provide without a laborious effort that
: would otherwise require compensation.
:
:
: "Mike Mueller" <MikeMueller@ecinet.net.net> wrote in
: message news:e0MnepTgEHA.1188@TK2MSFTNGP11.phx.gbl...
:: Jann,
:: Here is a snip from my default.asp page which
:: redirects machines on my LAN to a page that has no
:: tracking or hit counter on it.
:: ----------------------------------------------------------------
:: <%
:: ' redirects work computer away from page with site
:: tracking
::
:: dim strIPAddress, strIPAddressShort
:: strIPAddress = Request.ServerVariables("Remote_Addr")
:: strIPAddressShort = left (strIPAddress, 7)
::
:: if strIPAddressShort = "192.168" then
:: response.redirect "default2.asp"
:: End If
:: %>
:: ----------------------------------------------------------------
:: HTH,
:: Mike
::
::
:: Kevin Spencer wrote:
::: Yes. It would require some custom server-side
::: programming in ASP, ASP.Net, or some less fabulous
::: server-side programming technology.
:::
:::
::: "jann" <jann@dial.pipex.com> wrote in message
::: news:uSjJGNRgEHA.3320@TK2MSFTNGP11.phx.gbl...
:::: Hi - is it possible to have an intro page which
:::: redirects to page A (and rest of site) for 99%
:::: visitors, but which redirects to page B for users from
:::: certain IP addresses?
::::
:::: Thanks



Re: Redirection based on user IP by Jeff

Jeff
Fri Aug 13 16:32:41 CDT 2004

Well.. it could block an ip.. sortof... can't you redirect to a page that
says something like "Your access has been denied"?? Based on an ip?
Jeff

"Mike Mueller" <MikeMueller@ecinet.net.net> wrote in message
news:OY0C5YVgEHA.3348@TK2MSFTNGP12.phx.gbl...
> Clinton-
> It was meant as a sample.
>
> As you know, the OP did not provide all the info needed. If
> it was the same scenario that I am in it would remove up to
> 64K addresses.
>
> clintonG wrote:
> : That was helpful Mike but the OP sounds as if a number of
> : IP addresses need to be blocked. Your code as written
> : will not scale.
> :
> : The OP should provide additional commentary to confirm,
> : deny
> : or clarify (what, how and why) and a refined solution may
> : be possible to provide without a laborious effort that
> : would otherwise require compensation.
> :
> :
> : "Mike Mueller" <MikeMueller@ecinet.net.net> wrote in
> : message news:e0MnepTgEHA.1188@TK2MSFTNGP11.phx.gbl...
> :: Jann,
> :: Here is a snip from my default.asp page which
> :: redirects machines on my LAN to a page that has no
> :: tracking or hit counter on it.
> :: ----------------------------------------------------------------
> :: <%
> :: ' redirects work computer away from page with site
> :: tracking
> ::
> :: dim strIPAddress, strIPAddressShort
> :: strIPAddress = Request.ServerVariables("Remote_Addr")
> :: strIPAddressShort = left (strIPAddress, 7)
> ::
> :: if strIPAddressShort = "192.168" then
> :: response.redirect "default2.asp"
> :: End If
> :: %>
> :: ----------------------------------------------------------------
> :: HTH,
> :: Mike
> ::
> ::
> :: Kevin Spencer wrote:
> ::: Yes. It would require some custom server-side
> ::: programming in ASP, ASP.Net, or some less fabulous
> ::: server-side programming technology.
> :::
> :::
> ::: "jann" <jann@dial.pipex.com> wrote in message
> ::: news:uSjJGNRgEHA.3320@TK2MSFTNGP11.phx.gbl...
> :::: Hi - is it possible to have an intro page which
> :::: redirects to page A (and rest of site) for 99%
> :::: visitors, but which redirects to page B for users from
> :::: certain IP addresses?
> ::::
> :::: Thanks
>
>



Re: Redirection based on user IP by Kevin

Kevin
Fri Aug 13 16:38:45 CDT 2004

That isn't necessary. IIS can be configured to block any IP address or
Domain Name.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Jeff" <gig_bam_takemeout_@verizon.net> wrote in message
news:OSBXO0XgEHA.1392@TK2MSFTNGP11.phx.gbl...
> Well.. it could block an ip.. sortof... can't you redirect to a page that
> says something like "Your access has been denied"?? Based on an ip?
> Jeff
>
> "Mike Mueller" <MikeMueller@ecinet.net.net> wrote in message
> news:OY0C5YVgEHA.3348@TK2MSFTNGP12.phx.gbl...
> > Clinton-
> > It was meant as a sample.
> >
> > As you know, the OP did not provide all the info needed. If
> > it was the same scenario that I am in it would remove up to
> > 64K addresses.
> >
> > clintonG wrote:
> > : That was helpful Mike but the OP sounds as if a number of
> > : IP addresses need to be blocked. Your code as written
> > : will not scale.
> > :
> > : The OP should provide additional commentary to confirm,
> > : deny
> > : or clarify (what, how and why) and a refined solution may
> > : be possible to provide without a laborious effort that
> > : would otherwise require compensation.
> > :
> > :
> > : "Mike Mueller" <MikeMueller@ecinet.net.net> wrote in
> > : message news:e0MnepTgEHA.1188@TK2MSFTNGP11.phx.gbl...
> > :: Jann,
> > :: Here is a snip from my default.asp page which
> > :: redirects machines on my LAN to a page that has no
> > :: tracking or hit counter on it.
> > :: ----------------------------------------------------------------
> > :: <%
> > :: ' redirects work computer away from page with site
> > :: tracking
> > ::
> > :: dim strIPAddress, strIPAddressShort
> > :: strIPAddress = Request.ServerVariables("Remote_Addr")
> > :: strIPAddressShort = left (strIPAddress, 7)
> > ::
> > :: if strIPAddressShort = "192.168" then
> > :: response.redirect "default2.asp"
> > :: End If
> > :: %>
> > :: ----------------------------------------------------------------
> > :: HTH,
> > :: Mike
> > ::
> > ::
> > :: Kevin Spencer wrote:
> > ::: Yes. It would require some custom server-side
> > ::: programming in ASP, ASP.Net, or some less fabulous
> > ::: server-side programming technology.
> > :::
> > :::
> > ::: "jann" <jann@dial.pipex.com> wrote in message
> > ::: news:uSjJGNRgEHA.3320@TK2MSFTNGP11.phx.gbl...
> > :::: Hi - is it possible to have an intro page which
> > :::: redirects to page A (and rest of site) for 99%
> > :::: visitors, but which redirects to page B for users from
> > :::: certain IP addresses?
> > ::::
> > :::: Thanks
> >
> >
>
>



Re: Redirection based on user IP by jann

jann
Sat Aug 14 06:29:31 CDT 2004

Thanks Kevin



Re: Redirection based on user IP by jann

jann
Sat Aug 14 06:29:51 CDT 2004

Thanks Mike