If you're looking to block access to or from your public IP and want to automate the process, you can easily do this using services like ifconfig.io or www.mioip.info. These services provide an API that works seamlessly with curl, allowing you to script the process. Unlike websites like www.mioip.it or whoer.net, these APIs are more straightforward for automation tasks.