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

Competitor pushing fake traffic to my site?

Discussion in 'White Hat SEO' started by robibrk, Jun 1, 2015.

  1. robibrk

    robibrk Regular Member

    Joined:
    Aug 23, 2009
    Messages:
    321
    Likes Received:
    121
    Okay folks, i have installed a week ago analytics to my site, that is starting ranking for medium competition KW in a high competition niche. What i discovered is, that 70% of all my traffic is direct and comes form unidentified source, of course with 0 page views and 0 seconds on the site. I am sure, there a competitor playing a dirty game to reduce my user experience, that my site is providing and as we know this is one of the crucial factors. Since analytics not showing the IP i can't figure out from where is this traffic coming. All filters showing no data, even for the screen resolution, but i had luck to figure out the browser that was used- chrome 40.0.2214.111.

    That's all what i have right now. How can i trap his IP? Or there is any other option to block him out from my site?
     
    Last edited: Jun 1, 2015
  2. Musudan

    Musudan Newbie

    Joined:
    Oct 14, 2014
    Messages:
    19
    Likes Received:
    4
    Use wpfence plugin.
     
  3. robibrk

    robibrk Regular Member

    Joined:
    Aug 23, 2009
    Messages:
    321
    Likes Received:
    121
    I am using this already, but sames this traffic is not even real and affects only the GA stats. I have researched a lot for this issue in past days. There are as well other referral tricks from some russian guy to trick your GA stats.
     
  4. Madrid4you

    Madrid4you Junior Member

    Joined:
    Feb 1, 2015
    Messages:
    173
    Likes Received:
    30
    Does his action increases your bounce rate? Drops in the keyword rankings?
     
  5. Content Mario

    Content Mario Junior Member

    Joined:
    Mar 24, 2015
    Messages:
    128
    Likes Received:
    24
  6. SEOZone Agency

    SEOZone Agency Junior Member

    Joined:
    Mar 19, 2015
    Messages:
    147
    Likes Received:
    24
    As someone asked above.. what is the traffic doing - is it affecting your bounce rate badly?
     
  7. TZ2011

    TZ2011 Senior Member

    Joined:
    Jun 26, 2011
    Messages:
    833
    Likes Received:
    865
    It is very simple thing to do with PHP, even basic login would do a job.


    - Make a folder Logs
    - Make a file logger.php and save this code inside

    Code:
    <?
    $log="log.txt";
    $ip = $_SERVER['REMOTE_ADDR'];
    $cookie = $_SERVER['QUERY_STRING'];
    $rem_host = $_SERVER['REMOTE_HOST'];
    $rem_port = $_SERVER['REMOTE_PORT'];
    $user_agent = $_SERVER['HTTP_USER_AGENT'];
    $rqst_method = $_SERVER['METHOD'];
    $file = fopen($log,'a+' ) ;
    
    echo fwrite($file, "IP: $ip \nPORT: $rem_port \nHOST: $rem_host \nAgent: $user_agent \nMETHOD: $rqst_method \nCOOKIE:  $cookie \n\n" ) ;
    fclose($file);
    ?>

    Script will make text file with logs. You can //uncomment lines that you don't need.

    To include script, put it in header of all pages that you want to track, or if you use some content management system put it in header, or main file that is included in each page (for example, in wordpress you can include it in wp-blog-header.php)

    - Folder Logs put in the root of domain folder (for example, if you use wordpress put the folder Logs where the wp-admin, wp-content, wp-includes are located)
    - If you use wordpress, open file wp-blog-header.php in good text editor and include next code in very first line, immediately after <?php :


    Code:
    <?php
    require_once $_SERVER['DOCUMENT_ROOT'].'/Logs/logger.php';

    refresh page few times, open the folder and inside should be text file with logged details.