Well, I had this all typed up and the stupid thing erased everything when I had to click 'OK' that there where invalid fields. (Even though the fields were needed for my example! Anyway, I need a few lines of code. I need something that will check a persons IP or TLD (do reverse lookup if needed) and display a message if it meets what I specify. I know this isn't the right way to do it, but maybe this will give you an idea:
Do reverse IP lookup if needed.
If ENV(ip) == ".ru or .tr or .tw"
echo "Visitors from your country need access before they can post at helloghost.com."
Let me know if I was unclear in some way. Thanks.