Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

401
Views
Getting Checking your browser before accessing template and 503 status code with https.request(options,callback) node.js

I want to get the html of this page for parsing(click the link to understand what content i want to get).

750-bond list

Here's my code to request this page content

    var https = require("https");

    var fs = require("fs");

var options = {
    hostname: "www.prizebond.net",
    port: 443,
    path: "/dlist.php?num=455",
    method: "GET"

};

var response = "";

var req = https.request(options, function (res) {
    res.setEncoding("UTF-8");
    console.log(res.statusCode);
    res.on("data", function (chunk) {
        response += chunk;
    });

    res.on("end", function () {

        fs.writeFile("750-bond.html", response, function (err) {

            if (err) {
                console.log(err.message);
            }
            console.log("File downloaded");

        });
        console.log("end");

    });
});

req.end();

Now the problem is that in my 750-bont.html file, I am getting the weird the result of "Checking your browser before accessing the prizebond.net" not the original content. Here's the screenshot what I got when I open the 750- bond.html file in browser.

750-bond.html

What I am doing wrong? And how can I get the original content of this webpage?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You can't, unless you write something more sophisticated, but you probably shouldn't.

The purpose of Cloudflare-protection is to prevent what you are trying to realize unfortunately.

You could look into a possibility to access whatever you want to access by a public API or something that prizebond.net provides for example.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!