project blog

digital diary of diverse diversions

20 September 2005

Automatic Polling of B2Evolution Antispam Update List

Written by Yours Truly ( Contact the author of this post )
Published on September 20th, 2005 @ 02:52:13 pm, using 220 words, 83 views

In b2evolution 0.9.x automatically updating the antispam database involves the creation of a local file which will process the new entries and add them to the database. First, create a file in your b2evolution blog's /admin/ folder (in this example we name the file b2antispam_poll.php) and paste the following code into it:

<?php
require_once( dirname(__FILE__) . '/../conf/_config.php' );
$login_required = false;
require_once( dirname(__FILE__) . "/$admin_dirout/$core_subdir/_main.php" );
require_once (dirname(__FILE__).'/'.$admin_dirout.'/'.$core_subdir.'/_functions_antispam.php');
b2evonet_poll_abuse();
?> 

Then, create the following crontab:

0 */6 * * * /path/to/php /path/to/blog/admin/b2antispam_poll.php

When CRON executes the b2antispam_poll.php file, the central antispam database is polled for new entries which are then entered into the local antispam database. Essentially, this process automates the task of updating the antispam list, eliminating the need for an administrator to manually keep the local antispam blacklist up to date.

(The above CRON syntax specifies that CRON will execute the b2antispam_poll.php file at the top of the hour, every six hours. Read this page for additional information on CRONtab syntax.)

Contemporaneous Auditory Narcotics:
or, What my speakers are currently pumping...
Quannum - I Changed My Mind
Bookmark this Post
b2evo, b2evolution, 0.9,x, blog, spam, antispam, blacklist, CRON, automatic, poll, PHP
scuttle co.mments Technorati del.icio.us digg SpyMy StumbleUpon backflip blinklist BlogMarks BlogMemes BuddyMarks Feed Me Links! FURL gravee Linkroll ma.gnolia netvouz Simpy Yahoo! My Web

Comments, Trackbacks, Pingbacks:

No Comments/Trackbacks/Pingbacks for this post yet...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))

project blog

A journal containing the assorted projects and diversions which occupy my interest, including such things as Photoshop graphic design and standards compliant web design, web development, advanced css layouts, photography and photo-manipulation... whatever...




Zeitgeist

Most-viewed Posts

Most-verbose Posts

Journal Summary

  • 45 posts written between 15 July, 2004 and 25 August, 2008
  • 49,590 total words
  • 176,046 total views since 30 July, 2007
  • 43 comments left by readers

Choose skin

  • Switch to the candleglow skin
  • Switch to the sojourn skin
  • Switch to the december skin
  • Switch to the viper_flats skin
  • Switch to the wheelz_blue skin
  • Switch to the route_53 skin
  • Switch to the lush skin
  • Switch to the ravehands skin
  • Switch to the underground skin
  • Switch to the vastitude skin
  • Switch to the tunnel_vision skin

Miscellany

XML Feeds

Users Currently Online

  • Yours Truly Email
  • Guest Users: 6

The Extras

Contact the admin     Engine: b2evolution     Hosting: Hostgator.com
Content Copyright ©2004-2008 TheDarksighed. All Rights Reserved.