Posted By

xtine777 on 01/04/11


google referer

Versions (?)

Check if visitor was refered by Google

 / Published in: PHP


  1. <?php
  2. $_ref = $_SERVER['HTTP_REFERER'];
  3. if (eregi('google\.', $_ref)){
  4. echo "Besucher von Google gesendet";
  5. }
  6. ?>

Report this snippet  


RSS Icon Subscribe to comments
Posted By: asdasDan on January 6, 2011

eregi() is deprecated as of PHP 5.3, usage of it is highly discouraged.

You need to login to post a comment.