Can I Block Ads on an Embedded Video with an Adblocker?

0
7
Asked By CuriousCoder27 On

Hey everyone! I've got a website built with Laravel and Vue.js, and I'm embedding an iframe for a video provider. The issue is that this provider slaps on a ton of ads during playback. I'm wondering, is there any way to block these ads using an adblocker directly on the server-side instead of relying on users to have their own adblockers? Any tips or guidance would be appreciated!

2 Answers

Answered By AdBlockerNinja99 On

Unfortunately, you can't access or modify the contents of an iframe that's sourced from a different domain due to web security policies. It's just not possible. Sorry!

CuriousCoder27 -

What if I set up a proxy on my server? Would that allow me to handle the ads before serving the video?

Answered By TechSavvyGuy42 On

You can try fetching the content through your backend server to filter ads, but directly blocking ads in an iframe from another domain is tricky and might not be permitted by their terms of service. Just a heads up!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.