정보&강의 광고차단 솔류션 파이홀(pihole ) 명령어 모음
- 운영자
- 1222
- 4
광고차단 솔류션 파이홀(pihole) 명령어 모음
파이홀은 라즈베리파이 기기에 라즈베리안 운영체제을 설치후 사용한다.
Usage: pihole [options]
Add -h after -w (whitelist), -b (blacklist), -c (chronometer), or -a (admin) for more information on usage
Options:
-w, whitelist Whitelist domain(s)
-b, blacklist Blacklist domain(s) (exact match)
-wild, wildcard Blacklist whole domain(s) (wildcard)
-d, debug Start a debugging session
Automated debugging can be enabled with 'pihole -d -a'
-f, flush Flush the 'pihole.log' file
-t, tail Output the last lines of the 'pihole.log' file. Lines are appended as the file grows
-up, updatePihole Update Pi-hole components
-r, reconfigure Reconfigure or Repair Pi-hole
-g, updateGravity Update the list of ad-serving domains
-c, chronometer Calculates stats and displays to an LCD
-h, help Show this help dialog
-v, version Show installed versions of Pi-Hole and Web-Admin
-q, query Query the adlists for a specific domain
'pihole -q domain -exact' shows exact matches only
-l, logging Enable or Disable logging (pass 'on' or 'off')
-a, admin Admin webpage options
uninstall Uninstall Pi-Hole from your system :(!
status Is Pi-Hole Enabled or Disabled
enable Enable Pi-Hole DNS Blocking
disable Disable Pi-Hole DNS Blocking
Blocking can also be disabled only temporarily, e.g.,
'pihole disable 5m' - will disable blocking for 5 minutes
restartdns Restart dnsmasq
checkout Check out different branches
Example Usage
화이트 리스트 설정
$ pihole -w spclient.wg.spotify.com
블랙 리스트 설정 (여러개 동시 입력시 띄어씌기)
$ pihole -b api.mixpanel.com spade.twitch pubads.g.doubleclick.net sb.scorecardresearch.com
와일드카드(Wildcarding) 사용 - 유튜브 광고 차단시 이용
r4---sn-vgqs7nez.googlevideo.com
r4.sn-vgqs7nez.googlevideo.com
www.youtube-nocookie.com
i1.ytimg.com
r17---sn-vgqsenes.googlevideo.com
r2---sn-vgqs7n7k.googlevideo.com
clients6.google.com
r1---sn-vgqsen7z.googlevideo.com
r1.sn-vgqsen7z.googlevideo.com
r20---sn-vgqs7ne7.googlevideo.com
r20.sn-vgqs7ne7.googlevideo.com
이런 광고 주소를 차단해야 한다면,
pihole -wild 7.googlevideo.com z.googlevideo.com k.googlevideo.com s.googlevideo.com
이렇게 입력하면 해당 주소가 포함된 모든 주소가 차단된다.
리스트에서 삭제하려면
pihole -wild -d z.googlevideo.com
로그 초기화
pihole -f
로그파일 실시간 감시 - Tailing The Log File
pihole -t
중지
will start the log rolling. Press Control + c to stop viewing the log.
파이홀 업데이트 - Updating Pi-hole
pihole -up
차단목록 업데이트 - Gravity
pihole -g
리스트 검색
pihole -q somedomain.com
pihole -q hulu
pihole -q t2.hulu.com -exact
웹인터페이스 접속 암호 설정 (재설정)
pihole -a -p somepassword
Checking If Blocking Is Enabled
pihole status
Restart DNS
pihole restartdns