[Koha-bugs] [Bug 8492] Restrict OpacSuppression to IP adresses outside of an IP range

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 24 14:09:00 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8492

--- Comment #6 from Mirko Tietgen <5p4m at gmx.de> ---
Data::Validate::IP could do these (and more) things

is_innet_ipv4
to see if ip is in network given in syspref

is_private_ipv4
to see if ip is private

Dependencies on Debian Squeeze are available
libdata-validate-ip-perl libnet-ipv6addr-perl libnet-netmask-perl
libnetwork-ipv4addr-perl

What are the rules for introducing perl modules/ dependencies?


It could be like this but would introduce a lot of sysprefs

option: use OpacSuppression yes/no
    option: match REMOTE_ADDR and network
        option: if exists, match X-Forward-For instead of REMOTE_ADDR
            option: only if REMOTE_ADDR is private IP

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list