Painel de Notícias

Tecnologia

7045 posts · 26 feeds · tópicos e interesse por Jev

Filtros
dev.to

Sending And Receiving Webhooks In Laravel

A customer deploys their app at 14:00. Their webhook endpoint is down for four minutes while it happens. Your app sends them invoice.paid at 14:01, gets a 502, waits ten seconds, gets another, waits a hundred, gets a third, and gives up. Their invoice stays unpaid in their system. Nothing anywhere says so. Both sides did what their code told them to. The sender retried three times, which sounds generous until you notice it spent less than two minutes doing it. The receiver went down for a deploy, which every receiver does. Neither half was written with the other in mind. That is how most webhook code in Laravel apps gets written: one end at a time, by people who will never read the other end. A webhook is a contract between two codebases that never meet, so start with the contract. Three things have to be true of every delivery, whoever sends it: It carries an identifier that stays the same across retries, so the receiver can tell a retry from a new event. It carries a timestamp, and the signature covers it, so a request captured today cannot be replayed next week. The signature is computed over the exact bytes of the body, so nothing has to agree on how JSON is formatted. You can invent headers for that, and most providers did. I would rather use Standard Webhooks, a spec written by people who run webhook infrastructure, because it is small and it already says all three. It also means the receiver may have done this before. POST /webhooks/billing HTTP/1.1 Content-Type: application/json webhook-id: msg_01J9Z3K4M5N6P7Q8R9S0T1V2W3 webhook-timestamp: 1791295260 webhook-signature: v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4= {"type":"invoice.paid","timestamp":"2026-10-06T14:01:00Z","data":{"id":"inv_8842"}} The signature is HMAC-SHA256 over {id}.{timestamp}.{body}, base64 encoded, prefixed with a version. The secret is 32 random bytes, base64 encoded with a whsec_ prefix so it is recognisable when it leaks into a log. That is the whole format. The event has to exist

Dev
Interesse
dev.to

Strangling Procedural Legacy PHP into Laravel

The big bang rewrite is the most confident decision an engineering team can make and one of the worst. The pitch is always reasonable. The current system is slow to change, everybody agrees it is slow to change, so we pause feature work, rebuild it properly, and come back in six months with something maintainable. What actually happens is that month four arrives, the business needs a feature the old system can still deliver and the new one cannot, and the rewrite is either shipped half finished or quietly abandoned. Now you have two systems to maintain instead of one. That risk goes up when the thing you are replacing is not on an older framework. Migrating Symfony 2 to Laravel is unpleasant but legible. There are controllers, there is routing, there is a service container, and you can map concepts across. A procedural monolith gives you none of that. You get global state read straight out of $_GET and $_POST, mysqli_query calls interleaved with HTML, header('Location: ...') scattered through business logic, and includes that pull in half the application as a side effect. There is no seam to grab hold of, which is exactly why people conclude the only option is to start again. There is another option. Put Laravel in front of the old application, migrate one route at a time, and let the procedural code carry on serving everything you have not reached yet. This is the strangler fig pattern, named after the vine that grows around a host tree, gradually takes over its structural role, and leaves a hollow shell behind. The important detail is that at no point during that process is the tree unable to stand. The first move is deciding who owns the incoming request. It has to be Laravel, and it has to be Laravel from day one, even when Laravel is handling exactly zero routes. The web server serves Laravel's public directory as the document root. Anything Laravel does not recognise falls through to the legacy entry point. As you migrate an endpoint, it stops falling through,

Dev
Interesse
dev.to

Building Bulletproof Laravel APIs using Schema-First Contract Validation

