Can Datapacks Protect Blocks and Portals?

Can Datapacks Prevent Nether Portals From Becoming Deactivated By Fire/Explosions? As the data pack I'm working on will add a finite number of nether portals, I want to ensure those that exist aren't able to be broken. Similarly, I would want to prevent the blocks that comprise the portal to be unable to be broken. Potentially, the entire structure in which its found. Is that within the realm of a datapacks ability?
Continue to help post