Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks
I want to allow a script to run only if it is physically inside a specific domain. Let's say that the script should work only if it is on a computer which is inside the network of the University of Wien (www.univie.ac.at). In order to do so, the script needs to read the network/domain in which the computer is (As you can see from the terms I am using, I am really a non-expert in all these IP & co. matters, but I am fairly okay in Perl programming ;). At the moment I can read the IP with the following:
use warnings; use Net::Address::IP::Local; print my $address = Net::Address::IP::Local->public;
Is the ip adress I am getting here stable enough to allow me to check if the computer is inside the university network over a longer period of time? If not, what is the best way to check it? Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Running script only within a specific domain/network
by haukex (Archbishop) on Jul 19, 2017 at 11:07 UTC | |
Re: Running script only within a specific domain/network
by cavac (Prior) on Jul 19, 2017 at 11:10 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |