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

Change the number of page views (faking IP's does not work)

Discussion in 'PHP & Perl' started by nonono2, Aug 3, 2014.

  1. nonono2

    nonono2 Newbie

    Joined:
    Jun 15, 2014
    Messages:
    1
    Likes Received:
    0
    Hello,
    I would like to resend a request maybe 100 times (with random IPs) to test whether the views for that page increase or not.(the reason behind this is to increase the number of page views)

    How can I achieve this without "destroying" or flooding a page?

    I found something like this:
    I am using KALI Linux as well.

    Than I tried this, but it does not change the number of page views.
    PHP:
         <?php

      $count
    =0;
      
    $num=25;
      while(
    $count <$num){



     
    $curl=curl_init();
     
    $site="..."//insert web site

     
    curl_setopt($curl,CURLOPT_URL,$site);
      
    curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);


      
    $return=curl_exec($curl);
      
    curl_close($curl);

      echo 
    $count  ."-";
      if(
    $return)
      {echo 
    "It worked <br>";}

      
    $count++;
            }
     
    ?>
    This script works without any problems, but it doesn't change the number of page views(on this page), what improvement should/could be done here(may be using c#, javascript ... instead of php) ?

    I can use fiddler2, where shall I take a look at -what kind of request/responses that indicate the page view number or which are responsible for changing the number of the views ?

    Thanks...
     
  2. Lyscer

    Lyscer Junior Member

    Joined:
    Jun 29, 2012
    Messages:
    109
    Likes Received:
    46
    Occupation:
    Software Engineer
    You are going to need to hit the page from different IPs using a Proxy would be the easiest way to do this. There are a ton of free public proxies that you could test this theory with manually (hidemyass.com). If it works, then you will need to incorporate a proxy into your code to run the requests through various servers.
     
  3. bluehatface

    bluehatface Regular Member

    Joined:
    Oct 19, 2013
    Messages:
    232
    Likes Received:
    98
    Location:
    Here
    How does the website track pageviews? Adding more options to CURL to appear like a real visitor might do it - it might be filtering out spam requests.
     
  4. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    950
    Likes Received:
    662
    Occupation:
    Web/Bot Developer
    bluehatface is correct. Your requests do not look natural. Your CURL request is missing essential headers such as useragent, host, referrer, etc...