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
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!
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!
What if I set up a proxy on my server? Would that allow me to handle the ads before serving the video?