Disable End Portal

Hello, I am brand new to creating datapacks and I was wondering if someone could point me in the direction of how to either disable the ability to place an ender eye in a portal frame, or disable the ability to travel through the portal. Preferrably both honestly. I'm not looking for someone to give me the exact code, just help me figure it out. I am brand new to data packs as I mentioned earlier, but I have coding experience as well as Minecraft plugin development experience, but wanted to dip my feet into data packs, and thought this would be a fun way. Thank you!

Continue to help post