Advertisement
trippienight

Disable Encrypted Client Hello in CloudFlare

Nov 15th, 2024
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.70 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Запрос ID зоны
  4. read -p "Введите ID зоны (Zone ID): " ID_ZONE
  5.  
  6. # Запрос API-ключа
  7. read -p "Введите Global API ключ: " GLOBAL_API_KEY
  8.  
  9. # Подтверждение действия (включение или отключение ECH)
  10. read -p "Введите ваш Cloudflare Email: " ACCOUNT_EMAIL
  11.  
  12. # Выполнение команды curl с указанными параметрами
  13. curl -X PATCH "https://api.cloudflare.com/client/v4/zones/${ID_ZONE}/settings/ech" \
  14.      -H "X-Auth-Email: ${ACCOUNT_EMAIL}" \
  15.      -H "X-Auth-Key: ${GLOBAL_API_KEY}" \
  16.      -H "Content-Type:application/json" \
  17.      --data '{"id":"ech","value":"off"}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement