Results 1 to 7 of 7

Thread: How to STOP Bots!

  1. #1
    Experienced vBulletin User
    Join Date
    Jul 2007
    Posts
    244

    How to STOP Bots!

    Ok, my site isnt even a week old and i have already had one bot spam it, i have the sign up code and everything, how do i stop them?

  2. #2
    Experienced vBulletin User Noppid's Avatar
    Join Date
    Jan 2005
    Posts
    2,946
    This is what I did. Stop Spam Bots

    I did it at the server level.

    If you don't have your own server, maybe your host would install the php API at least?

    It was well worth the effort for us. But it may not be easy to get installed for folks on shared hosting.

  3. #3
    Experienced vBulletin User
    Join Date
    Jul 2007
    Posts
    244
    Quote Originally Posted by noppid View Post
    This is what I did. Stop Spam Bots

    I did it at the server level.

    If you don't have your own server, maybe your host would install the php API at least?

    It was well worth the effort for us. But it may not be easy to get installed for folks on shared hosting.
    hey what's up noppid if you want to sign up on my UN-FINISHED site, i'll make you an admin finally. (I'll PM you the link)

  4. #4
    New to vBFAQ
    Join Date
    Sep 2007
    Posts
    11
    Hi noppid.

    Just had a look at your thread @ http://www.cpurigs.com/forums/showthread.php?t=4189
    I get the updates from maxmind for GeoIP targeted advertising. I noticed you said that you tried PHP before opting for htaccess blocking. Is that just preference or because of server load?

    Was thinking of trying something similar with the pluggin I hooked up to global_start


    PHP Code:
    if (!isset($_COOKIE[COOKIE_PREFIX 'GeoIP']))
    {

    include(
    "/home/geoip.php");
    $GeoIP geoip_open("/home/geoip.dat",GEOIP_STANDARD);
    $countryCode getCountryCode($GeoIP$_SERVER['REMOTE_ADDR']);
    geoip_close($GeoIP);

    vbsetcookie('GeoIP'$countryCodepermanent);

    }
    else
    {
       
    $countryCode $_COOKIE[COOKIE_PREFIX 'GeoIP'];


    ...and then just use $countryCode to block.



    You've obviously tried this, any advice?

  5. #5
    Experienced vBulletin User Noppid's Avatar
    Join Date
    Jan 2005
    Posts
    2,946
    I had no problems on php4 with the mindmax php extensions and used them exactly as you had, but without the cookie. The cached DB and the 400K per second queries possible in the DB made me confident. I'm not getting millions of hits anyway. I wish I was.

    However, once I went to php5.2.3, the php interface, even after compiling it by hand, just would not work.

    That's when I went after the apache mod_geoip.

    The php implementation also meant a snipped of code on every page on the site.

    So anyway, to answer your question, it turned out to be a performance issue, it's faster in apache, out of necessity for my needs. I didn't go the apache mod route for the performance, it was the only method that would work for me.

    I need food. My mind is mushy I think. Did that make sense?

    EDIT:
    AH HA. It just hit me where you were going.

    Yes, the apache mod is faster. You can grab the variables you need in php site wide then too. Just follow the compile advice and make your ENV vars look like HTTP_GEOIP_COUNTRY_CODE instead of plain GEOIP_COUNTRY_CODE.

  6. #6
    New to vBFAQ
    Join Date
    Sep 2007
    Posts
    11
    made perfect sense LOL thanks



    (how annoying is the forum moderation :cry: )

  7. #7
    New to vBFAQ
    Join Date
    Aug 2007
    Posts
    11
    You may wanna use some of this within your .htaccess:

    Code:
    SetEnvIf User-Agent "compatible ;" keep_out
    SetEnvIfNoCase User-Agent "^(Agent¦\ Agent¦AnsearchBot¦\ AnsearchBot¦Bot¦\ Bot¦cfetch¦\ cfetch)" keep_out
    #RewriteCond %{HTTP_USER_AGENT} ^Mozilla.*(Seekbot¦Septera¦ServerGear¦Sextant¦SezamFile) [NC,OR]
    #RewriteCond %{REMOTE_HOST} \.(exabot\.com¦cuill\.com¦exava\.com¦fast\.no¦fastclick\.net¦fastsearch\.net)$ http://127.0.0.1/ [R,L]
    This helps out a lot too!

Similar Threads

  1. Help stop google bots and spiders
    By RobbieZ in forum Setting up and Customizing your Forum
    Replies: 4
    Last Post: 05-19-2009, 08:16 PM
  2. Stop the unwanted from registering . . .
    By pts123 in forum vBulletin Discussion and Questions
    Replies: 19
    Last Post: 04-15-2009, 06:24 PM
  3. HOW so many bots?
    By Caddyman in forum vBulletin Discussion and Questions
    Replies: 12
    Last Post: 06-02-2007, 08:48 PM
  4. How to stop session IDs
    By Dave A in forum SEO Discussion For Your vBulletin
    Replies: 5
    Last Post: 01-18-2007, 02:11 AM
  5. Suggestion: How To, Stop the Spam
    By High Octane in forum vBulletin FAQ Announcements, Information and suggestions
    Replies: 3
    Last Post: 06-11-2005, 06:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •