php referer is empty

Posted on 2006-04-23
Last Modified: 2013-12-12
Hi all,

I want to trace which sites (google, yahoo...) refers to my site. I am using $_SERVER["HTTP_REFERER"] but I get an empty string.

I am using the code below at my home page.

I search my site in yahoo and google then click on the result list but I got an empty string. How can I deal with it? Should i configure something on php.ini?

Question by:sdieken
    LVL 20

    Accepted Solution

    If you have installed zone alarm on your pc, then you will get  $_SERVER["HTTP_REFERER"] empty.

    Author Comment

    Oh! do you know where I can get a free php script for tracking my site ( referer, keyword rate...)?

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Both Easy and Powerful How easy is PHP? (  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn how to count occurrences of each item in an array.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now