|
|
|
|
![]() ![]() |
Dec 7 2007, 08:38 AM
Post
#1
|
|
|
Trap Grand Marshal Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 1,300 Joined: 11-January 06 From: Chennai, India Member No.: 16,932 |
I've developed a nifty small javascript file that will protect the email address in the webpages from spam bots.
all you need to do is to download safeMail from http://blog.delivi.info/get/safeMail include the javascript file in between the <head> & </head> tags in the following format. CODE <script type="text/javascript" src="PATH/safeMail.js"></script> here PATH is the location where you've uploaded the safeMail.js file then include the email address in your web page in the following format, CODE <span class="safemail">username [at] domain [dot] com</span> the class 'safemail' is used by the script to identify the mail address and generate the valid code as shown below. CODE <span class="safemail"><a href="mailto:username@domain.com">username@domain.com</a></span> the generated code will not be visible to the spam bots so you protect your email from spams. Please try this script and post your comments and suggestions here or at http://blog.delivi.info/javascript/safemail/ |
|
|
|
Dec 7 2007, 08:51 AM
Post
#2
|
|
|
Desperately seeking "any key" to continue... ![]() Group: Admin Posts: 3,434 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 |
the generated code will not be visible to the spam bots so you protect your email from spams. How can we be of certain? Is there a way to test this in the eyes of spam bot? Spam bots are getting better where they are able to read JAVA scripts in action. jlhaslip and I were in the middle of something similar to your quick and awesome email replacement using dynamic image--where your email address will show as jpg but to use it, the code would be very similar to yours. If spam bots truly cannot see the converted email address, you're sitting on a goldmine here delivi! Another thought: what about home based pc spammers? They use auto surf and programs to click all URLs on a site to collect email addresses. This won't be protected from these manual email collectors since a browser translates into a real email address...? |
|
|
|
Dec 7 2007, 08:58 AM
Post
#3
|
|
|
Trap Grand Marshal Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 1,300 Joined: 11-January 06 From: Chennai, India Member No.: 16,932 |
you are right BH, but the spam bots have a lot of information out there to crawl at, so they wont be wasting time running all the javascript codes. this will consume a lot of server power. So as of now we can be assured that the spam bots will not see as the email address is generated on the fly and they dont care to execute the javascript codings.
as about the human spammers I dont think that there is a proper solution for it. I was planning about the Image replacement, but it affects the usability and accessability of the email address. People prefer to click on the email and send message or atleast copy it. You cannot do both on an image. The best possible solution would be to use flash. |
|
|
|
Dec 7 2007, 09:47 PM
Post
#4
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 521 Joined: 9-February 07 Member No.: 38,519 |
Ok, I see what you guys are getting at, but couldn't you protect your email by using a PHP mailer function so that not even the regular users can find your email? I'm doing that right now, I just made a form for my users to send email to me with and I thought this would protect my email since PHP is executed servside, but I could be wrong.
|
|
|
|
Dec 8 2007, 12:55 AM
Post
#5
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 3,874 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
Ok, I see what you guys are getting at, but couldn't you protect your email by using a PHP mailer function so that not even the regular users can find your email? I'm doing that right now, I just made a form for my users to send email to me with and I thought this would protect my email since PHP is executed servside, but I could be wrong. I belive you are correct in your assumpitions about the Bots not gathering your email address via php server side scripting. If you look in my Siggy, there is a link to a page I have written that provides the code for an obfuscated mailto: link which you can place on to your page and I suspect that tyhe Bots are not *yet* able to find the email address from it. Gawd, I hate spam... |
|
|
|
Dec 8 2007, 01:48 AM
Post
#6
|
|
|
Ephesians 6:10-17 ![]() Group: [MODERATOR] Posts: 1,861 Joined: 22-June 05 From: The World of Gentoo Member No.: 8,528 ![]() |
Interesting code. But i must ask a question similar to BuffaloHELPs: How do we know there aren't spam bots that have an advanced form of digging out e-mails in a page? I mean, what if a spam bot was programmed to search out e-mails in the following syntax: username [at] domain [dot] com?
People prefer to click on the email and send message or atleast copy it. You cannot do both on an image. I don't know about that. Actually, i'ma see this as a challenge and try to create a script that makes use of an e-mail image that is clickable. I'll make a new topic on it if i can get it to work by any means possible. |
|
|
|
Dec 8 2007, 01:52 AM
Post
#7
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 190 Joined: 20-April 06 From: from the Dumpster in the back Member No.: 22,158 |
I agree with t3jem again.
Just make a form where clients can just fill out information, and sort out the weird ones. |
|
|
|
Dec 8 2007, 03:27 AM
Post
#8
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 494 Joined: 5-March 06 From: Warsaw, MO Member No.: 19,564 |
I agree with t3jem again. Just make a form where clients can just fill out information, and sort out the weird ones. i agree. i have been thinking about illiminating spam on my new upcoming website and all i could think of is to make a form for email. since i can mark all spam in bulk, all i have to do is go through it every day and do some upkeep. any good webmaster does this anyway. i wouldn't trust the javascript code that was posted vaguely. i went to the site and just too many holes in it. may illiminate some, just like creating a form, but not all. i haven't looked at how haslip has written his code. i'm going to take a peek and true fusion is exactly right. why i wouldn't trust it. if i wanted to create a bot, it would also be very general so i can capture what looks to be an address but isin't. if i send mail, it will just get ruturned and i delete it out of my database. but general in the terms with ".<all extensions>" would be really general but if i include it to look for an @ sign before the extension, then you have a really good bot and i wouldn't care if it picked up some text that wasn't an email address. i would know soon enough. i'm not too familiar with these dynamic graphic images, but these bots can pick up those now too i hear. i'm not an expert at programming now either though(used to be aside from the what i will probably end up doing with my form, i'd like to expand on the idea of the original poster. i don't know if this is possible, but create a jpg or gif image, allow it to be clickable, but create a script that encripts letters and numbers within the html code.....the bot will see the script, but not the algorythm, and what shows up on the site itself that's viewable would be different than what you see in the source code. anyway....did i confuse? well, i went to the site you listed in your sig and checked if you used the code for your email at the bottom....and yup! script seems to have holes in it as far as spam bot capabilities but i think out of all the scripts i've seen so far in researching, i have to say i like this one the best bust i am going to look at the script more closely. i have it saved. i'm rusty in a few areas and want to decipher it better. still wondering why someone can't just create something in a database that would decipher misc. code that is pasted in the html. i think you would have to force the visitor to a hidden page for the code to be triggered, but is this possible or am i just nuts and should put my thinking cap back on? nice code btw haslip. i don't know why you wouldn't be marketing it right now. it seems very efficient for what i have noticed and in another year, i doubt it will be of any use since i think the bots are going to become alot smarter within that time. or is this just a hobby of yours |
|
|