Sniff Refferer

Posted on 2008-11-05
Last Modified: 2012-06-27
Is there a way to customize a homepage view using javascript to tell you who the reffer is and show a custom view of the page (with AJAX or Flash) when a certain referer is detected?  Are there any standard AJAX frameworks that do this?
Question by:walker6o9
    LVL 10

    Accepted Solution

    Javascript Code

    Source of code :

    I would go along and agree with what was mentioned on that page, which is to use htaccess if you are on an apache server.  If you have access to a server side programming language like PHP, ASP, Coldfusion... you can easily complete the task that way.
    LVL 1

    Author Comment

    Sorry if this question is noobish, but how would I modify that to work for a non www web address, like this:
    LVL 1

    Author Closing Comment

    You can ignore my last comment, I got that problem solved.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Suggested Solutions

    Introduction HyperText Transfer Protocol ( or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
    The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API ( has made its way into the popular lexicon of the English language.  A few years ago, …
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
    The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

    755 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

    24 Experts available now in Live!

    Get 1:1 Help Now