D
danielhamd
Here is my setup:
I have a hosts file setup on the users machine that takes, for
example, www.youtube.com and redirects it to 127.0.0.1. On the local
machine is an IIS server that I would like to handle this youtube
request. So far so good, I can get the request for www.youtube.com
and print out something like "You tried to access www.youtube.com"
from Default.aspx. However, what about the case when a user tries to
access http://www.youtube.com/video1.aspx or
In these cases the IIS server returns "Resource not found" or
something similar, depending on the document being requested.
My question is, how do I set up asp.net and the IIS server to handle
all requests, so I can have it then say "You tried accessing
."
If this isn't clear in some way please let me know and I'll elaborate.
Thanks!
-Daniel
I have a hosts file setup on the users machine that takes, for
example, www.youtube.com and redirects it to 127.0.0.1. On the local
machine is an IIS server that I would like to handle this youtube
request. So far so good, I can get the request for www.youtube.com
and print out something like "You tried to access www.youtube.com"
from Default.aspx. However, what about the case when a user tries to
access http://www.youtube.com/video1.aspx or
something similar, depending on the document being requested.
My question is, how do I set up asp.net and the IIS server to handle
all requests, so I can have it then say "You tried accessing
If this isn't clear in some way please let me know and I'll elaborate.
Thanks!
-Daniel