I would like to filter HTTP_REFERER where visitors come to my site from search engines. I want to ignore storing HTTP_REFERER information for the visitors came from the search engines. Could you please help with the PHP script?
I have this, but not correct script:
<?
$exp_list = array('google', 'yahoo');
// exapmple of one HTTP_REFERER link from the Goggle search engine
$link = 'http://www.google.com/search?hl=ru&source=hp&q=bigazart&aq=f&aqi=&aql=&oq=&gs_rfai=';
for ($j = 0; $j < sizeof($exp_list); $j++){
if(!eregi($exp_list[$j], $link)){
// storing link to mysql...
break;
}
}
?>