you can't download site using preg_match, show us bigger part of code :/
but universal answer:
visit can be logged in every way, just for example google analytics uses javascript so they will not see you downloading bot, but other script can log it... and you can change referer for you bot, because referer is sending browser...