Most Laravel APIs I review have the same shape. There is a controller, there is a FormRequest, and somewhere in a folder nobody has opened in four months there is an OpenAPI file that stopped being true around the third sprint. The validation rules and the documentation describe two different APIs, and the only way to find out which one is real is to send a request and see what comes back. That gap is not a documentation problem. It is an architecture problem. We treat the contract as an output of the code, something we generate afterwards to keep consumers happy, when the contract is the one part of an API that consumers actually depend on. They do not depend on your Eloquent models. They do not depend on your Action classes. They depend on the shape of what they send you and the shape of what you send back. Schema-first flips that relationship. You write the contract first, and everything else in the request response lifecycle is derived from it or checked against it. The schema validates the incoming payload, the schema shapes the response, and the schema is what your test suite asserts against. One source of truth, three consumers. I want to be clear that I like FormRequests. They are a good boundary. The issue is what they do not do. Take a fairly ordinary request class: final class StoreLeadRequest extends FormRequest { public function rules(): array { return [ 'email' => ['required', 'email', 'max:255'], 'company' => ['required', 'string', 'max:255'], 'source' => ['required', 'string', 'in:web,referral,event'], ]; } } Now send this body: { "email": "steve@example.com", "company": "Example Ltd", "source": "web", "is_admin": true, "score": 100, "internal_notes": "ignore this" } That request passes validation. Laravel does not care about the extra keys, because rules describe what must be present, not what is permitted. If a later refactor introduces a mass assignment path, or someone reaches for $request->all() instead of $request->validated(), those extra keys

Dev
Interesse
dev.to

Seven Days in Ten Milliseconds

