Limit log file to 1MB and rotate 5 files
check if HTTP_REFERER is set before assigning to pagesource string