title: How to avoid being detected as bot on Puppeteer and Phantomjs?
body: <p>Puppeteer and PhantomJS are similar. The issue I'm having is happening for both, and the code is also similar.</p>
  
  <p>I'd like to catch some informations from a website, which needs authentication for viewing those informations. I can't even access home page because it's detected like a "suspicious activity", like the SS: <a href="https://i.imgur.com/p69OIjO.png" rel="noreferrer">https://i.imgur.com/p69OIjO.png</a></p>
  
  <p>I discovered that the problem doesn't happen when I tested on Postman using a header named <strong>Cookie</strong> and the value of it's cookie caught on browser, but this cookie expires after some time. So I guess Puppeteer/PhantomJS both are not catching cookies, because this site is denying the headless browser access.</p>
  
  <p>What could I do for bypass this?</p>
  
  <pre><code>// Simple Javascript example
  var page = require('webpage').create();
  var url = 'https://www.expertflyer.com';
  
  page.open(url, function (status) {
      if( status === "success") {
          page.render("home.png");
          phantom.exit();
      }
  });
  </code></pre>