PHP script Helpz0r

Hello unix.com,

How can I block an ip or a C block if that ip keeps visiting my webpage.

Lets say 64.62.49.98 keeps refreshing my webpage.

I want to make a script if an ip refreshes my webpage 3 times to redirect him to other page... lets say google.com

Thanks if advance.

Galford D. Weller