# 웹크롤링시 Bot검사를 피하는 방법

> Clean Markdown view of GeekNews topic #2823. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=2823](https://news.hada.io/topic?id=2823)
- GeekNews Markdown: [https://news.hada.io/topic/2823.md](https://news.hada.io/topic/2823.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2020-09-11T10:57:48+09:00
- Updated: 2020-09-11T10:57:48+09:00
- Original source: [piprogramming.org](https://piprogramming.org/articles/How-to-make-Selenium-undetectable-and-stealth--7-Ways-to-hide-your-Bot-Automation-from-Detection-0000000017.html)
- Points: 15
- Comments: 2

## Topic Body

Selenium 기준이지만 다른곳에도 적용 가능

1. Navigator.Webdriver 플래그 제거

2. ChromeDriver / GeckoDriver 에서 특정 문자열 제거

3. 해상도,User-Agent 등 변경

4. 실제 URL 플로우 사용. 보이지 않는 링크 방문 회피

5. Proxy를 이용해서 IP 변경

6. 랜덤 지연값 사용

7. 헤드리스 브라우저를 사용하지 말 것(Notification Permission 을 체크해서 확인)

## Comments



### Comment 2856

- Author: xguru
- Created: 2020-09-11T10:58:01+09:00
- Points: 1

1 번의 경우 Puppeteer 에서는 true/false 세팅만으로는 봇으로 디텍트 되는 곳이 있어서

아예 아래처럼 속성을 지우는게 좋다고

const newProto = navigator.__proto__;

delete newProto.webdriver;

navigator.__proto__ = newProto;

### Comment 2858

- Author: louis
- Created: 2020-09-12T00:39:46+09:00
- Points: 1
- Parent comment: 2856
- Depth: 1

That's a good point :) I replaced the code
