如何禁止向以.html扩展名结尾的网页展示Adsense广告?

I use auto ads on my PHP website. There are several pages that end with .html extension in the root directory itself. i.e example.com/page.html

And I don't want to show ads on these pages and need to block ads. These .html pages are created by users. It contains the rendered HTML codes submitted by users

And don't want users to copy-paste the Adsense code from my home page to these .html pages.

Actually, these HTML codes are presented on example.com/code.php?name=$1 and I have rewrited those to RewriteRule ^([^/]*)\.html$ /code.php?name=$1 [L] in the .htaccess

And I have used 'Advanced URL settings' present on Adsense to disable ads on example.com/code.php

But there isn't an option present to disable ads to all pages that end with the .html pages.

How is this achieved? Is there a way to disable Adsense ads on these pages?