Last month I walked through building an order fulfilment workflow with the workflow engine: signals arriving from webhooks, timeouts bounding the wait, retries with backoff, branching, and saga compensation when the whole thing falls over. It was a long article and it left one question completely unanswered. How do you test the bit where it sleeps for three days? That is not a rhetorical flourish. Take an abandoned cart reminder. Somebody adds a product to a basket and wanders off. You send a nudge, wait three days, send a final one, and give up. Most of that workflow is waiting. If your suite cannot cover the waiting, it is covering the boring quarter of the process and leaving the interesting three quarters to production. The good news is that you never have to wait. Not once, not for a second. A sleeping instance is a database row with a wake time on it, and rows do not care what the clock says. Getting a seven day process to run in ten milliseconds is entirely a matter of who owns the clock, and it is not the workflow. Here is the workflow. Two steps, one of which sleeps. final class AbandonedCartReminder implements WorkflowDefinitionContract { public static function name(): string { return 'abandoned_cart_reminder'; } public function steps(): array { return [ SendFirstReminder::class, SendFinalReminder::class, ]; } } final class SendFirstReminder implements WorkflowStepContract { public function __construct( private readonly CartRepository $carts, ) {} public function execute(WorkflowContext $context): StepResult { $cart = $this->carts->find($context->get('cart_id')); Mail::to($cart->email)->queue(new FirstReminder($cart)); return StepResult::sleep(259_200, ['first_reminder_sent_at' => now()]); } public function timeoutSeconds(): ?int { return null; } public function maxAttempts(): int { return 3; } } And here is the test almost everybody writes first, because it is the one the tooling nudges you towards. it('sleeps for three days', function (): void { $result

Dev
Interesse
dev.to

Why I built two Bangla typing courses instead of one

When I started LearnType from Dhaka, I thought Bangla typing was one problem. It turned out to be two. Most people here type Bangla in one of two ways. Avro Phonetic lets you type Bangla by spelling it out with English letters. Bijoy maps Bangla letters to fixed keys, and it is still common in offices, newsrooms, and government work. My first plan was a single "Bangla" course with a layout switch at the top. Simple to build. Simple to explain. It did not work. The two layouts teach your hands completely different habits. An Avro learner is mostly building English touch typing plus a set of spelling rules. Their hard moments are things like conjuncts and vowel signs, where the spelling in your head does not match what appears on screen. A Bijoy learner is memorizing a new keyboard. Their hard moments are finding the right key at all, then remembering which letters need Shift or a link key. So the same lesson order was too easy for one group and confusing for the other. A beginner who picked the wrong layout on day one often blamed themselves instead of the course. I split it into two full paths, each starting from zero. A clear choice first. Before any lesson, the learner picks Avro or Bijoy with a short explanation of who each one suits. Freelancers and students who already type English usually do well with Avro. People heading into office or press work often need Bijoy. Lesson order per layout. Avro lessons build from familiar English keys toward the tricky Bangla combinations. Bijoy lessons build from the home row keys outward, the way you would learn any new keyboard. The same honest feedback in both. Live speed and accuracy show up the whole time, so practice stays honest no matter which path you are on. It meant a lot more content work. I still think it was the right call, because the goal is not a tidy course list. The goal is a beginner who actually finishes. Your users may be solving different problems with the same name. "Bangla typing" sounded like one mar

Geral
Interesse
Rock Paper Shotgun

Cancelled MMO spin-off Borderlands Online is playable once again, and the team behind the unofficial project thankfully didn't use any genAI to get it running

Where there's a will (and some talented, incredibly passionate modders), there is always a way in the world of video games. Today said will has manifested in the form of Borderlands Online, an MMO spin-off that was planned to be released exclusively in China as a free-to-play game. A build of that game was found a year ago, and now, it is playable. Neat! Read more

Games
Interesse
Hacker News

Berthd

Article URL: https://berthd.app/ Comments URL: https://news.ycombinator.com/item?id=49982735 Points: 22 # Comments: 18

Geral
Interesse
The Verge

Two mystery PlayStation products have leaked — one might be a PlayStation Portal OLED

Is Sony about to announce a new PlayStation Portal game streaming handheld? The Wi-Fi Alliance recently certified two unannounced PlayStation products of some kind, and the certification documents indicate that they could be updates to the PlayStation Portal, which might mean we're getting the OLED screen rumored earlier this year. The two devices, which are classified as "Gaming Console/Peripherals," have model numbers of CFI-Y2000 and CFI-Y2105, which sound like a clear step up from the CFI-Y1001 model number for the currently available Portal. The docs say that the new models run on Android 15, which further indicates that they might be … Read the full story at The Verge.

GamesMobile
Interesse
Simon Willison

Using Parseable with Datasette for OpenTelemetry traces

TIL: Using Parseable with Datasette for OpenTelemetry traces I saw Parseable in a Show HN today - it's a new observability platform with both an open source (AGPL) Rust implementation (a single ~180MB binary), an "Enterprise" version with extra features and a cloud hosted option. Since Datasette 1.0a41 added OpenTelemetry support (thanks, Alex Garcia), I decided to fire up Codex and have it figure out how to run Parseable and feed it traces from Datasette. Here's my (human-written) TIL showing the patterns that worked, and here's a screenshot of a Datasette trace displayed within the Parseable localhost web application: Tags: datasette , observability , alex-garcia , opentelemetry

DevInfra
Interesse
The Verge

The Sonos Beam 2 soundbar is $140 off

The Sonos Beam Gen 2 in white. | Photo by Chris Welch / The Verge The Sonos Beam Gen 2 soundbar is on sale for $359 at Amazon and Best Buy during October Prime Day, a healthy $140 discount from its usual price, and $10 lower than the previous Prime Day price. The biggest draw here may be obvious — its native connectivity to other Sonos products — though it’s also a really nice upgrade from your TV’s built-in speakers. Sonos Beam (Gen 2) The Beam isn’t as powerful as the Sonos Arc, nor can it match the flagship soundbar’s Dolby Atmos immersion bubble. But you still get room-filling surround sound for less money — and the Beam ties into the Sonos ecosystem for added convenience. Read our review. Where to Buy: $499 $359.99 at Amazon $499 $359 at Sonos $499 $359.99 at Best Buy Notably, the latest version of the Beam also adds Dolby Atmos support, albeit without upward-firing drivers to help complete the experience. Compared to the Beam Ultra that’s $699 that has those drivers, the Beam virtualizes the effect to give you a little taste of how Atmos sounds with a pricier system. It also supports eARC for shared power and volume controls with your television, so you won’t need multiple remotes. Read our Sonos Beam Gen 2 review. window.HYPE_DESK_CONFIG = { productImageUrl: "https://platform.theverge.com/wp-content/uploads/sites/2/2026/09/ChatGPT-Image-Sep-22-2026-10_07_15-AM.png", productImageAlt: "Roborock Qrevo Edge 3 Pro", productTitle: "Roborock Qrevo Edge 3 Pro", shortDescription: "A powerful, highly automated robot vacuum and mop designed to clean complex homes with minimal intervention.", longDescription: "The more complex your home is, the more you’ll appreciate a robot that can navigate, clean, and adapt with minimal help. The Roborock Qrevo Edge 3 Pro combines 36,000Pa HyperForce suction with a DuoDivide anti-tangle system for powerful vacuuming across carpets and hard floors. Its AdaptiLift Chassis 3.0 navigates thresholds and thick carpets, while its low-profile

GeralMobile
Interesse
dev.to

How to Make Passive Income as a UI/UX Designer: 10 Practical Ways

Trading your time directly for client invoices puts a hard ceiling on your income. Every freelance designer eventually hits that wall. There are only so many hours you can sit at your desk each week before your creative energy fades and your work suffers. Many designers look for ways to make money as a UI designer that do not depend on hourly billing. Passive income sounds like an easy solution, but the reality is more nuanced than the name suggests. Passive income for UI designers does not mean sitting back while money appears in your bank account. In reality, it means shifting your work schedule. Instead of getting paid while you do the work, you put in dozens or hundreds of hours upfront to research, build, test, document, and package a digital product. After you launch, your job changes to marketing, answering customer questions, fixing bugs, and releasing updates. When you create digital assets that solve clear, everyday problems for builders, you create products that can sell repeatedly from a single build. This comprehensive guide walks through ten realistic ways to make money as a UI designer, how to set up your files so customers love them, how to sell UI kits and templates, and how to structure your first ninety days. Before opening your design software, take a look at where your time actually goes when you create a digital asset: Upfront Creation (most of your initial time): You research what people need, design the layouts, set up responsive rules, test components, write documentation, and create preview graphics. Setup and Distribution: You write product descriptions, upload files to your sales platforms, create marketing graphics, and build discovery profiles. Ongoing Maintenance: You answer customer emails, fix issues when platforms change, update components, and create marketing posts. Think of your digital products as compact software tools. If you build them with care, organization, and clear structure, customers will recommend them, leave positive

Geral
Interesse
dev.to

Your interview answer has STAR. But does it have PROOF?

You have a story ready for your next interview. There’s a situation. A task. An action. A result. You’ve cut the rambling introduction. Replaced “we” with “I” where appropriate. Practised until you can deliver it in two minutes. Then someone asks: “What did you actually decide?” And suddenly, the answer you rehearsed doesn’t feel finished. That question points to a gap in how we can end up using STAR. It helps us organise an answer. Filling in its four sections doesn’t automatically give someone enough evidence to evaluate our work. You can describe a successful project in perfect chronological order and still leave your judgment almost entirely invisible. Consider this fictional example: “Our team needed to launch a CSV export feature before the end of the quarter. I was responsible for making sure it was ready. When we found a performance issue, I worked with product to adjust the scope, implemented validation, and helped us launch on time.” It has all four parts: Situation: A feature needed to launch. Task: Get it ready. Action: Work with product, adjust scope, add validation. Result: Launch on time. Now imagine you’re the interviewer. Did this developer discover the issue or receive a ticket about it? Did they propose the change or implement someone else’s recommendation? Was the scope adjustment thoughtful, or did the team simply run out of time? And what does “launched on time” tell you if you don’t know which customers could actually use the feature? The answer may describe good work. You just can’t see enough of that work yet. You could make the language more confident. “Worked with product” could become “drove cross-functional alignment.” You would still have exactly the same unanswered questions. STAR gives you useful places to put information. You can absolutely include excellent reasoning and evidence inside it. The mistake is treating a completed template as a completed answer. A section labelled “Action” might contain a difficult decision, a routine im

Geral
Interesse
dev.to

Outside, briefly: a tiny offline AI coach for getting off the screen

What I Built I built Outside, briefly, a small outdoor activity planner. You describe your mood in a sentence, choose how much time you have, and get a short mission that sends you outside. The goal is for the screen to be the shortest part of the experience. I noticed a problem with many wellness apps: even when they encourage a walk, they ask you to keep checking the phone. I wanted the planning step to end quickly. The result gives you a handful of concrete steps and a question to think about when you return. You can print or save the mission card and leave the browser behind. It offers four kinds of mission: noticing nature, moving, caring for a place, and connecting with someone. There is an accessible or seated option. Try the live demo. Type “I want a peaceful walk with birds and trees” to see a noticing mission. Another example: “I want to water plants in my garden” produces a care mission. The result shows which words influenced the model, so the recommendation is not a mysterious instruction. View the MIT-licensed source code. The AI core is a transparent, locally trained multinomial Naive Bayes classifier. Forty labeled example phrases in model.js teach it the four outing types. The model turns input into word tokens, counts how often each token appears in the example phrases, applies Laplace smoothing, and estimates which outing type best fits the sentence. The interface shows matched words so its decision is inspectable. The result is assembled from short mission steps, adjusted for time and accessibility. This is intentionally a small classifier, not a language model. For instance, words such as “birds,” “trees,” and “listen” point toward notice; “water,” “plants,” and “garden” point toward care. The model is the core decision-maker. Mission steps are written by a human so they remain short, practical, and bounded. If the sentence is vague, the app still makes a best guess and lets you try again. flowchart LR A[Your sentence] --> B[Local word tokenizer

IA
Interesse
dev.to

Free Web Performance Tools for Analyzing Website Speed and Loading

Website performance is more than a single page-speed score. A webpage can contain HTML, CSS, JavaScript, images, fonts, videos, third-party scripts, and many other resources. Each of these can affect network transfer, processing, rendering, memory usage, or how quickly a page becomes usable. For developers and website owners, it can be useful to have smaller tools for investigating specific parts of a webpage instead of relying on one overall performance report. Noloii Web Performance Tools is a collection of free browser-based utilities for exploring different parts of website performance. 👉 Explore all Web Performance Tools The collection currently includes tools for: Webpage performance Page size and weight Images HTML CSS JavaScript Network loading Performance metrics Performance budgets Browser rendering Third-party resources Common performance optimization patterns The idea is to break website performance into smaller, understandable areas. Here are the tools currently available in the collection: Web Performance Analyzer — Analyze webpage loading, resource sizes, requests, timing, images, scripts, stylesheets, caching, and performance metrics. Page Size & Weight Calculator — Calculate and understand the weight of HTML, CSS, JavaScript, images, fonts, media, and other webpage resources. Image Performance Analyzer — Analyze image dimensions, file sizes, formats, compression, responsive sizes, aspect ratios, and possible performance improvements. HTML Performance Analyzer — Inspect HTML size, DOM structure, element counts, nesting depth, images, links, scripts, stylesheets, and external resources. CSS Performance Analyzer — Analyze CSS size, selectors, media queries, comments, whitespace, and potential optimization opportunities. JavaScript Performance Analyzer — Inspect JavaScript size, structure, imports, functions, comments, and estimated performance considerations. Network & Load Time Calculator — Estimate loading time using page size, network speed, latenc

Dev
Interesse
dev.to

"We're not leaving: hunting B300s on demand across four suppliers (live x402 results)"

NVIDIA's B300 is the GPU everyone is asking about. So on October 2, 2026, we ran a live test to find out what is actually available to rent on demand right now. An autonomous agent surveyed four suppliers for multi-GPU B300 capacity, then requested, paid for, and received a machine in USDC on Base. No account, no API key, no human intervention. Here is exactly what it found. Before paying for anything, the agent read each supplier's live inventory. Supplier B300 availability at time of test RunPod Up to 2 cards in one machine, limited stock Vast.ai None in stock Lambda None in stock Hyperstack None in stock RunPod was the only supplier with any B300 inventory, and its largest machine was two cards. Because no supplier listed a four-card or eight-card B300 machine, we did not attempt requests of that size. The agent requested the two-GPU B300 machine and paid for it on Base. Supplier Config GPUs booked GPUs ready Time to ready Paid Outcome RunPod 2x B300 2 2 17 seconds $2.97 USDC Delivered Confirmed hardware: the supplier's own machine report confirmed two B300 GPUs. Time to ready: the machine reached a healthy state 17 seconds after payment. Lifecycle: it ran its ten-minute booking and shut down on schedule. Our platform recorded the shutdown at the ten-minute mark, and RunPod no longer listed the machine afterwards. Real money: the payment was a real USDC transaction on Base against the production endpoint. Nothing was simulated. The number of B300 jobs we could run was limited by market supply, not by the platform. Our platform can request B300 jobs up to eight cards per request, but only one supplier listed any B300 inventory that day, and only up to two cards. That fits how a new GPU generation usually behaves. Capacity for a newly released generation is largely committed to long-term reservations, so on-demand inventory is scarce. If you need guaranteed B300 volume, on-demand marketplaces are probably not the right channel. Dedicated capacity agreements are, an

Infra
Interesse
dev.to

GET OUT — An AI Assistant That Wants You to Stop Using It

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass GET OUT is a local AI app designed to help people spend less time on their screens and more time in the real world. The idea is simple: The best AI session is the shortest session. Instead of giving users a chatbot, recommendations, or an endless feed, GET OUT asks for two things: ⏱️ How much time do you have? ⚡ What is your energy level? It then uses local AI to generate exactly ONE real-world mission. For example: You have 30 minutes. Explore a familiar route you normally ignore. Find one unusual detail you've never noticed before and investigate it for a few minutes. PHONE DOWN. GO. Then the app gets out of the way. The flow is: text USER ↓ 2 SIMPLE CHOICES ↓ LOCAL AI ↓ ONE MISSION ↓ PHONE DOWN ↓ GO OUTSIDE GET OUT is built for people who feel like they are spending too much time on their phone or computer and need a small push to step away. The goal isn't to maximize AI engagement. The goal is to make the user leave the app. Demo Demo: [Add your demo link here] The demo shows the complete flow from choosing time and energy to receiving a single AI-generated real-world mission. Code GitHub: [Add your GitHub repository link here] The project is open source and designed to run locally. How I Built It GET OUT uses open-weight AI with local inference. Tech Stack Qwen3 4B — open-weight language model Ollama — local AI inference FastAPI — backend Python — application logic HTML/CSS/JavaScript — frontend pytest — automated testing The architecture is intentionally simple: Web UI ↓ FastAPI ↓ Mission Generator ↓ Ollama ↓ Qwen3 4B ↓ Safety Validation ↓ Mission Quality Validation ↓ ONE MISSION The model receives the user's available time and energy level and generates a mission designed around those constraints. The application also validates the generated mission before showing it to the user. I intentionally avoided building another AI chatbot. There is no endless conversation, recomme

IADevMobile
Interesse
dev.to

Touch Grass - AI outdoor companion

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass I built the Touch Grass backend as a Python-based API that connects the frontend with the application's core services and data. Touch Grass uses Gemma to create short outdoor activities based on the time you have. It gives you a simple quest, works offline with demo data, and encourages you to put your phone away and go outside. 🌱 Example: 30 minutes → walk → find a flower → sit quietly → find something blue → return. ### Key Features Built a structured backend API using Python. Added API endpoints for frontend communication. Implemented request validation and response handling. Integrated database operations for application data. Added business logic and service-layer processing. Configured environment variables for secure application settings. Set up a virtual environment and dependency management. Added development and deployment workflows. Designed the backend to be modular and easy to maintain. touch-grass-9o21.onrender.com / touch-grass Touch Grass is an open-weight AI outdoor companion that turns 15–60 minutes of free time into a tiny real-world adventure. Tell it how much time you have and start from where you are. Gemma creates a personalized micro-quest. Once the quest starts, the app gets out of the way: the plan is cached offline, the screen becomes minimal, and optional on-device Gemma vision can turn things you discover into the next challenge. The AI doesn't want your attention. It wants you to stop using your phone. uvicorn main:app --reload View on GitHub I built the Touch Grass backend with a modular architecture focused on clean API communication, validation, business logic, and data management. Project Setup Created a Python backend project. Set up a virtual environment for isolated dependencies. Added dependency management using requirements.txt. Backend Development Built REST API endpoints to communicate with the frontend. Organized the application into reu

IADevMobile
Interesse
Hacker News

Tell HN: GitHub refuses to remove cracked copies of my software after a month

I am a developer of https://www.photopea.com, a popular photo editor that runs in a web browser. Many people are asking AI models to take the Javascript code from my website, remove all ads from it, and they publish such a "new product" on Github for everyone to download. There exist tens of such repositories on Github. I want my website to be the only source of a stable version of my program Photopea. I even received emails from people complaining about something in Photopea, and it took several emails to figure out that they are not using Photopea.com (so it ruins my reputation a little). I reported it to Github on the 4th of September 2026: https://www.photopea.com/g/XKoqqIGv Today, a month later, I received this response: Thank you for submitting a DMCA takedown notice. We've reviewed the information you've provided, and based on the facts presented to us, we're unable to confirm a violation of 17 U.S. Code § 1201. What do you think I could do? Do you think I should look for a lawyer to deal with it outside the digital world? I really doubt that a real person ever looked at my report, and they probably send this response automatically to 99% of people. Comments URL: https://news.ycombinator.com/item?id=49982498 Points: 43 # Comments: 29

Segurança
Interesse
dev.to

Robots.txt Deep Dive: What It Can and Cannot Do

Robots.txt is one of the smallest files on your site and one of the most misunderstood. It's a plain text file, and a single wrong line can hide your whole site from search engines. Even more often, people expect it to do something it was never built for. Let's sort out what it actually does. Robots.txt controls crawling. That's all. It tells compliant bots which URLs they may or may not request. It lives at the root of a host: https://example.com/robots.txt Each host, protocol and port needs its own file (blog.example.com doesn't inherit from example.com) It's a polite request, not a lock. Reputable crawlers like Googlebot and Bingbot follow it. Malicious bots ignore it It's public. Anyone can read it, so never use it to hide private pages It does not control indexing, and it does not provide security. A robots.txt file is made of groups. Each group starts with a user-agent and is followed by rules. User-agent: * Disallow: /admin/ Allow: /admin/help/ Sitemap: https://example.com/sitemap.xml This names the bot a group applies to. * means all bots Googlebot, Bingbot and other names target specific crawlers A bot follows only the most specific group that matches it. It does not combine that group with the * group That last point trips people up. If you write a Googlebot group, Googlebot ignores the * group completely, so repeat any shared rules inside it. Blocks a path from being crawled. Disallow: /private/ blocks everything under that folder Disallow: / blocks the entire site Disallow: (empty) blocks nothing Makes an exception inside a blocked area. Useful for opening one subfolder inside a blocked directory When rules conflict, Google follows the most specific (longest) match. If it's a tie, the less restrictive rule wins Points crawlers to your XML sitemap. Use a full absolute URL It isn't tied to any user-agent group, so it can sit anywhere in the file You can list more than one Google and Bing support two special characters: * matches any sequence of characters

Infra
Interesse