new: event_email_bot_obfuscator - Test it!

Creating and modifying plugins.
Post Reply
stm999999999
Regular
Posts: 1517
Joined: Wed Mar 08, 2006 12:25 am
Location: Berlin, Germany
Contact:

new: event_email_bot_obfuscator - Test it!

Post by stm999999999 » Tue Nov 17, 2009 11:56 pm

Hi!

I make my first plugin from scratch! :D

Code: Select all

Markup: clickable email adresses - but with antispam
Makes email addresses clickabe, but obfuscates them to block spam harvester bots


http://blog.stephan.manske-net.de/uploa ... scator.zip

it would be nice if someone with experience can have a look at it.

But I have one little problem:

after uploading AND installing the plugin, going to the list of installable plugins, my plugin is twice times in the list!

http://img696.imageshack.us/slideshow/w ... ntwice.png

some differences:

  • pointing the mouse over the first plugin item, it gets a grey background (like the other plugins) for it. pointing on the second: the first one gets grey not the second one!
  • the link on the second install button is very strange: "serendipity[pluginpath]=" is empty, "[install_plugin]=" starts with a "@"
and simetimes the first plugin has no "allready installed" while it is of course.

any idea?
Ciao, Stephan

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: new: event_email_bot_OBFUSCATOR - but problem in plugin-list

Post by garvinhicking » Wed Nov 18, 2009 9:27 am

Hi!

DO you have a copy of that plugin somewhere? If it starts with a "@" it would mean that s9y regards it as an internal plugin...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

stm999999999
Regular
Posts: 1517
Joined: Wed Mar 08, 2006 12:25 am
Location: Berlin, Germany
Contact:

Re: new: event_email_bot_OBFUSCATOR - but problem in plugin-list

Post by stm999999999 » Wed Nov 18, 2009 5:03 pm

I do not know where I should have a copy.

My watching:

If I delete the directory of this plugin via ftp in my webspace, the plugin disappears in the list of installable plugins (both appearances). And I have a plugin with errors in my installed list

Fehler: serendipity_event_email_bot_obfuscator:7473eb5xxxxx

I delete this.

I go to the list installable plugins, there is no item of my plugin.

I upload my plugin via ftp to /s9y/plugins/

again: going to the list installable plugins:

there is ONE occurrence of my plugin, with:

Code: Select all

serendipity[adminModule]=plugins&serendipity[pluginPath]=serendipity_event_email_bot_obfuscator&serendipity[install_plugin]=serendipity_event_email_bot_obfuscator


I install it. works perfect.

again: going to the list installable plugins:

NOW there are the two plugin entries for my plugin - like on the images in the first post.

one: "bereits installiert"
one: serendipity[adminModule]=plugins&serendipity[pluginPath]=&serendipity[install_plugin]=@serendipity_event_email_bot_OBFUSCATOR

AND: Waiting some minutes, going to the list of installable plugins there are still two entries but this time (like on the first image here: http://img696.imageshack.us/slideshow/w ... ntwice.png) both have an install-me-button! of course in truth it is still installed). Reloading the page, there is the correct "bereits installiert" (already installed) again.

Is it possible that there is an error in the plugin-code?
Ciao, Stephan

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: new: event_email_bot_OBFUSCATOR - but problem in plugin-list

Post by garvinhicking » Wed Nov 18, 2009 5:34 pm

Hi!

Is OBFUSCATOR in the end really spelled in lowercase at the one time and in uppercase in the other? Is your filename uppercased? That could be a problem, s9y usually works with lowercasing...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

stm999999999
Regular
Posts: 1517
Joined: Wed Mar 08, 2006 12:25 am
Location: Berlin, Germany
Contact:

Re: new: event_email_bot_OBFUSCATOR - but problem in plugin-list

Post by stm999999999 » Wed Nov 18, 2009 5:58 pm

Yes, it is.

And that was the fault! :D

my class name was

Code: Select all

class serendipity_event_email_bot_OBFUSCATOR extends serendipity_event


corrected that, everything works fine! :D :D :D

so, there is the working version:

http://blog.stephan.manske-net.de/uploa ... scator.zip

Should somebody test it first or do you want to upload it directly to the repository? (if yes, I want to change the version to 1.0 before)
Ciao, Stephan

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: new: event_email_bot_OBFUSCATOR - but problem in plugin-list

Post by garvinhicking » Wed Nov 18, 2009 6:41 pm

Hi!

Great :)

