Tags: spam,php

Sort by: Date / Title /

  1. 4 months ago by sx
    1. <?   
    2.     function no_spam($mail) {   
    3.     $str = "";   
    4.     $a = unpack("C*"$mail);   
    5.     foreach ($a as $b)   
    6.     $str .= sprintf("%%%X"$b);   
    7.     return $str;   
    8.     }   
    9. //example
    10.     $mail = no_spam("ma@il.com");   
    11.     $link  = '<a href="mailto:'.$mail.'">Mail</a>'
    12.     echo $link;   
    13. ?> 
  2. 9 months ago by spirit
    For PHP4, use checkdnsrr instead of dns_check_record
    1. function isBlacklisted($ip){
    2.      $check = join('.',array_reverse(explode('.',$ip))).'.xbl.spamhaus.org.';
    3.      return dns_check_record($check,'A');
    4. }

First / Previous / Next / Last / Page 1 of 1 (2 posteets)