IMPORTANT:
- Before you proceed with the installation make sure you have a complete backup of your blogCFC installation.
There are five steps you need to take in order to get this plugin working;
Part one (see below)
- 1. Get a free access key from Project Honeypot
- 2. Download the zip and unzip it
- 3. Configure/modding your blo
Part two (see this page)
- 4.Configure the plugin
- 5.Limit access to the bad guys
1) Get a free access key from Project Honeypot
Go to
this page, create an account and request a (12-character) access key. Easy enough.
2) Download the zip and unzip it
Download the zip from
this page and unzip it into your existing blogCFC installation making sure that the directories are correct. (eg files in the zip's 'client' dir should end up in your blog's 'client' dir, files in the zips 'org' dir should end up in your blogs 'org' dir, etcetera)
3) Configure/modding your blog
This is where it gets a slightly more complicated, but if you managed to get BlogCFC up and running, this should be peanuts as well.
a) set up the extra table in your database.
The zip file contains an install folder. In this folder you will find a mysql.sql file, a sqlserver.sql file, and two Oracle files . Pick the one you plan on using it and set up the extra table manually, using your favorite db admin program. Add the table to the database you use for your BlogCFC installation.
Note: I have not been able to test the Oracle files. They might contain errors and if that is the case please let me know and I will correct them. There is also no included Access version. You have to add the table yourself when you use Access. See the sqlserver.sql file for details about what fields are needed.
b) modify your blogCFC installation
Open client\application.cfm and look for the following section:
<!--- load slideshow --->
<cfset application.slideshow = createObject("component", "org.camden.blog.slideshow").init(slideshowdir)>
Replace with:
<!--- load slideshow --->
<cfset application.slideshow = createObject("component", "org.camden.blog.slideshow").init(slideshowdir)>
<!--- load and init plugins --->
<cfset application.plugins.spamstop = createObject("component", "org.plugins.spamstop.spamstop").init(dsn=application.blog.getProperty("dsn"), username=application.blog.getProperty("username"), password=application.blog.getProperty("password"),blog=blogname)>
In the same file look for (near bottom)
<!--- Used to remember the pages we have viewed. Helps keep view count down. --->
<cfif not structKeyExists(session,"viewedpages")>
<cfset session.viewedpages = structNew()>
</cfif>
replace with:
<!--- Used to remember the pages we have viewed. Helps keep view count down. --->
<cfif not structKeyExists(session,"viewedpages")>
<cfset session.viewedpages = structNew()>
</cfif>
<!--- spamstop plug-in --->
<cfif not structKeyExists(session,"spamstop") or isDefined("url.reinit")>
<cfset session.spamstop = application.plugins.spamstop.honeypotcheck(cgi.REMOTE_ADDR)>
</cfif>
Open client\tags\adminlayout.cfm
look for:
<li><a href="settings.cfm">Settings</a></li>
replace with:
<li><a href="settings.cfm">Settings</a></li>
<li><a href="spamstopsettings.cfm">SpamStop settings</a></li>
Save your modded files and once you reinit your blog, the plugin should function. That is, it should not throw any errors. It doesn't do anything yet because it still needs to be configured. See
part two; configuring the plugin.