Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Story
How we grew from 0 to 3 million users
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

I'm now VPS red pilled (and protecting with CloudFlare)

36.4K views
•
March 20, 2024
by
Web Dev Cody
YouTube video player
I'm now VPS red pilled (and protecting with CloudFlare)

TL;DR

The speaker switched from AWS CloudFront to a VPS and Cloudflare for better DDoS protection and cost management.

Transcript

so yesterday I talked about how you can potentially use Waf to protect your cloudfront distribution from dos attacks it turns out that that video is actually more of a lie because I got dosed again last night and you can see here we got another 128 million requests but I'm still charged for all those requests so if I go to my distribution and look ... Read More

Key Insights

  • 😶‍🌫️ DDoS attacks can significantly inflate costs when using cloud services like AWS, especially when protection measures are inadequate.
  • 👻 Transitioning to a VPS can offer a more manageable and cost-effective solution for hosting side projects influenced by malicious traffic.
  • 🈸 Docker facilitates application deployment, allowing developers to package their apps with all dependencies for greater consistency across environments.
  • 🚥 Using a reverse proxy like Caddy simplifies traffic management while providing SSL configurations for enhanced security.
  • 🥶 Cloudflare’s free service can effectively mitigate DDoS threats without incurring additional costs, making it ideal for smaller operations.
  • 😶‍🌫️ Setting up proper permissions for accessing cloud repositories is critical in a VPS-Docker setup to ensure seamless image pulling and deployment.
  • 🐕‍🦺 Custom DNS records and SSL certificates are essential in establishing secure connections between services when utilizing reverse proxies and CDNs.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: Why did the speaker decide to leave AWS CloudFront?

The speaker experienced continuous DDoS attacks that resulted in a significant billing increase despite WAF effectively blocking many requests. Ultimately, the costs incurred for a side project became unsustainable, prompting a switch to a VPS solution to manage expenses better.

Q: How does Cloudflare help in protecting against DDoS attacks?

Cloudflare offers a free DDoS protection service that functions as a reverse proxy for websites, intercepting malicious traffic before it reaches the original server. This setup shields the server from direct attacks and helps manage bandwidth and costs, making it particularly beneficial for smaller projects.

Q: What are the primary steps to set up a VPS with Docker for hosting a Next.js application?

First, create a Dockerfile provided by the Next.js guide, then build and push your Docker image to an Elastic Container Registry (ECR). Afterward, set up a VPS (e.g., Digital Ocean), install necessary software like Docker and AWS CLI, and utilize Docker Compose to orchestrate your services.

Q: What role does Caddy play in the setup described by the speaker?

Caddy acts as a reverse proxy in this scenario. It directs incoming traffic to the Docker container running the Next.js application while managing SSL certificates, ensuring secure HTTPS connections between the user, Cloudflare, and the VPS.

Q: What should someone consider when creating Dockerfiles for their applications?

It is crucial to include all necessary dependencies and build tools in the Dockerfile. The speaker mentioned needing to add g++, make, and cmake because the initial example was insufficient. Additionally, including a .dockerignore file is essential for optimizing image size.

Q: How did the speaker configure Cloudflare for their application?

The speaker set up DNS records on Cloudflare to route traffic to their VPS. They also performed SSL/TLS configuration, ensuring secure communication from the user to Cloudflare and then from Cloudflare to their server, enhancing overall application security.

Summary & Key Takeaways

  • The speaker discusses their recent experience with DDoS attacks on their AWS CloudFront distribution, leading to unsustainable costs despite WAF protection blocking significant requests.

  • After turning off CloudFront, they outline the steps taken to host their application on a VPS using Digital Ocean alongside Cloudflare for enhanced DDoS protection at a lower price.

  • The setup involves Docker for deploying a Next.js application, configuring a reverse proxy with Caddy, and integrating Cloudflare for secure DNS management and SSL certificates.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from Web Dev Cody 📚

How I setup pagination in my Next.js app (with Drizzle ORM) thumbnail
How I setup pagination in my Next.js app (with Drizzle ORM)
Web Dev Cody
How Does the MacBook Air M1 Compare for Coding? thumbnail
How Does the MacBook Air M1 Compare for Coding?
Web Dev Cody
Live Coding a Shopping Cart using React thumbnail
Live Coding a Shopping Cart using React
Web Dev Cody
I got my first DDoS (and what you can do to help prevent it) thumbnail
I got my first DDoS (and what you can do to help prevent it)
Web Dev Cody
How I'm doing authentication on my simple Go app (with Fiber) thumbnail
How I'm doing authentication on my simple Go app (with Fiber)
Web Dev Cody

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots
  • Open Graph Checker

Company

  • About us
  • Our Story
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.