<?php if ($_SERVER['SERVER_PORT']=='80'){ // check to see if running on http include ("file.php"); } ?>