Ver original$ref = getenv("HTTP_REFERER"); if($ref == NULL){ $source = 'esta vacia'; }else{ $source = 'esta bien' ;} echo $source ; echo $ref ;