Resticting ports to a given interface (ie localhost)....
Brian Yennie
briany at qldlearning.com
Wed Apr 21 23:01:50 EDT 2004
I don't know of a direct way in Rev to disallow outside connections,
but you could probably do it at script level:
accept connections on port xxx with message "newconnect"
...
on newconnect s
if peerAddress(s) is not "127.0.0.1" then close socket s
else
...
end if
end newconnect
HTH
> Using accept connections is there any way to restrict the connections
> to come from localhost (ie a particular interface)?
>
> Should I use:
>
> open socket to "127.0.0.1:732" with message "newconnect"
>
> Rather than accept?
More information about the use-livecode
mailing list