user agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0

This commit is contained in:
imnyang 2025-06-07 00:01:52 +09:00
commit 905a1bee6d

View file

@ -6,7 +6,7 @@ use std::sync::atomic::{AtomicUsize, Ordering};
use rayon::prelude::*;
use reqwest::blocking::Client;
use reqwest::header::CONTENT_TYPE;
use reqwest::header::{CONTENT_TYPE, USER_AGENT};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let input_file = File::open("domains.txt")?;
@ -27,6 +27,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Arc::new(
Client::builder()
.timeout(Duration::from_secs(5))
.user_agent("Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0")
.build()?,
);