Cloudflare CAPTCHA triggers on ampersand

💻 Teknoloji 📰 World 🕐 3 saat önce

TIL: Cloudflare CAPTCHA on at least one ampersand I'm using Cloudflare's CAPTCHA (they call it a "Web Application Firewall > Custom rules > Managed Challenge" these days) to prevent crawlers from aggresively spidering my faceted search engine on this site, but I got fed up of even simple ?q=term searches triggering the challenge. After some mucking around with Claude Code it turns out you can register the following rule instead, so the CAPTCHA only kicks in for search URLs co

The user implemented Cloudflare's CAPTCHA to block crawlers from accessing their site's search engine. However, simple search queries were triggering the CAPTCHA. After experimenting with Claude Code, they found a rule that limits CAPTCHA activation to search URLs containing an ampersand. This change allows queries like /search/?q=lemur to function without CAPTCHA. The user also tested Cloudflare's MCP with Claude Code but found it unable to edit specific rules. They switched to using the Cloudflare API instead. The solution improved user experience by reducing unnecessary CAPTCHA triggers.

This adjustment helps maintain site security while minimizing user friction during searches.

#app

📌 Kaynak

Bu özet World kaynağından otomatik derlenmiştir. Tamamı için orijinal habere gidin.

Orijinal haberi oku →
📱
News AI World — Mobil uygulama
Bu haberleri 45 dilde, anlık çeviriyle cebinde. Erken erişim için Gmail adresini bırak.
← Tüm haberlere dön