Maybe we can wait a few days and then commit it, if thats okay with you? Do you have CVS access and want to commit it on your own?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

stm999999999
Regular
Posts: 1517
Joined: Wed Mar 08, 2006 12:25 am
Location: Berlin, Germany
Contact:

Re: new: event_email_bot_OBFUSCATOR - but problem in plugin-list

Post by stm999999999 » Thu Nov 19, 2009 12:11 am

Maybe we can wait a few days and then commit it, if thats okay with you?


no problem

so, folks: Test it! :D

Do you have CVS access and want to commit it on your own?


I do not - and I think CVS is a riddle wrapped up in an enigma to me :oops:
Ciao, Stephan

stm999999999
Regular
Posts: 1517
Joined: Wed Mar 08, 2006 12:25 am
Location: Berlin, Germany
Contact:

Re: new: event_email_bot_obfuscator - Test it!

Post by stm999999999 » Tue Nov 24, 2009 1:52 am

any test reports meanwhile?
Ciao, Stephan

User avatar
onli
Regular
Posts: 2265
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: new: event_email_bot_obfuscator - Test it!

Post by onli » Tue Nov 24, 2009 10:52 am

I'm not totally sure what's the pupose of this. Which email is obfuscated and how exactly?
sincerely

stm999999999
Regular
Posts: 1517
Joined: Wed Mar 08, 2006 12:25 am
Location: Berlin, Germany
Contact:

Re: new: event_email_bot_obfuscator - Test it!

Post by stm999999999 » Tue Nov 24, 2009 9:03 pm

ok, testing the documentation is testing, too :-)

the plugin has two main features:

a) like a "make a link clickable" for www-Links you can write a mail@example.com without any html-code into a post or a static page. The plugin detects this and convert it to

Code: Select all

<a href="mailto:mail@example.com>mail@example.com</a>


b) many people fear about address-harvester-bots. So I found two alternatives to "hide" a address from this bots - but without using such crapy non-accessible things like text-as-an-image:

(ok, in the moment I have a test: two adresses, one obfuscated one clear-text, on a good visited page - in the last months no spam to any of this adresses)

1) a javascript builds the address on the fly:

Code: Select all

<script type="text/javascript">var username = "mail"; var hostname = "example.com";document.write("<a href=" + "mail" + "to:" + username + "@" + hostname + ">" + username + "@" + hostname + "<\/a>")</script>


2) IMHO much better - using html entities, so every browser will display it normal, but as I was told, harvester will have their problems:

Code: Select all

<a href="mailto:m&#97;i&#108;&#64;&#101;xa&#109;ple&#46;com">mai&#108;&#64;&#101;xa&#109;&#112;&#108;e.com</a>



3) or doing nothing :-)

TODO:

use function b) for the mail-adress of a commentar or so
Ciao, Stephan

stm999999999
Regular
Posts: 1517
Joined: Wed Mar 08, 2006 12:25 am
Location: Berlin, Germany
Contact:

Re: new: event_email_bot_obfuscator - Test it!

Post by stm999999999 » Thu Dec 10, 2009 2:34 pm

OK, no panic messages from testers, so Garvin, can you upload it to spartacus, please?

http://blog.stephan.manske-net.de/uploa ... or-1.0.zip

I bump the version number to 1.0 and add an helpfile until last version.
Ciao, Stephan

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: new: event_email_bot_obfuscator - Test it!

Post by garvinhicking » Thu Dec 10, 2009 2:45 pm

Hi!

Thanks, committed!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Post Reply