Index of /mt/extlib/blacklistupdater/
Name | Last Modified | Size |
---|---|---|
2019-12-04 23:31 | - | |
2008-04-08 04:17 | - | |
2025-09-05 03:31 | 25k | |
2004-10-14 03:00 | 4k |
Title: MT-Blacklist Updater
Summary: A simple PHP script that keeps your MT-Blacklist setup updated with
the latest blacklist.
Author: Cheah Chu Yeow (http://blog.codefront.net/)
Email: Please send comments, bug reports, etc. to redemption@codefront.net
Website: http://blog.codefront.net/scripts/blacklistupdater/
Version: 0.2
Date: 21 May, 2004
License: GNU General Public License
DESCRIPTION
A simple PHP script that updates your blacklist with changes from the
blacklist changes RSS feed (http://www.jayallen.org/comment_spam/feeds/blacklist-changes.rdf).
REQUIREMENTS
PHP
A server that supports cron (or similar scheduling functionality)
INSTALLATION
1. Unarchive the package you downloaded. It will unarchive into it's own
blacklistupdater/ directory.
2. Open updateblacklist.php in a text editor. Look for this line at the top:
define( 'SCRIPT_PATH', '/path/to/blacklistupdater/' );
Replace '/path/to/blacklistupdater/' with the full path to where
updateblacklist.php is found on your web server.
Look for these lines near the top:
$mt_username = 'YOUR_USERNAME';
$mt_password = 'YOUR_PASSWORD';
Replace 'YOUR_USERNAME' with your Movable Type username and 'YOUR_PASSWORD'
with the corresponding password. You can also create a new Movable Type
user for your blog without any posting rights for added security .
Next, look for this line:
$mt_blacklist_url = 'http://yourdomain.com/path/to/mt-blacklist.cgi';
Change this to point to the URL to your mt-blacklist.cgi file.
Save your changes.
3. Upload everything to your web server. To keep it simple, you should just
upload the blacklistupdater/ directory.
NOTE: this doesn't have to be placed under your webroot - place it
wherever you like. However, if you want to be able to run the script as
you like it (instead of depending on cron), you have to place it under
your webroot and just access http://yourdomain.com/blacklistupdater/updateblacklist.php
via a web browser.
4. You have to set up a cron job like
0 */2 * * * /path/to/php /path/to/updateblacklist.php
which will update every 2 hours. cPanel and other hosting control panels
often provide a cron job section which makes it easy to setup cron jobs.
You can also Google for cron job tutorials (http://www.google.com/search?q=cron+job+tutorial).
5. Update your MT-Blacklist with the latest master blacklist at
http://www.jayallen.org/comment_spam/blacklist.txt. Aaaaand you're done!
Sit back and let it work (yes, this time it works!).
DEPENDENCIES
MagpieRSS (http://magpierss.sourceforge.net/) is required (it's bundled with
the package you downloaded - there's no need to get it yourself).
Snoopy (http://snoopy.sourceforge.net/) is also required and the bundled copy
includes a bugfix courtesy of Gene Wood. More information can be found here:
http://sourceforge.net/tracker/index.php?func=detail&aid=852993&group_id=2091&atid=102091
COPYRIGHT:
Copyright(c) 2003 Cheah Chu Yeow. All rights reserved.
This software is released under the GNU General Public License.
Please read the disclaimers in magpierss/README and at the top of the
Snoopy.class.inc file.
Proudly Served by LiteSpeed Web Server at www.sfmn.net Port 443