Re: NKE filter
Re: NKE filter
- Subject: Re: NKE filter
- From: Joshua Graessley <email@hidden>
- Date: Tue, 6 Apr 2004 15:04:10 -0700
This is possible but not easy. I think the easiest solution might be to
have a userland process with an open socket. When the user attempts to
connect, you could change the address their connecting to to the
address your socket is listening on. Your socket would the receive the
connect and the data, you could respond accordingly.
If you won't know until after the connection has occurred, things get a
little trickier. One solution might be to always change the connection
so the socket connects to the local userland process instead of the
server it's attempting to connect to. You could probably communicate
the address the client was attempting to connect to and act as a proxy,
opening a connection from your userland process and then forwarding the
data in both directions. When you detect something you don't like,
don't forward the data from the server, forward the data from your file
instead.
Either way, it will involve fragile code that will break with future
releases of the operating system.
-josh
On Apr 5, 2004, at 5:41 PM, Matt Jaffa wrote:
>
Hi,
>
>
I was wondering if it is possible to somehow make the current web
>
browsers page
>
go to a file stored on the HD.
>
>
K, here is the explaination,
>
I have a NKE that is filtering at the socket level, If my app
>
determines that they are
>
not allowed to access that web page, I would like the web browser that
>
made the request
>
to redirect to either a local web page (prefered) or to a remote web
>
page.
>
>
Thanks,
>
Matt
>
_______________________________________________
>
darwin-kernel mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
>
Do not post admin requests to the list. They will be ignored.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.
References: | |
| >NKE filter (From: Matt Jaffa <email@hidden>) |