Posted By

xtine777 on 01/04/11


Tagged

google referer


Versions (?)

Check if visitor was refered by Google


 / Published in: PHP
 

URL: http://www.php-kurs.info/tutorial-google_referer_auslesen.html

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

Report this snippet  

Comments

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.