Serving a different website based on source internet address ?

  • Thread starter Thread starter Skybuck
  • Start date Start date
S

Skybuck

Hello,

Based on the source internet address a different version of the website

should be presented/served to the user/browser.

For example in pseudo code:

if SourceAddress = '143.3.5.1' then
begin
ShowBlueWebsite; // Load/Show BlueIndex.htm
end else
if SourceAddress = '124.5.15.7' then
begin
ShowRedWebsite; // LoadShow RedIndex.htm
end;

Is this possible with visual basic dot net ? is there any source code
available to do this trick ?

Bye,
Skybuck.
 
Skybuck said:
Hello,

Based on the source internet address a different version of the website

should be presented/served to the user/browser.

For example in pseudo code:

if SourceAddress = '143.3.5.1' then
begin
ShowBlueWebsite; // Load/Show BlueIndex.htm
end else
if SourceAddress = '124.5.15.7' then
begin
ShowRedWebsite; // LoadShow RedIndex.htm
end;

Is this possible with visual basic dot net ? is there any source code
available to do this trick ?

You should be able to do this by writing an HTTP handler. Here's a quickstart:
http://www.asp.net/QuickStart/aspnet/doc/applications/httphandlers.aspx
 
Back
Top