Re: Serving a different website based on source internet address ?




"Skybuck" <skybuck2000@xxxxxxxxxxx> wrote in message
news:1156886161.001179.233460@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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


.



Relevant Pages