28, May 2012

A php - javascript script to avoid spammers - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: A php - javascript script to avoid spammers
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: A php - javascript script to avoid spammers  (Read 2324 times)
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« on: Aug 29, 2005, 10:21:58 pm »

Here is the script :

Code:
<?php
$mail
="mymail@mydomain.com";

$code="<script>var mail=String.fromCharCode(";
for(
$i=0$i<strlen($mail); $i++) $code.=ord($mail[$i]).",";
$code=substr($code,0,-1).");document.write('<a href=\"mailto:'+mail+'\">'+mail+'</a>');</script>";

print(
$code);
?>
« Last Edit: Aug 30, 2005, 02:37:21 pm by Nikolas »

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Raped By Google
*
Posts: 27
178 credits
Members referred : 1



« Reply #1 on: Nov 15, 2005, 11:26:18 pm »

Too simple, and really effective.

Thanks for sharing Nikolas!

Smiley
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #2 on: Jun 20, 2006, 01:57:49 pm »

Also check the above thread which has some good directives for Apache that dissallows access to known spam bots :

http://www.webdigity.com/index.php/topic,1453.0.Apache+%3A+Get+rid+of+spam+bots.html

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Jun 20, 2006, 02:00:33 pm »

Also check the above thread which has some good directives for Apache that dissallows access to known spam bots :

http://www.webdigity.com/index.php/topic,1453.0.Apache+%3A+Get+rid+of+spam+bots.html

offtopic: are there limits about how much rules will slowdown a website?

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #4 on: Jun 20, 2006, 02:04:55 pm »

Yeah those can slow down a site, but not too much.

For example topsites, with more than 1200 unique visitors per day and all of those rules + astatspam rules is working fine.

But I think that this works better with Apache 2.x instead of 1.3 without being sure for that.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=37
Tags : php javascript referer spam apache spam Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: A php - javascript script to avoid spammers
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 03:09:43 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.