Spambot Email Protector v2.00 Released

10 posts by 5 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: May 2, 2011   (RSS)

By Dave - November 3, 2010

Hello All,

We've converted our previous product 'Spambot Email Protector' to be a CMSB Plugin. You can read all about it here:
http://www.interactivetools.com/add-ons/detail.php?Spambot-Email-Protector-1032

Basically you just activate the plugin and it automatically encodes email addresses on any of your viewer pages to prevent spambots from getting them and sending you spam.

You can add it to any php page (or .html page you've renamed .php) by just including the standard CMS viewer_functions.php file and it just works. Even with other PHP software.

This all came about after a thread in the CMS Builder forum a while ago where the community was asking about easy ways to protect email addresses.

We did some research and couldn't find anything we liked, so we built our own.

Please give this product a try and post any questions, feedback, suggestions. We're excited to hear what you think.

PS: If you've previously purchased the non-plugin version just email me direct at dave@interactivetools.com and tell me your add-on store email address and I'll give you access to download the plugin.

Thanks!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Spambot Email Protector v2.00 Released

By Maurice - November 4, 2010

that is cool great work
-------------------------------------------

Dropmonkey.nl

Re: [Dave] Spambot Email Protector v2.00 Released

Superb idea

Great improvement.

So elegant.

So necessary

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [Dave] Spambot Email Protector v2.00 Released

By Djulia - April 27, 2011

Hi Dave,

I need to deactivate the plugin to export a list in a XML file.

Also, is there a function which makes it possible to deactivate a plugin ?

For example : 'spambotEmailProtector' => false,

Thanks for your suggestion! :)

Djulia

Re: [Djulia] Spambot Email Protector v2.00 Released

By Dave - April 27, 2011

Hi Djulia,

Do you mean disable it temporarily? Such as with PHP code? Or disable it from the CMS?
Dave Edis - Senior Developer
interactivetools.com

Re: [Djulia] Spambot Email Protector v2.00 Released

By Dave - April 27, 2011

Hi Djulia,

It doesn't do that, but we can make it do it. :)

In spambotEmailProtector.php replace this:
if ( !defined('IS_CMS_ADMIN')) {

With this:
if ( !defined('IS_CMS_ADMIN') && !@$GLOBALS['SEP_DISABLED'] ) {

And then set this "before" the code you need it disabled for:
<?php $GLOBALS['SEP_DISABLED'] = true; ?>

Let me know if that works for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Spambot Email Protector v2.00 Released

By Djulia - April 27, 2011

It is perfect!

My file xml is valid now !

Thank You again ! :)

Djulia

Re: [Dave] Spambot Email Protector v2.00 Released

By gkornbluth - April 28, 2011 - edited: April 30, 2011

Hi Dave,

I’m using the spambot email protector 2.0 plugin on V2.07, but the same problem occurs when I tried using the email protector as a standalone.

I’m pulling a list of emails from the records in a database, and listing them, 24 at a time, inside a series of <div>s.

Unless I’m missing something, when I look at the source code of the generated web page, only the first email address in each <div> gets encrypted.

Here’s the active code in the head:
<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php


if (!defined('START_SESSION')) { define('START_SESSION', true); }
// load viewer library
$libraryPath = 'cmsAdmin/lib/viewer_functions.php';
$dirsToCheck = array('/hsphere/local/home/gkornblu/mysite.com/','','../','../../','../../../');
foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }
if (!@$_SESSION['username']) { header("Location: http://mysite.com/cmsAdmin/admin.php?redirectUrl=" . $_SERVER['REQUEST_URI']); exit; }

// load records
list($publcity_listingsRecords, $publcity_listingsMetaData) = getRecords(array(
'tableName' => 'publcity_listings',

));

list($common_informationRecords, $common_informationMetaData) = getRecords(array(
'tableName' => 'common_information',

'limit' => '1',
));

$common_informationRecord = @$common_informationRecords[0]; // get first record
?>


And in the body:
<div align="center"><b>EMAIL ADDRESS LIST
</b><br />
In groups of <?php echo $common_informationRecord['max_emails'] ?> e-mail addresses each.
<br />
Copy each group to the BCC: field of your e-mail.
</div>
<div align="center" >
<div align="left"><hr color="#<?php echo $common_informationRecord['line_color'] ?>" />
<br />
<?php $count = 0; ?><?php $count2 = 0; ?>
<?php foreach ($publcity_listingsRecords as $record): ?>
<?php if ($record['email_address']): ?><?php $count2++; ?>
<?php echo $record['email_address'] ?>;&nbsp;
<?php endif ?>
<?PHP $maxemails= $common_informationRecord['max_emails'];
if (@++$count % $maxemails == 0): ?>
</div>
<div align="left"><br />
<hr color="#<?php echo $common_informationRecord['line_color'] ?>" />
<br />
<?PHP endif; ?>
<?php endforeach ?>
<br /><br />
<hr color="#<?php echo $common_informationRecord['line_color'] ?>" /><br />
</div>

<div align="center">There are <?php echo $count2 ?> email addresses in your list
</div>

<div>
<hr color="#<?php echo $common_informationRecord['line_color'] ?>" />
</div>
</div>


Any ideas?

Thanks,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Spambot Email Protector v2.00 Released

By Jason - May 2, 2011

Hi Jerry,

Could you fill out a [url http://www.interactivetools.com/support]2nd Level Support Request[/url] with a link to a page demonstrating this problem so we could take a closer look?

thanks
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/