Ban users that pounder really hard on your site. More...
Functions | |
mo_anti_pounding_settings_setup_ok () | |
Determine whether this file was properly included. |
For the anti-pounding module to actually work, this file needs to be included at the bottom of your settings.php file with the following PHP code:
<?php // Run the anti-pounding routines include './sites/all/modules/mo_anti_pounding/settings.inc'; ?>
The earlier in the file the better since you do not need to run anything else before this module code (except if you still want to somehow track all the hits, but make sure you do not start your database system.)
http://www.m2osw.com/mo_anti_pounding contact@m2osw.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
mo_anti_pounding_settings_setup_ok | ( | ) |
When this file is included at the right time cache_get() is not yet defined.
The first call (made from this script) determines whether the file was included at the right place. Later calls always return the same result.
Referenced by mo_anti_pounding_status().