As reported, IPv6 addresses were not properly hidden in the public
facing moderation logs. This commit filters both IPv4 and IPv6
addresses.
We broke out into a separate function so that it can be tested with
the test suite.
A rudimentary test has been added to test the newly added
protect_ip($entry) function.