1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Stopping spam

Discussion in 'PHP' started by kevbo22, Oct 26, 2009.

  1. #1
    I am having trouble stopping spammers on my site. I have set up captchas on my forum and register pages, that didnt stop them. I wrote a script that would ban ip addresses and save in database. If the ip is banned then that ip can not register a new account or login. That didnt stop them. All my spam is coming from the same two ip addressess. How are they getting passed these measures? Does anyone have a suggestion of what more I can do? My site is frontlinemassacre.com
     
    kevbo22, Oct 26, 2009 IP
  2. techbabu

    techbabu Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hii.

    Why you do that throuhg php? Do you have any firewall? and which OS you are using?

    TechBabu
    -------------
    Don't just make a website: Make an impact
     
    techbabu, Oct 27, 2009 IP
  3. Gungz

    Gungz Peon

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Why don't u block them from visiting your site.
    You already know the IP address right?
     
    Gungz, Oct 27, 2009 IP
  4. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Um it would seem to me that your script is not working correctly, if the spam is indeed coming from the same two ip addresses every time. Perhaps you should show us the code?
     
    premiumscripts, Oct 27, 2009 IP
  5. xenon2010

    xenon2010 Peon

    Messages:
    237
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    just block these 2 IPs..
    there must be an error with ur script..
     
    xenon2010, Oct 27, 2009 IP
  6. kevbo22

    kevbo22 Active Member

    Messages:
    149
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #6
    I have tested all this code by in fact blocking my own ip on the site and it works. I was unable to login and I was unable to create a new account. I will upload the code later today to see if any can tell me if I did something wrong.
     
    kevbo22, Oct 27, 2009 IP
  7. kevbo22

    kevbo22 Active Member

    Messages:
    149
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #7
    I have done this, yet they still get passed it.
     
    kevbo22, Oct 27, 2009 IP
  8. kevbo22

    kevbo22 Active Member

    Messages:
    149
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #8
    Additionally I would be more than happy to show you by blocking your ip from my site. just give me your ip and I will block it from my site and you can go see.
     
    kevbo22, Oct 27, 2009 IP
  9. youngone324

    youngone324 Peon

    Messages:
    125
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    do this
    <?php
    $ip = $_SERVER['REMOTE_ADDR'];

    $the_ips = use a query to get the ips from the database and use WHERE ip='$ip'
    $count = mysql_num_rows($the_ips);

    if($count == "1"){
    exit();
    }
    ?>
     
    youngone324, Oct 27, 2009 IP
  10. gacba

    gacba Peon

    Messages:
    75
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    What Captcha library are you using? ReCaptcha has a great one for PHP and it's pretty robust. I haven't had a single spam problem on my registration page since I installed it. Super easy to do, too. Probably was all of about 15 mins.
     
    gacba, Oct 27, 2009 IP
  11. kevbo22

    kevbo22 Active Member

    Messages:
    149
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #11
    I will try this and let you know. Thanks
     
    kevbo22, Oct 28, 2009 IP
  12. kevbo22

    kevbo22 Active Member

    Messages:
    149
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #12
    I couldnt tell you. It was a free one I found on hotscripts. It works but maybe bots can break it. But then again they souldnt be able to even get to my site after I block their ip. I will also look ito this. Thanks!
     
    kevbo22, Oct 28, 2009 IP