Link to Mod (http://mods.simplemachines.org/index.php?mod=107)
Install this mod to protect any email addresses on your forum from spammers, by transparently encoding email addresses using a slightly modified version of Spam-me-not (http://www.zapyon.de/spam-me-not/).
Example: @cszen.com becomes @cszen.com - a random mixture of decimal and hexadecimal notation that means exactly the same thing.
You can click an email link that is encoded like this and send an email to someone; exactly the same as it would be if it wasn't encoded. Also hides MSN account email addresses in MSN Messenger links.
This technique has been tested against a few commercial email harvesters and none of them found any email addresses encoded with this script. But they might, in the future. Still, this is better than nothing ;)
This method does not require JavaScript. In fact, it even works with non-graphical browsers. Andreas Neudecker (Spam-me-not's author) has tested it with elinks, w3m and lynx as well as the more popular, Mozilla/Netscape, Opera, and Internet Explorer browsers. And based on my own testing, it also does not affect Firefox in any way.
To install this mod (and many others): Download Spam-me-not1.0.1.zip (http://mods.simplemachines.org/index.php?a=download;mod=107;id=4952). Click Admin, then click Package Manager, then Download New Packages. Under Upload a Package, click Browse and find the Spam-me-not1.0.1.zip. Then click Upload and follow the prompts.
Note: Only tested with SMF 1.0.2 - The modification should work in previous versions, but the installer might not. If you get any problems, please reply (http://www.simplemachines.org/community/index.php?topic=29730.0) with your SMF/Spam-me-not version numbers, and I'll try to fix the problems as soon as possible.
I am the first one to try it.. :D
Just installed this mod and found one problem.
The require line is not added to the SSI.php file. That broke the rest of my site. When I added the code to the include file, it worked fine
require_once($sourcedir . '/Spam-me-not.php'); // Spam-Me-Not SMF Mod
Aah. How could I have forgotten that? Thanks, dufflepod. I've just released Spam-me-not 1.0.1 to fix that oversight. (Don't bother installing it if you've already corrected your SSI.php file)
Odd. I can't seem to edit my mod listing right now. Well, you can get it at http://www.cszen.com/mods/Spam-me-not1.0.1.zip
You can now get it at http://mods.simplemachines.org/index.php?mod=107 ;)
An [irc] tag certainly isn't a bad idea, but it seems like a bit of a pain to create a new tag for each and every protocol you want to support.
** Edit: Whooah... how did that happen? I was supposed to be replying to this (http://www.simplemachines.org/community/index.php?topic=28626.0) thread!
Looks like a bug. I was logged out and had this thread (spam-me-not mod) open in another tab, but I was viewing the irc:// thread and logged in (while viewing the irc:// thread still) and made a post there... but it ended up here. Tabs seem to be rather problematic. :)
Very nice project, hope the most will take advantage of this good module to not let spammers collect more email addresses than necessary.
Good luck with it in the future :)
I just installed it. Good work.
roxpace: your huge avatar is overlapping the borders of your post... Wonder if that's a bug with firefox or the display code.
Edit: now that I reply, it stops doing it. Strange.
Must be a Firefox theme bug since it shows up correctly in IE, but I can consider resize my avatar also, but an auto-resize in SMF would be better for such purposes with possibilities to see the real size.
/R
Thanks for the great feedback, roxpace & jitspoe, and yes, that's a Firefox bug. (Which has been fixed for the Firefox 1.1 release this summer, I believe.)
Mod listing edited :D
Quote from: Mattitude on March 19, 2005, 09:51:17 AM
Mod listing edited :D
Thanks, Mattitude. Sorry I didn't get to it earlier, I was busy with other projects.
So yes, now you can find the update at http://mods.simplemachines.org/index.php?mod=107
Quote from: Louis (CSpotkill) on March 19, 2005, 07:36:27 PM
Quote from: Mattitude on March 19, 2005, 09:51:17 AM
Mod listing edited :D
Thanks, Mattitude. Sorry I didn't get to it earlier, I was busy with other projects.
So yes, now you can find the update at http://mods.simplemachines.org/index.php?mod=107
No problem ;D
How can I check if this works :) ?
In Firefox (http://www.spreadfirefox.com/?q=affiliates&id=3558&t=61), browse to a forum topic or profile and click Page Source on the View menu. In the view-source window, click Find on the Edit menu, then type @ in the Find box, and click Find Next. If the Find toolbar says Phrase not found, it works.
In Internet Explorer, browse to a forum topic or profile and click Source on the View menu. In the Notepad window, click Find on the Edit menu, and type @ in the Find what box, and then click Find Next. If nothing is found, it works.
Then it works :) Great mod ;)
I get an error when trying to install, saying:
1. Execute Modification ./Sources/Subs.php Failure
I'm running these mods right now:
Faster Parsecode 1.07
Spoiler Tag 1.02
Download Center 1.5
G&S_Sticky 1.0
If you have any ideas how I can get this installed that'd be great!
Thanks...
nice work.. thnx ;)
One bug:
In function SpamMeNotLink it calls function encodeString instead of SpamMeNotEncode
how can i protect my members against spams? someone log to my site and send email to my entire members . How can i block all spams
Maybe by disallow the guests to not send emails directly to your users through your SMF ?
Make sure that this is disallowed by a selected X in:
Admin->Member Controls->Edit Permissions->Unregistred Members->Modify->Member Administration->Send a forum email to members
You could also select a D for deny.
Or if you have problems with people who is stupid enough to setup an account and use it for sending emails to your members through your smf application you can trace their IP and ban them.
Lookup their IP here:
Admin->Member Controls->View/Delete Members->(username) IP address
Ban their asses here:
Admin->Member Controls->Ban Members->Add new ban
Good luck!
Sincerely
/R
installed this mode and i got failure in all of the files to be modified, except subs now, when i try to delete, it won't show the 'uninstall' option, it tells me it is installed but i cannot uninstall it or fix it.
can you please help me how do i uninstall this or how do i fix it? thanks!
the Mod page says it's compatible with SMF 1.0.2. Has it been tested with 1.0.3?
TIA
i don't think it is. i have smf1.0.3 and it didn't work
OK thanks. I'll wait until it's confirmed to be working in 1.0.3.
Tested in 1.0.4 = no results/ email addy's remain the same
Do you have enable anything besides the standard upload package installation?
When I went to open my PM's I got the following message:
Fatal error: Call to undefined function: spammenotencode() in /home/echodoct/public_html/filmnutz/smf/Sources/Subs.php(1052) : regexp code on line 1
This is a brand new thing that I think either started today in the past 3 days. What should I do. I am using 1.0.4 and have a bunch of mods.
I am having the same problem.. It was working fine until I upgraded to 1.04 and now the e-mail addresses are unchaged, and when i try to view the member list I get
Fatal error: Call to undefined function: spammenotencode() in /home/virtual/site33/fst/var/www/html/board/Sources/Memberlist.php on line 386
Can anyone help me with this?
Travis
http://www.alaskastudio.com
When i install spam-me-not from package manager it give an error on Sources/Subs.php fail to install, well now i need to uninstall it, how i do this?
just replace all files of spam-me-not changes whit clean of smf 1.0.5 install package ?
I dont have installed other mods, my board is very clean installation of smf 1.0.4 and update to smf 1.0.5 yesterday.
Please ask me, thanks.
I upgraded to 1.0.5 and tried to install this mod. The only file that generates an error on attempting to apply it is the Subs.php file. I went ahead and applied the mods since everything else applied fine but what is the syntax (single quotes, back ticks, etc.) I need to use to manually paste the diffs into the Subs.php file?
Would love to see this released for 1.1 RC2
Same here. In fact, this should be default in SMF.
What would it take to get this to work with 1.1 RC2? I'm willing to take a shot at it if nobody else has done it.
Quote from: jitspoe on March 06, 2006, 02:56:02 AM
What would it take to get this to work with 1.1 RC2? I'm willing to take a shot at it if nobody else has done it.
Would be great ;)
You can do it!
Has the mod format changed at all, or do I just need to change the search strings to match what's in the new version of SMF?
Getting close... almost ready to do some testing and blow up my forum, hah.
Ugh. What gives? Everything checked out OK when I tried to apply (except in needed write access to some things, so I let it FTP in and do its thing). It said it was all fine and dandy, but...
... nothing happened. None of the files were modified, and the file it was merely supposed to copy over ended up being 0 bytes.
Edit: Posted about the problem in another thread. Today it suddenly decided to work, but I've found I still need to work on the mod. Don't use the link I posted earlier. It'll break your forum.
Well, I have it working manually. I just need to get the package together. I'm kind of curious about something carried over from the previous version:
'name' => &$profile['MSN'],
is replaced with:
'name' => SpamMeNotEncode($profile['MSN'],3), // Spam-Me-Not SMF Mod
Does anything depend on that being a reference? Will it break things later on? Why is it a reference in the first place?
Quote from: jitspoe on March 16, 2006, 08:58:04 PM
Well, I have it working manually. I just need to get the package together. I'm kind of curious about something carried over from the previous version:
'name' => &$profile['MSN'],
is replaced with:
'name' => SpamMeNotEncode($profile['MSN'],3), // Spam-Me-Not SMF Mod
Does anything depend on that being a reference? Will it break things later on? Why is it a reference in the first place?
What do toy mean by 'referance'? The MSN username is an email address so it needs to be encoded. The remark portion (following the "//") tells us who and why the line was modified.
The & is a reference. If I understand the PHP docs correctly, "'name' => &$profile['MSN']," means the 'name' element of the array and $profile['MSN'] both point to the same memory space. If you modify the value in one, it gets modified in both of them. I don't know why you'd need that in this case, but I didn't want it to break anything.
Anyway, I now have the mod package up and running on 1.1 RC2:
http://dpball.com/forums/Packages/Spam-me-not1.0.2.zip
I've successfully installed and uninstalled it twice without errors, and it appears to work.
Just discovered that the RSS feed emails weren't getting encoded. This has been fixed. Package is still in the same location:
http://dpball.com/forums/Packages/Spam-me-not1.0.2.zip
Quote from: jitspoe on March 17, 2006, 08:33:28 PM
The & is a reference. If I understand the PHP docs correctly, "'name' => &$profile['MSN']," means the 'name' element of the array and $profile['MSN'] both point to the same memory space. If you modify the value in one, it gets modified in both of them. I don't know why you'd need that in this case, but I didn't want it to break anything.
Anyway, I now have the mod package up and running on 1.1 RC2:
http://dpball.com/forums/Packages/Spam-me-not1.0.2.zip
I've successfully installed and uninstalled it twice without errors, and it appears to work.
I installed it but i have no idea how to config..
There's no configuration necessary. Once it's installed, it just scrambles the email addresses. Try putting an email address in a post, then go view the page source.
The Mod is Last Modified: March 19, 2005
Shall we have update for 1.0.5 , 1.0.6 and RC2?
I'm waiting for 1.0.5 update
Thanks!
Unfortunately I don't have 1.0.5 or 1.0.6 installed, nor the time to install them and try to make this compatible. Perhaps somebody else could take a look at it and make a 1.0.5/6-compatible version.
Quote from: jitspoe on March 17, 2006, 09:54:20 PM
Just discovered that the RSS feed emails weren't getting encoded. This has been fixed. Package is still in the same location:
http://dpball.com/forums/Packages/Spam-me-not1.0.2.zip
Thank you. Works like a dream.
Can we get the mod page updated? I think this mod is ready for public use.
Edit: lol, tried to get a moderator's attetion, but failed:
QuoteAn Error Has Occurred!
You can't report your own post to the moderator, that doesn't make sense!
so this mod works for 1.1RC2? if it does then this should be added to the mods list now. hopefully a moderator sees this and act on it ...
So the function of this mod works without any configuration on our part? Just install and enable and your done?
Quote from: Skipdawg on May 02, 2006, 11:19:54 AM
So the function of this mod works without any configuration on our part? Just install and enable and your done?
yeah, I guess
Quote from: geezmo on May 01, 2006, 09:03:54 PM
so this mod works for 1.1RC2? if it does then this should be added to the mods list now. hopefully a moderator sees this and act on it ...
jitspoe will need to resubmit this to the mod site for it to get on the mod site.
Hmm doesn't seem to work for me, but there was no problem during installation. Installed it properly, found no test failures, in Admin Panel it's listed as installed but the email addresses did not change a bit. Tried in both Firefox and IE but same results, not working. I wonder what's wrong?
For me, using 1.1 rc2, it worked on the fly.
What's the supposed effect of the mod? Will email addresses posted in the forum be changed into an image file? I tried to install this and got a confirmation that it went well, but when I looked at the typed email adds, it seems that nothing happened, the actual email add is still visible and it's also clickable. Hmm or probably it's already working but I just don't know that it already is?
If you read the last two or three pages of posts, you'll find that
A) there is no config neccesary, which means there is no AP entry, and
B) it munges the e-mail addresses, meaning that it changes the source code so that harvester bots can't read the address, while maintaining a readable format when displayed. You will not see any change unless you delve into the source code.
yeah i've read that there's no config necessary but i just can't be sure that the mod works. ok you say, it just munges the email adds so the bots won't be able to read them. where can i check this? like i want to see how the email add looks before the mod is installed and how this code will change after the mod is installed. i just want to confirm myself that the mod is working.
Once Spam-Me-Not is installed, view (or create) a post on your board that has an e-mail address in the body of the post. Right click in the page and selecte the option "View Source" or "View Source Code". Locate the email address within the code (this is fairly easy if you search for the phrase immediately preceeding the address).
Example:You post something like "You can e-mail me at
[email protected]"
You view the source, search for "You can e-mail me at"
Once you locate the code, you should see something like:
You can e-mail me at <a href="mailto:lau
fe@ccocom">
laud1;4life
@ccocom</a>
Instead of
You can e-mail me at <a href="mailto:[email protected]">[email protected]</a>
Cool, it works now. Thanks!
This really is great. It should be incorporated into SMF by default! ;)
Wonderful. I had 20+ mods already installed. And this one installed without error. I verified that it works.
Smart people rule.
I tried to submit it as a new mod, but it gave me this:
QuoteAn Error Has Occurred!
The package id given matched another mod's package id. The package id is required to be unique.
Quote from: jitspoe on June 27, 2006, 07:23:24 PM
I tried to submit it as a new mod, but it gave me this:
QuoteAn Error Has Occurred!
The package id given matched another mod's package id. The package id is required to be unique.
You will have to change the package ID.
This works in 1.1 RC2 without error?
http://dpball.com/forums/Packages/Spam-me-not1.0.2.zip
this one, yes :)
Quote from: EJG on June 28, 2006, 01:53:03 AM
This works in 1.1 RC2 without error?
Was about to ask the same thing ;)
Quote from: Planet SMF on July 04, 2006, 07:58:20 PM
Quote from: EJG on June 28, 2006, 01:53:03 AM
This works in 1.1 RC2 without error?
Was about to ask the same thing ;)
I've had no issues with it on 3 forums. ;)
Works like a charm.
Is this working for RC3 too?
RC3 results in:
Quote1. Extract File ./Sources/Spam-me-not.php
2. Execute Modification ./index.php Test successful
3. Execute Modification ./SSI.php Test successful
4. Execute Modification ./Sources/Display.php Test failed
5. Execute Modification ./Sources/Load.php Test successful
6. Execute Modification ./Sources/Memberlist.php Test failed
7. Execute Modification ./Sources/News.php Test successful
8. Execute Modification ./Sources/Subs.php Test failed
Quote from: chadk on September 15, 2006, 10:22:25 AM
RC3 results in:
Quote1. Extract File ./Sources/Spam-me-not.php
2. Execute Modification ./index.php Test successful
3. Execute Modification ./SSI.php Test successful
4. Execute Modification ./Sources/Display.php Test failed
5. Execute Modification ./Sources/Load.php Test successful
6. Execute Modification ./Sources/Memberlist.php Test failed
7. Execute Modification ./Sources/News.php Test successful
8. Execute Modification ./Sources/Subs.php Test failed
I believe I got the same results when I tried it yesterday on RC3.
Any word for RC3? ;D
Would be nice to have this for RC3 but would be a major plus if it was for sure in 1.1 final at least. ;D
I will likely wait until 1.1 final to make an update. It was a lot of work to get all my mods and tweaks working with 1.1 RC2 and I don't feel like going through it again too soon. If somebody else wants to take a shot at it, though, the necessary changes are probably trivial. I just don't feel like updating my forums so I can try it out. :)
I'll try updating it.
Strange... I was able to install the mod on 1.1 RC3 without any modifications - I just tried it, and everything modified successfully with no errors.
I just tried installing 1.1 RC3 on my laptop to test it out, and the mod installed and functioned properly. You might have another mod that is conflicting with it somehow.
Louis,
I just installed the Mod on smf 1.0.8 and installation was fine but the second I try to move around the board I get the following error.
Fatal error: Cannot redeclare encodestring() (previously declared in /home/content/R/e/z/RezaLaleh/html/smf/Sources/Subs.php:1228) in /home/content/R/e/z/RezaLaleh/html/smf/Sources/Subs.php on line 1267
Is there anyway I can get my board back? I had done tons of work and I would hate to see it go down the tube.
Your help is appreciated.
Thankss
And I did not make any backups :'(
Sounds like encodestring() was already defined from another mod, or perhaps you somehow installed it twice? I'd open up Subs.php and search for it. If there are two encodestring() functions that do the same thing, just delete one of them.
Is this going to be updated for 1.1 Final?
Does it not currently work with 1.1 final? I'm currently having some issues with the server that hosts my forums, so it might be a while before I can fix anything.
Edit: Also, that was the server hosting the file. Anybody have a copy lying around that they could share?
I installed this mod, had to remove the double encodeString() function.
This mod changes my email to nnper8&#. When I click on it Outlook Express opens a new message to nnper8&#. But sending it fails??
Strange. What browser are you using? Looks like that last "&#" might be causing problems.
I'm using IE6.
What happens if you use a different browser, such as Firefox or Opera?
Amazing modifications - definitely way ahead of its time.
Is there a way to extend this mod to become a BBCode for anything, not just emails?