ONO::ToolBox::Security

Functions

apache_log_ip_analytics();

The apache logfile analyzer, as used by the ONO CronSync service and the ONO Admin application's Security screen.

This will generate lists (arrays) or IP addresses and IP ranges.

ONO::ToolBox::Security->apache_log_ip_analytics( $RULES_ref, $vars_ref, $CUSTOM_ref );

bad_bot_protection();

This allows to protect HTML content from evil clients in a very simple way - it either lets the content pass unmodified, or it replaces the content by a 404 (Page Not Found) message.

ONO::ToolBox::Security->bad_bot_protection( );
returns: $WEB

bad_bot_protection_msg();

This returns a simple 404 error message, as an HTML code snipplet.

ONO::ToolBox::Security->bad_bot_protection_msg( );
returns: qq~<div class="p20"><h3>404 - Page Not Found</h3></div>~

bad_bot_protection_test();

This will test if the User Agent points to an evil bot, or if the client IP address is in an evil range. If this returns 1, then it may be a good idea to limit or block client access.

ONO::ToolBox::Security->bad_bot_protection_test( );
returns: $test

Sub-Modules

none

Dependencies