How an HTTP Proxy works and How to Build one? (Node JS)

Поділитися
Вставка
  • Опубліковано 28 сер 2024
  • In this video I explain the details of a proxy and how to build an HTTP proxy with NodeJS
    Full HTTP Proxy Video • What is an HTTP Proxy?...
    🏭 Software Architecture Videos
    • Software Architecture
    💾 Database Engineering Videos
    • Database Engineering
    🛰 Network Engineering Videos
    • Network Engineering
    🏰 Load Balancing and Proxies Videos
    • Proxies
    🐘 Postgres Videos
    • PostgresSQL
    🚢Docker
    • Docker
    🧮 Programming Pattern Videos
    • Programming Patterns
    🛡 Web Security Videos
    • Web Security
    🦠 HTTP Videos
    • HTTP
    🐍 Python Videos
    • Python by Example
    🔆 Javascript Videos
    • Javascript by Example
    👾Discord Server / discord
    Support me on PayPal
    bit.ly/33ENps4
    Become a Patreon
    / hnasr
    Stay Awesome,
    Hussein

КОМЕНТАРІ • 46

  • @hnasr
    @hnasr  4 роки тому +22

    Jump to 5:15 for the code on how to build a proxy

    • @jeremyjames3190
      @jeremyjames3190 4 роки тому +2

      Hi, what's the real world usage of building proxy server like this?

    • @hnasr
      @hnasr  4 роки тому +4

      Jeremy James hey Jermey the proxies are used for caching, protocol upgrade, performance, rules rewriting and much more check out the proxy vs revese video ua-cam.com/video/ozhe__GdWC8/v-deo.html

  • @andreighita8762
    @andreighita8762 3 роки тому +4

    Great work, keep it going. You were borned to teach.
    I have a question: What app do you use to create the diagrams that you use at the beginning of your videos?

    • @crazct
      @crazct 2 роки тому +1

      either google slides or powerpoint

  • @tentacle_sama3822
    @tentacle_sama3822 3 роки тому +4

    Can we use http to mask our data usage
    For example to make all data usage seem to come from UA-cam

  • @jacksparr0w300
    @jacksparr0w300 2 роки тому

    omg that is amazing! I'm use this for keeping track of my cookies!

  • @glabett
    @glabett 2 роки тому +2

    My localhost connection refused to connect it says on chrome. Please help.

  • @danieldelgado5408
    @danieldelgado5408 4 роки тому +2

    why at the end doesnt show the pages you visit in the console, I mean beacause of the console.log comand at the end ? :c

  • @07joeljoy
    @07joeljoy 2 роки тому +1

    I'm not getting my http request hit the proxy. Only localhost:8000 reaches the proxy. I followed the same code you did in a Mac. What could I have missed?

  • @luzsthefanitavarez
    @luzsthefanitavarez 7 місяців тому

    Zeus Proxy has proven particularly useful for web scraping, crawling, and bulk account registration tasks.

  • @copdatchoppa
    @copdatchoppa 2 роки тому +4

    Could you maybe do a video on how to write an http reverse proxy in python please?

  • @amVinhBiet-yh4lt
    @amVinhBiet-yh4lt 8 місяців тому

    can a HTTP proxy provider read my files when i upload them to a website use HTTPs like Onedrive ? help me please !!!!

  • @air911
    @air911 3 роки тому +3

    I am just wondering, is changing your proxy through a code ( batch file ) possible. Like you have a list of proxies and you want to change them through a bat (batch) script would it work?

  • @saad.83
    @saad.83 4 роки тому +3

    Thank you Hussien all your videos are great! Was there a video about Reverse Proxy on Apache? Also a LoadBalancer on apache would be great!

    • @hnasr
      @hnasr  4 роки тому

      Thanks Saad! I didnt even know Apache could be a reverse proxy. I only made a video on how apache is a web server here ua-cam.com/video/JhpUch6lWMw/v-deo.html

    • @saad.83
      @saad.83 4 роки тому

      Hussein Nasser it could be both LB and Rproxy

  • @DennisSmdFreefightTrainer
    @DennisSmdFreefightTrainer Рік тому

    Explained it (with code) so simple that's so genius! Thx so much Sir

  • @Jayden-cz4dw
    @Jayden-cz4dw Рік тому

    Is this how a DNS is able to host multiple websites, by encapsulating/adding another IP address? Or am I completely off topic?

  • @ethicalhackingterminal5530
    @ethicalhackingterminal5530 Рік тому

    Have a nice 2023! I used to visit a https site but your proxy in firefox doesn't let me visit it any more. Is it a http and not a https?

  • @dixztube
    @dixztube 3 роки тому

    great video - made this very clear

  • @bhumit070
    @bhumit070 3 роки тому +1

    Balloonie ah you made me remember Phineas and ferb

  • @rcoder9507
    @rcoder9507 3 роки тому

    @Hussein how can we change the request body (content) in the proxy server and then make a post request on behalf of our proxy

  • @behnamparsaeifard3883
    @behnamparsaeifard3883 Рік тому

    great video. What if we want to pass the HTML response to the client through proxy?

  • @thexs1118
    @thexs1118 2 роки тому +1

    Does this work for HTTPS?

  • @cdxer
    @cdxer 10 місяців тому

    Please show how to make it work for HTTPS

  • @Odsku
    @Odsku 4 роки тому +2

    is there an way to make an https proxy?

    • @hnasr
      @hnasr  4 роки тому +1

      NoNamer Yes of course, here is how to build an HTTPS Proxy with NGINX
      NginX Crash Course (Layer 4 & Layer 7 Proxy, HTTPS, TLS 1.3, HTTP/2 & ua-cam.com/video/WC2-hNNBWII/v-deo.html
      Use chapters to skip to the HTTPS part

    • @ravindraprajapati468
      @ravindraprajapati468 4 роки тому +1

      @@hnasr i think that video on nginx not on https

  • @venicebeachsurfer
    @venicebeachsurfer 4 роки тому +1

    Why would, in this example, a server have a need to go thru a proxy for google? Why not just go directly to it? I am not understanding, in this example, why we need a proxy. I know its just an example, but it would help me understand better why we would need a proxy.

    • @hnasr
      @hnasr  4 роки тому +1

      Emanon one example is if google is blocked directly but the proxy has access to it. Another example for caching the results for faster access.
      Don’t think it has to be google it could be any website or service check this video
      Forward Proxy vs Reverse Proxy Server Explained
      ua-cam.com/video/SqqrOspasag/v-deo.html

  • @thegamer1234f
    @thegamer1234f 3 роки тому

    can u past the code? Nvm
    -edit also i have a problem when i type in localhost:8080 it says it wont connect
    -edit2 it gives me this error: crbug/1173575, non-JS module files deprecated.
    chromewebdata/(index)꞉7160:22:7374