# PHP script Helpz0r

**URL:** <https://community.unix.com/t/php-script-helpz0r/304897>\
**Category:** Shell Programming and Scripting\
**Created:** [February 18, 2012, 2:01am UTC](https://community.unix.com/t/php-script-helpz0r/304897 "2012-02-18T02:01:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![galford](https://community.unix.com/letter_avatar/galford/32/6_22734026db12803ebb3e059622ac3534.png) [@galford](https://community.unix.com/u/galford)\
**Post date:** [February 18, 2012, 2:01am UTC](https://community.unix.com/t/php-script-helpz0r/304897/1 "2012-02-18T02:01:09Z")

</div>

Hello [unix.com](http://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](http://google.com)

Thanks if advance.

Galford D. Weller
