This post indicates that C# has a function HttpContext.Current.Request.IsLocal to do what I need, but I have been unable to find anything similar in perl.
:) great, let me try
net is local, web is local, http is local, lwp is local,
net is local, web is local, http is local, lwp is local,
Wow, nothing on the mark :)
Well, you could use (on not windows) IO::Interface::Simple to enumerate the available local IP, then compare against the remote url ...
But its easier to prevent recursion by keeping track of visited urls
In reply to Re: How can I determine whether a URI, hostname or IP address is to the local host machine?
by Anonymous Monk
in thread How can I determine whether a URI, hostname or IP address is to the local host machine?
by dbooth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |