1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to keep bots away from my website

Discussion in 'Blogging' started by CeaseFireBlack, Jul 5, 2015.

  1. CeaseFireBlack

    CeaseFireBlack Regular Member

    Joined:
    Jun 10, 2015
    Messages:
    425
    Likes Received:
    154
    guys, daily i get 20 bots subscribing to my website, which is very annoying, how to avoid them ? thank you
     
  2. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    12,633
    Likes Received:
    11,302
    Occupation:
    CHEAP
    Location:
    DATASETS
    Home Page:
    It's a game of cat and mouse. You gotta find footprints by the bots and block them somehow. Normally, unless your site is in Asia, you can block big chunks of IP address space.
     
  3. dadiaar

    dadiaar Newbie

    Joined:
    Mar 7, 2013
    Messages:
    31
    Likes Received:
    9
    Occupation:
    Ecommerce
    Location:
    China
    20 bots each day is nothing, they are not targeting you, just crawling the web and filling random info.

    If you don't want to take the time to put a real captcha or hire a filtering service, you can just add a simple frontpage javascript captcha like this:

    HTML:
    <form>
    ...
    <p id="hint"></p><input id="captcha" type="text"></input></p>
    <input id="submit_form" type="submit" value="send" disabled>
    </form>
    
    
    
    <script type="text/javascript">
        var rand1 = ;
    
        var rand2 = ;
    
        $(document).ready(function(){
    
            rand1 = Math.floor((Math.random() * 10) + 1);
    
            rand2 = Math.floor((Math.random() * 10) + 1);
    
            $('#hint').text(rand1.toString() + ' + ' + rand2.toString() + ' = ' );
    
        }) 
    
        $('#captcha').on('input', function() {
    
            if (parseInt($(this).val()) == rand1 + rand2) {
    
                $('#submit_form').prop('disabled', true);
    
            }
    
            else{
    
                $('#submit_form').prop('disabled', false);
    
            };
    
        });
    
    </script>
    
    
    I didn't test it, and I'm pretty pretty sure it has many bugs, just keep the idea.
     
  4. saltedweb

    saltedweb Junior Member

    Joined:
    Aug 9, 2014
    Messages:
    118
    Likes Received:
    2
    i think Recomanded Ips Schem use to rid the issue
     
  5. aleksandarMKD

    aleksandarMKD Newbie

    Joined:
    Jul 15, 2015
    Messages:
    44
    Likes Received:
    4
    There are two ways to ban a robot, either by banning all accesses from a particular site or by banning all accesses that use a specific id to access the server.To deal with pernicious bots, there are tools that allow you to block them Once you've identified one or more IP addresses to block, enlist a firewall service or use your existing one.Enter as many IP addresses as you wish to block.
     
  6. breck

    breck Registered Member

    Joined:
    Oct 10, 2011
    Messages:
    96
    Likes Received:
    12
    I blocked them with .htaccess in the past.

    Search for "block bots .htaccess" there is a great video that helped me but I can't find it at the moment.

    For new bots, install a capcha as someone said above.
     
  7. Redsox218

    Redsox218 Newbie

    Joined:
    Jul 15, 2010
    Messages:
    14
    Likes Received:
    0
    Yup, you can block them in the htaccess file. There are also plugins out there i.e. Spider Spanker that can do this too.
     
  8. andreaklarin

    andreaklarin Jr. VIP Jr. VIP

    Joined:
    Jun 23, 2015
    Messages:
    160
    Likes Received:
    18
    Hello dear,
    To remove the unwanted bots is like removing the pests from the world. For that you have to
    1) Identify the bots IP address.
    2) Download the .htaccess file.
    3) create the .htaccess file.

    Good Luck.
     
  9. fatboy

    fatboy Elite Member

    Joined:
    Aug 13, 2008
    Messages:
    1,618
    Likes Received:
    3,232
    Occupation:
    Retired
    Location:
    Old Peoples Home
    Put a decent captcha on the registration page - not a text based one, image based. For example, the ones that say click on all the cats etc.

    That will knacker most bots!
     
  10. HoneyHelper

    HoneyHelper Supreme Member

    Joined:
    Jun 29, 2015
    Messages:
    1,474
    Likes Received:
    388
    try deathbycapetcha .....