Serving a different website based on source internet address ?



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;

I can think of two ways how to do this in delphi in conjunction with a
webserver:

1. The classic CGI method. This means writing an executable.

2. The new .NET / Web application method.

Before I attempt to write something like that myself, I ask the members
of this newsgroup if they have any source code available or any web
development skills which might come in handy.

Maybe somebody can quickly write some demonstration code ?

Bye,
Skybuck.

.



Relevant Pages