using webrequest and webresponse classes

J

Jensen bredal

I have an asp.net web site which give access to computers based on approved
IP numbers.

One of the approved IP has a web site that need to include a page in my web
site as
an Iframe/frame .

The problem is that i do not want to grant access to my web site to all
these computers requesting pages on my approved customers web site.

I know that the Iframe will cause the users of my "friend site" to open
an http connection to my site . And That will fail because
their IPs are not allowed to connect to my site.


I have the feeling that {WebRequest, Webresponse } can be used at my
"friend site" to request my page and solve the problem.

The idea here is that the "friend site" get the page from my site somehow
fill in the
frame/Iframe? .

I just don't clearly see how that could be done.

Can someone tell me how this problem can be solved?

Many thanks in advance

JB
 
N

Nicholas Paldino [.NET/C# MVP]

Jensen,

They would basically have to make the request of your site, and you
would see their web server as the IP that is making the request, not the
client. The web server would then have to channel that response back to the
user.

For simple requests, this is fine, but if you have session state,
cookies, etc, etc, it will become considerably harder.

I don't understand why you don't allow the access to the site directly.
I can understand wanting to limit access, but if someplace else (which can
access the site) is just going to regurgitate your site, then it seems
rather roundabout to create this proxy.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top