Tag: spam

  • Simpliest way to obfuscate e-mail address using jQuery

    Simpliest way to obfuscate e-mail address using jQuery

    Here is a simpliest jQuery code to protect e-mail addresses on your website from spam bots. Just put this in a script tag into the head section: $(window).load(function() { // anti spam var r=’random-string’; $(‘.’+r).each(function() { var $this = $(this), value = new String($this.text()); value = value.replace(‘[‘+r+’]’, ‘@’); $this.replaceWith($(”).text(value).attr(‘href’, ‘mailto:’+value)); }); }); Now replace random-string with any […]

  • PHP malicious code analysis no. 1

    PHP malicious code analysis no. 1

    I found this piece of a PHP malware code on a compromised web server that I started to administer. It’s name was random character string eg. acbjxuu.php. There were about 20 more scripts of this kind. It’s rather very simple script for spaming purposes. For your understanding I’ve wrote what it’s doing in comments between code […]