Evitando a Impressão Digital do Navegador
Entenda como os sites identificam navegadores sem interface gráfica e aprenda técnicas para fazer navegadores automatizados se misturarem a usuários reais.
Evitando a Impressão Digital do Navegador é uma aula grátis de Web Scraping & Bots no CoddyKit. Esta é a aula 4 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de Web Scraping & Bots, e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de Web Scraping & Bots inclui 4 aulas no total.
Partes desta aula ainda não foram traduzidas e aparecem em inglês.
What Is Fingerprinting
Beyond IP and headers, sites profile your browser fingerprint: a combination of attributes like screen size, fonts, WebGL renderer, and JavaScript quirks that together identify automation.
Even with rotating proxies, a consistent automation fingerprint gets you blocked.
The navigator.webdriver Flag
The most obvious tell: automated browsers set navigator.webdriver to true. Scripts on the page can read this instantly.
// site-side detection
if (navigator.webdriver) {
blockBot();
}Headless Tells
Default headless Chrome leaks signals: a missing window.chrome object, no plugins, an unusual user-agent containing 'HeadlessChrome', and permission queries that behave oddly.
Patching webdriver
You can override the flag before the page's scripts run. Stealth libraries automate dozens of such patches, but the core idea is overriding the property.
driver.execute_cdp_cmd('Page.addScriptToEvaluateOnNewDocument', {
'source': 'Object.defineProperty(navigator, "webdriver", {get: () => undefined})'
})Realistic User Agents
Match your user-agent string to a real, current browser version, and keep it consistent with the platform and other headers you send. Mismatches are a red flag.
options.add_argument('user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) '
'AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0 Safari/537.36')Window and Viewport Size
Headless browsers often default to tiny or unusual window sizes. Set a common resolution so the rendered viewport looks human.
options.add_argument('window-size=1920,1080')Canvas and WebGL Noise
Sites hash the pixel output of a hidden canvas or your WebGL renderer string to build a stable ID. Adding slight randomization to these outputs breaks the consistent fingerprint.
Human-Like Behavior
Fingerprinting includes behavior. Bots click instantly and move in straight lines. Add randomized delays, mouse movement, and scrolling to mimic a person.
import random, time
for _ in range(3):
driver.execute_script('window.scrollBy(0, arguments[0])', random.randint(200, 600))
time.sleep(random.uniform(0.5, 1.5))Stealth Plugins
Tools like undetected-chromedriver or selenium-stealth bundle many evasions: patching webdriver, spoofing plugins, fixing the WebGL vendor, and normalizing permissions in one step.
import undetected_chromedriver as uc
driver = uc.Chrome()
driver.get('https://example.com')Consistency Is Key
The biggest mistake is an inconsistent profile: a Windows user-agent with a Linux WebGL renderer and a mobile screen size screams automation. Keep every signal coherent with a single believable device.
Testing Your Fingerprint
Before a real run, point your automated browser at a fingerprint-test page that reports detected automation signals. Iterate until the report looks like an ordinary browser, then deploy.
driver.get('https://bot.sannysoft.com')
# inspect the results table for red flagsQuick Check
Test your understanding of fingerprint evasion.
Recap
You learned how browser fingerprinting works and how to blend in: patch navigator.webdriver, fix headless tells, use realistic user-agents and window sizes, add canvas/WebGL noise, simulate human behavior, and keep every signal consistent.
Aprenda Python com um tutor de IA — grátis
Escreva e execute código real no seu navegador, obtenha ajuda instantânea de um tutor de IA 24/7 e continue de onde parou na web ou no app.
- Cursos
- 12
- Aulas
- 48
Perguntas Frequentes
A aula “Evitando a Impressão Digital do Navegador” é grátis?
Sim — o texto completo de “Evitando a Impressão Digital do Navegador” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de Web Scraping & Bots, atualize para CoddyKit PRO. O curso de Web Scraping & Bots inclui 4 aulas no total.
O que vou aprender em “Evitando a Impressão Digital do Navegador”?
Entenda como os sites identificam navegadores sem interface gráfica e aprenda técnicas para fazer navegadores automatizados se misturarem a usuários reais. Você pratica Web Scraping & Bots com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.
Preciso ter experiência prévia para começar Web Scraping & Bots?
Nenhuma experiência prévia é necessária. Web Scraping & Bots no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 4 de 4.
Quanto tempo leva a aula “Evitando a Impressão Digital do Navegador”?
A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.
Posso escrever e executar código nesta aula de Web Scraping & Bots?
Sim. Cada aula de Web Scraping & Bots inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.
Todas as aulas deste curso
- Rotação de agentes de usuário e cabeçalhos
- Gerenciamento de proxies e rotação de IP
- Estratégias para resolver CAPTCHAs
- Evitando a Impressão Digital do Navegador