Next.js Discord

Discord Forum

Obfuscate output chunk names in order to bypass adblockers

Mattèo posted this in #help-forum
Open in Discord
Hello, I am creating a site with Next.js and I have a problem with Adblocker. I'm creating an advertising project and some of the scripts needed to run Next.js don't work because of the "ads" keyword. In this case, the blocking property is .fr/*/ads/$| from the FR Easylist (used by adblockers like uBlock or ABP)

The url that is blocked is :

That's why I'd like to obfuscate the URL paths of the nextjs scripts. How can I achieve that ?

Thank you and have a nice day !

0 Replies