• Hello all,

    About 10 days ago I suddenly started getting about 60 daily visitors from a URL called ”simple-share-buttons.com”. Of course these all bounce straight off and my ranking is getting completely screwed! The users come from different urls, such as:
    – site37.simple-share-buttons.com
    – site33.simple-share-buttons.com
    – site18.simple-share-buttons.com

    You get the idea. I tried putting this in the custom CSS:
    $blocked_domains[] = ‘simple-share-buttons.com’;

    function bounce_losers() {
    if(isset($_SERVER[‘HTTP_REFERER’])) {
    $referring_domain = parse_url($_SERVER[‘HTTP_REFERER’]);
    $referring_domain = $referring_domain[‘host’];
    if(in_array($referring_domain, $blocked_domains)) {
    header(“Location: “.$_SERVER[‘HTTP_REFERER’]);
    die();
    }
    }
    }

    add_action(‘init’, ‘bounce_losers’);
    ?>

    But this was not succesful.
    Anybody has any hints?

    Thanks for your time and effort! Have a good day,

    /Pieter Dingemans

Viewing 1 replies (of 1 total)
  • You can’t put PHP code in a CSS file, and even if you could, that wouldn’t do what you’ve wanted because by then they’ve already created a hit to the page by the time they’ve loaded that.

    It’s best to block them through your .htaccess file. Google .htaccess blocking bots for more info.

Viewing 1 replies (of 1 total)
  • The topic ‘My site has a problem’ is closed to new replies.