Blocking

Discussion in 'PHP' started by dannywwww, Dec 26, 2007.

  1. #1
    Hi i own a rpg game site but i have problems with spamming from other competitors and they mail users there url to there sites and so on i can easyly block ips but then they can access thou proxy and spam that way is there away to replace like www. and http ect. and some sites and replace them with other words and so on hope ya can help would really appreciate this thank you.....:)
     
    dannywwww, Dec 26, 2007 IP
  2. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #2
    Use php str_replace:

    
    echo str_replace(array('http://www.','http://','.com'),'',$message);
    
    PHP:
    Peace,
     
    Barti1987, Dec 26, 2007 IP