# Prevent page from loading

**URL:** <https://forum.kirupa.com/t/prevent-page-from-loading/148343>\
**Category:** Uncategorized\
**Created:** [May 19, 2005, 2:26am UTC](https://forum.kirupa.com/t/prevent-page-from-loading/148343 "2005-05-19T02:26:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wbarrett26](https://avatars.discourse-cdn.com/v4/letter/w/e9a140/32.png) [@wbarrett26](https://forum.kirupa.com/u/wbarrett26)\
**Post date:** [May 19, 2005, 2:26am UTC](https://forum.kirupa.com/t/prevent-page-from-loading/148343/1 "2005-05-19T02:26:01Z")

</div>

I setup a php script to be run through a cron job. But i want to make it so that if someone simply typed in the page address they would not activate that script and then the page would redirect them to index.html. Any help is appreciated.  
Thanks
