I wish to block a user from obtaining quotes from my site. I gather that I can obtain their IP address by using the $REMOTE_ADDR variable then block accordingly using a simple if-else statement. However (correct if if i'm wrong), If the IP address is dynamic the script would be useless.
I have tested obtaining IP addresses from my own P.C/Router and the last 2 - 8 bit digits seem to be dynamic and change each time the router is reset. i.e, 81.132.xxx.xxx. The xxx.xxx values change each time. While the 81.132 remain static.
Knowing this, I could rewrite the script to block users using the the 1st 2 - 8 bit values, e.g 81.132 but am curious that this may also block legitimate users.
What would be the ideal solution?
Any help is grately welcomed.