Information regarding Allow list

What exactly happens if I add a contract address to allowlist? I’ve read the documentation and it says it’s useful when your apps needs to query from specific contracts. I tried setting the contract address of the contract I’m working on but the python code using web3.py didn’t work. I removed the contract address from the allows list and it worked perfectly. What is the reason for this behavior?
I’m new to this thing so sorry for sounding like a noob.

Hi @mtalal.sahi99,

Welcome to the Infura community! The “Securing With Allowlists” section of our docs may help give you some additional context and tips for working with allowlists. With the allowlist, any requests originating from platforms that aren’t on the allowlist will be rejected, so if it doesn’t match exactly, it will get rejected.

Let us know if you need any additional guidance!