Tutorial Block Ads using DNS (custom server)

π™»πšŠπš‘πšŠπš πš—πšŠ 𝚒𝚊𝚝𝚊 πš—πš πš‹πš›πš˜πš πšœπšŽπš› πš–πšŠπš’ 𝚊𝚍 πš‹πš•πš˜πšŒπš”πšŽπš› πš—πšŠ πš—πš˜ πš—πšŽπšŽπš πš—πšŠ πš’πšŠπš— 𝚎 𝚜𝚎𝚝
 
π™»πšŠπš‘πšŠπš πš—πšŠ 𝚒𝚊𝚝𝚊 πš—πš πš‹πš›πš˜πš πšœπšŽπš› πš–πšŠπš’ 𝚊𝚍 πš‹πš•πš˜πšŒπš”πšŽπš› πš—πšŠ πš—πš˜ πš—πšŽπšŽπš πš—πšŠ πš’πšŠπš— 𝚎 𝚜𝚎𝚝
Ser hindi po lahat ay na bloblock ni browser.
Kung titignan nyo po ang dashboard ng server ko eto ang stats.

kunglahat ay na bloblock na ni browser dapat ung queries blocked ng dns ko ay 0.
pero since may nakakalusot sa browser ng user ang DNS server ko na ang nag bloblock nun
1606444796733.png
 

Attachments

YΓΈΓΉTΓΉbΓ© ads can not be blocked at the dns level. Kase pre-rolled na yung video kasama yung sandamakmak na ads. Basically, you can only block it through browser and its plugins.
 
Not sure about that.

YΓΈΓΉTΓΉbΓ© videos are served from these domains: *.googlevideo.com. Ganun din yun mga ads, they are served from the same domain where the videos originated. So pag-block mo yung any of those googlevideo.com, blocked mo din yung video.

Yung ad-blocking at the dns level katulad ng pi-hole is effective pa din pero hindi sa katulad ng YΓΈΓΉTΓΉbΓ©.

While yung mga browser extensions like ublock, they are in the position (not too different from man-in-the-middle) to see the actual data stream kaya detected at which point kung nasaan yung ads. Kung gusto mo, observe it using chrome developer tools and see the domains I was talking about.
 
Last edited by a moderator:
Not sure about that.

YôùTùbé videos are served from these domains: *.googlevideo.com. Ganun din yun mga ads, they are served from the same domain where the videos originated. So pag-block mo yung any of those googlevideo.com, blocked mo din yung video.

Yung ad-blocking at the dns level katulad ng pi-hole is effective pa din pero hindi sa katulad ng YôùTùbé.

While yung mga browser extensions like ublock, they are in the position (not too different from man-in-the-middle) to see the actual data stream kaya detected at which point kung nasaan yung ads. Kung gusto mo, observe it using chrome developer tools and see the domains I'm talking about.
mayron po sir eto gamit kong addons sa script ko kaso nung nakaraan nag kaissue kaya tinanggal ko muna
https://github.com/kboghdady/YΓΈΓΉTΓΉbΓ©_ads_4_pi-hole
 
Kapag ini-load mo yung list na yun sa resolver mo, you are going to have tons of issue, ie video not playing.

Ibig mong sabihin loaded yung list na yun sa resolver mo. Can you give me few samples of those domain so I can check?

By the way, I run my own resolver using unbound.
 
Kapag ini-load mo yung list na yun sa resolver mo, you are going to have tons of issue, ie video not playing.

Ibig mong sabihin loaded yung list na yun sa resolver mo. Can you give me few samples of those domain so I can check?

By the way, I run my own resolver using unbound.
pa open nalang nung block.list file sa github project

yep dati madali syang i ban at walang affected na video. puro ads lang na bloblock pero ngyn nag mimix na sya ng ibang subdomain
kaya ko sya tinanggal for now
 
Ang ibig kong sabihin hindi yung link sa github. Paano ko masasabi kung alin sa mga yun yung loaded sa server mo?

What I mean is yung actual .googlevideo.com subdomains na blocked sa resolver mo.
 
sa ngyn sir naka disable pa ung script na ito sa server ko dahil may konting issue pa.
pero ito ang ginagawa nito.
dapat naka whitelist si s.YΓΈΓΉTΓΉbΓ©.com sa blocker mo.

sample subdomain ni YΓΈΓΉTΓΉbΓ© kung san nag rurun ang ads rotating ito kaya mahaba ung file kung titignan mo sa source sa github page

r1---sn-2gb7sn7s.googlevideo.com
r1---sn-5ualdn7k.googlevideo.com
r1---sn-h0jeen76.googlevideo.com
r3---sn-5hne6nsy.googlevideo.com
r6---sn-u5a3u5a3-ajtd.googlevideo.com
r1---sn-2a5thxqp5-jb3l.googlevideo.com

ngyn sa script din na gamit ko may list auto update din sya ng whitelist subdomains para di ma apektuhan ung regular videos

n4v7sney
a5meknzs
a5mlrn7y
n4v7sn7s
o097znlk
n4v7sn76
n4v7sne7
a5meknes
 
Back
Top