Bot Trap Disabled :(

Hi all,

My bot trap code has the allow_url_fopen in it and I can no longer use it on my pages. But I do like this code very much. Can anyone help me with some replacement code? I don’t know PHP at all so trying to do this myself would be fruitless and cause for much hair pulling. The code can be found on this page:
Just two snippets of code - very small and I’ve found quite useful but now I need help replacing. Would someone please help?

Thanks in advance,