How to track user visit my page via search engine(google)

hi there,
is it possible to track that an user visited my page via search engine ( i.e google) using servlet?
what will request.getHeader("user-agent"); return if an user comes via search engine. will it return as "google" or just the browser name. is there any other possible way to distinguish that my page visited via google or user visited my page directly. kindly post your view on this. it will be helpful for most of the projects.
Regards,
A.

Check the referrer. This is the URL where the request is coming from.
String referrer = request.getHeader("referer"); // Yes, with the legendaric misspelling.If the user used Google, this will come from the Google domain.
Keep in mind that the client has full control over what it sends along the request, so it could also spoof the referrer value. But at least this solution will cover the majority of the users anyway.

Similar Messages

  • How to redirect user from login page to "Set Challenge question" page

    How to redirect user from login page to "Set Challenge question" page (NOT custom page) after 3 un successful password attempts?
    Meaning when user types wrong password 3 times they will be redirected to set Challenge question page. If user answers the challenge question then password reset page should be appeared other wise (after remaining 3 un successeful challenge question answers) account should be locked out.
    thanks for your help.

    hi sandeep
    Thanks for your answer. Let me ellaborate more on the requirement here.
    - Password Policy and Lost Password management are set up in the identity system
    - Configure login tries allowed= 5. Verify accout is lock out after 5 unsucessful login.
    This is what need to achieve.
    1) If a user attempts to login 3(not 5) times using an incorrect login credential he/she should be redirected to set challenge question (security question) page.
    2) Then if the user attempts (remaining) 2 times incorrect challenge answer then his/her account should be locked out.
    3) If he/she answers the challenge answer correctly then he/she should be redirected to password reset page.
    Is this possible?

  • How do i stop yahoo becoming my default search engine

    how do i stop yahoo becoming my default search engine?

    to undo the damage, see
    * https://support.mozilla.com/questions/850287

  • How to make my site top in the search engines for a high ranking?

    I am new at this, and I am planning to build a big site on iweb, but my question is where can I get information on how to make my site with high rankings? Would I have to post my site in lots of search engines, or have the hosting company help out? how do i do this?

    As SEO (Search Engine Optimization) is important to you, you may want to consider alternatives to iWeb as "iWeb websites are not made to be search engine friendly" — read more here:
    SEO For iWeb: How to get your iWeb Websites into Google & Other Major Search Engines
    ...iWeb is designed for personal sites and, as such, Apple apparently thinks there's no need for Google — you tell grandma the URL of your personal iWeb site, she painstakingly types it in and then gazes admiringly at the photos of her grandchildren.
    Apple hasn't changed this approach in three iterations of iWeb but perhaps, with all the feedback it receives on this issue, there's still hope. Meanwhile, web-design apps for business sites tend to integrate search engine optimization — Sandvox Pro is an example:
    http://www.karelia.com/sandvox/getyour_site_noticed_andb.html
    Another advantage of Sandvox is that, when viewing your site in Safari, the text increase & decrease commands will work — they don't work for an iWeb-created site. ...For business use, it's important that customers don't turn away from your site because they consider your text too small to read.
    However, if you still really want to use iWeb, this article may help:
    http://www.iwebformusicians.com/SearchEngines/SEO.html
    By the way, for more info about SEO in general, this blog of a web-design app (Yola) recently started a multi-part series on the subject — the first is here:
    http://blog.yola.com/2009/06/15/seo-101
    The rest of the series (in no particular order) can be found here:
    http://blog.yola.com/category/seo/
    And a video:
    _Using Title Tags Effectively For Search Engine Optimization (SEO)_

  • Where is the Home icon (House) that you clicked on to take you to your desired home page or search engine

    Above should be clear enough. There was a home icon (a house clip-art) in the main Firefox toolbar that would take me to my search engine (Google) if I had it set-up as my home page. Where has that gone.

    You can find the toolbar Home button at the far right end of the Navigation Toolbar.
    You can drag the Home button from its current position at the right to the previous position at the left of the location bar if you do not like that new position.
    * http://kb.mozillazine.org/Toolbar_customization
    * https://support.mozilla.com/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • Tutorial - how to track user progress in a Captivate movie

    I wanted to start working with the new scripting capabilities
    in Captivate 4 and thought a good first project would be to create
    a set of variables and custom actions and execute the actions based
    on the state of the variables. I wrote up a description/walkthrough
    with screenshots and the source .cp is downloadable here:
    http://elearninglive.com/wordpress/2009/01/tracking-user-progress-in-captivate-4-using-var iables-and-actions/
    Hopefully it proves useful to others!
    A couple of things I mention at the bottom of the post in
    regards to the new features in CP4:
    1. The actions window is amazingly slow once you add more
    than a handful of actions. Perhaps it's just my machine? I have a
    very fast machine with lots of ram, but perhaps it's something
    unique to my environment?
    2. You can't 'chain' actions. In other words, you cannot use
    'execute multiple actions' setting to execute user-created actions,
    just the built-in ones, which seems to me a pretty big limitation.
    I had to work around it.
    3. As an add-on to #1 above - there is no way to
    import/export code. Since the actions window is so slow it would be
    ideal if we could just import code written in a text file, or
    better yet, have a simple code editor (like the actions panel in
    Flash).
    My 2 cents, fwtw, as a new CP4 user....
    mark
    www.elearninglive.com

    > But I didn't really know what AuthorWare was actually
    > capable of producing until this past year when I
    happened to subscribe to
    > the
    > AWARE list (AuthorWare Developers) and over time read
    about the
    > capabilities it
    > had. It was an excellent tool - and it seems, the best
    there ever was for
    > our
    > needs, and it amazes me that there isn't anything to
    replace it yet that
    > matches it. Of course, the problem was the shockwave
    plugin. Which is a
    > big
    > problem and the real original reason I never looked into
    it in the first
    > place.
    The biggest problem Authorware had was poor marketing. Second
    was it had no
    way to natively create the eye-candy that Flash was wowing
    the world with.
    Third, there was no attempt by Macromedia modernise
    Authorware with a lot of
    very basic things that would have made a huge difference to
    everyone's
    perception of the tool
    Fourth, Marketing kept telling people Authorware was dead,
    from about
    Authorware 5. I think the Flash team was on a bonus for
    converting people
    >
    > I don't understand why Adobe is now making Captivate the
    next AuthorWare.
    > That's basically what they're doing it seems. It's like
    saving up to buy a
    > ferrari when you have on sitting unused in your garage!
    They already had a
    > great elearning development tool in AuthorWare and just
    needed the one big
    > piece: output to flash swf and not shockwave. I guess
    there were technical
    > reasons why that wasn't done?
    I think it is clear to those of us that have had to move to
    Captivate from
    Authorware that Captivate is *very* lacking in specific
    advanced features
    and functionality that old hands are used to. As with any
    product, users are
    bombarding adobe with requests that boost the power and scope
    of Captivate.
    It's a natural progression.
    >
    > As much as I like Captivate 4, it's a few major releases
    away from coming
    > close to what we *really* need.
    I agree - but it is a lot closer this time around :-)
    Steve
    http://twitter.com/Stevehoward999
    Adobe Community Expert: eLearning, Mobile and Devices
    European eLearning Summit - EeLS
    Adobe-sponsored eLearning conference.
    http://www.elearningsummit.eu

  • How do I redirect to a page via a button but also populate a field on page2

    I am trying to redirect to a second page via a button but at the same time populate a item on the second page from a function that returns a sequence.
    I tried all sort of methods, adding page processing, adding dynamic actions, adding branching and cannot get this to work.
    The button must create a new record on the second page, but populate unique key at the same time. Because redirecting does not Submit, adding page processing AFTER submit does not work. I get that, but the following also will not work and I don' know why
    Create dummy field on page 1
    Create page processing that populates the field via PL/SQL "On Submit"
    Create Region button that simply Submits page
    Create branch that on submit redirects to second page and moves the value from the dummy field on first page to the field on the seocnd page.
    I am new to Application Express and love trying to figure issues out myself but am at a loss with something that should be so simple. Any help would be appreciated.
    Stewart

    Hi,
    As i understand from your requirement,
    I am trying to redirect to a second page via a button but at the same time populate a item on the second page from a function that returns a sequence.You want to goto page 2 from page one on click of a button, and when loading the page two you want to populate the item on page two with a sequence number.
    if that is the case, try using Button,
    Action: Redirect to page in this application
    then on page two, create a page process,
    Process Point:*On load before header*
    Source >> Process >>
    begin
    select seq_name.nextval into :P2_ITEM from dual;
    end;this should do your requirement.
    Regards,
    Little Foot

  • Home Page - the search engine on my Firefox start page used to be google and has now changes to Ask . How to I get google back

    I suspect some toolbar has changed the search engine on my home page which is the standard Mozilla Firefox start Page. It used to be google but now is Ask. I want to change it back to Google.

    You can open the <b>about:config</b> page via the location bar and do a search for <i>ask.com</i> via the Filter at the top of the about:config page.<br />
    You can reset all <i>ask.com</i> related prefs that appear bold (user set) via the right-click context menu to their default values.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    *http://kb.mozillazine.org/Preferences_not_saved
    *https://support.mozilla.com/kb/Preferences+are+not+saved

  • I want name on address bar goes to home page, not search engine

    Just today I hooked up a new modem/router that I purchased at a WIndstream store. I have been browsing the internet for years with Firefox. I have changed the keyword.url setting in my Firefox configuration (see https://support.mozilla.com/en-US/questions/833252#answer-197476) so that the new version would act like the old version and go directly to the webpage when the name was typed in the address bar. For example: when I type in "windstream" (no ".net" or".com") I would go directly to windstream' home page.
    However, when I hooked up my new modem/router I my browser is hijacked and goes to a Windstream search page. I have tried everything from re-installing Firefox, re-changing the "keyword.url" setting, I even tried the Firefox ad-on here (https://addons.mozilla.org/en-us/firefox/addon/browse-by-name/).
    All to no avail......there is something that has changed by adding Windstream's hardware and connecting to their network that will not allow me to use this function of Firefox.
    Nothing else changed, but a new piece of hardware.....
    Changed keyword.url to : http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=
    Re-installed Firefox after cleaning all history and cookies.
    Tried the add-on "Browse by name"
    Wasted my time calling Windstream tech support.
    Changed to openDNS
    Tried to disable the feature through Windstream's web page, but then it just happens with the new search engine.

    Opt-out of Windstream's search service: Type in something to get their sneaky web search page to come up, then click the tiny link at the bottom right "about this page". That sends you to a page where you can opt-out of their service.
    To opt-out from their "valuable" sneaky service, you have to choose to opt-in to another search service.
    You have to do this with each browser. And it still sends you to your search engine's results page, not to your URL the way you might want it to.
    I would rather the default be to allow me to opt-in if I choose to, not have to jump through hoops to find out how to opt-out. It's taken me weeks to discover this. Annoying!

  • I'm using internet explorer(yuk!!) and am having trouble with getting back my search engine "google" and all i get is "blank page", can u help?

    First of all, forgive me cuz I'm probably NOT the sharpest "chip in a laptop" but I use Internet Explorer as my ISP(I've heard that GOOGLE CHROME is soo much better??) and Google as my search engine. For some reason(I know, probably USER idiot!!) even though I have set in my "internet connections" tab, www.google.com chosen, the minute I click a new tab to look for something else, that dreaded "about blank" or maybe "blank page" comes up.....wtheck???? Can u help me pleeez......thank u ..

    It is possible that your security software (firewall, anti-virus) blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *https://support.mozilla.org/kb/fix-problems-connecting-websites-after-updating
    See also:
    *http://kb.mozillazine.org/Error_loading_websites

  • I want to use Firefox but I can't stand the new Google, even when I select Bing as my search engine Google comes up on my home page. I will not use Firefox if I cannot get rid of Google

    Ever since the "improved Google" came out I hear a constant irregular clicking in the background as if Google is updating or checking Data. I cannot stand their new format either, giving me junk advertising that I did not want or ask for. I was a huge Google fan before they really started going for maximum profits now I just want them out of my browser. I tried Opera but like Firefox much better, except for the fact that I cannot extract Google from the home page no matter what I do, it apperas to be in the registry too.

    Please do the following.
    * In the location bar, type '''about:config''' and hit Enter.
    * In the filter at the top, type: '''keyword.URL'''
    * Double click it and remove whatever's in there and replace it with http://bing.com/results.aspx?q=
    The URL to add in "keyword.URL" becomes a link in this post, so right click it and choose "''Copy Link Location''" to copy it to the Windows clipboard. Then hit CTRL+V to paste it. Saves you having to type the whole thing.
    '''To reset your home page, do the following'''.
    * Go to the site you want to set as your homepage.
    * Click the orange Firefox button and go to '''Options '''| '''Options '''| '''General '''
    * Make sure it says "''Show My Homepage''" in the first dropdown menu.
    * Click the button called "'''Use Current Pages'''" to set the homepage to the one you have on the screen.
    After you complete the above steps, install this add-on to prevent another search engine from modifying your preferences: https://addons.mozilla.org/en-US/firefox/addon/browserprotect/

  • How do I uninstall My Start as the search engine

    I have uninstalled incredimail and have tried everything I can find in trying to get rid of My Start as the search engine with no luck and feel that this is now becoming such an annoyance as to be invading my privacy

    http://support.mozilla.com/en-US/kb/How%20to%20set%20the%20home%20page
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • How do I permanently delete all one click search engines from Firefox 34.0.5 except Google?

    In previous versions there was a Delete or Remove button to permanently remove Search engine choices. This version has some several default choices that I cannot delete. Is this a feature you removed? Yahoo, Ask and Bing suck.

    ''cor-el [[#answer-667306|said]]''
    <blockquote>
    You can remove items via the previously used search engine manager that you can open via the chrome URI link I posted in my above reply.
    *chrome://browser/content/search/engineManager.xul
    </blockquote>
    This was the solution I was looking for. Thank you very much!

  • I cannot set or change my home page or search engine choice and I have delteed and reinstalled Firefox twice

    I cannot change or reset my home page or delete the current ones.
    I have restored Firefox that didn't work either. So I deleted Firefox and downloaded
    a new version. Still the same trouble.
    I also cannot change to a new search engine but I can delete the current one or restore it (Google) Google.
    HELP

    It could be the work of one of your add-ons, or even add / mal-ware.
    Look thru your add-ons list and make sure you know what each one is
    there for. Also,
    check the programs that are on your computer
    '''''Windows > Start > Control Panel > Uninstall Programs.'''''
    Go thru the list and use a web search to check any that you don't
    know what they are.<BR><BR>
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-caused-malware Troubleshoot Firefox Issues Caused By Malware]'''''<BR><BR><BR>
    '''''[https://addons.mozilla.org/en-US/firefox/addon/searchreset/?src=collection&collection_id=33bf10fa-666d-45a2-9bc9-491ce21671c6 SearchReset]'''''<BR>
    This add-on is very simple: on installation, it backs up and then resets your
    search preferences and home page to their default values, and then uninstalls
    itself. This affects the search bar, URL bar searches, and the home page.

  • Spry xml dataset driven page and search engines

    If a page uses Spry xml dataset to present products to a
    visitor, what do google and yahoo crawlers see in that page?
    I'm asking because i plan to rewrite our products' static
    pages using spry xml dataset, and i'd like to ensure crawlers see
    the products. I haven't looked much, yet, into this pry capability,
    but the products page will most probably be paginated (not sure if
    possible in this capability) since there are hundreds of products.
    currently, our static html pages generated good conversions
    into purchases from google and yahoo searches.
    It would be great if there is a real-life website that uses
    this spry capability and has their pages appear in those search
    engines.
    thanks.

    If a page uses Spry xml dataset to present products to a
    visitor, what do google and yahoo crawlers see in that page?
    search bot do not read / understand javascript. So they would
    not index it.
    Its a commen point of failure of the ajax techniques, Spry
    has a handy solution for it (spry:content) wich will allow u to
    overwrite 'content' if javascript is enabled so and bots will just
    see the static page.

Maybe you are looking for

  • Reporting Service Error Code 7403, on SCCM 2012 R2 with SQL 2012 SP1 CU6

    Dear All, I am facing issue to install Reporting Services Point on SCCM 2012 R2 with SQL 2012 SP1 CU6. getting error messages id 7403. please let me know if SQL 2012 SP1 CU6 is supported with SCCM 2012 R2 or not & if you have any solution on it. Erro

  • Music from iphone 4 to macbook pro

    is there any way for me to transfer my music from my iphone 4 to my new macbook pro? i know you can do it with windows but why is it so hard to transfer to a Mac?? please let me know if there is any solution.

  • Non-hex character in a hex string error message

    Hi everyone, I encountered n error message in Illustrator "Acrobat PDF File Format is having difficulties. Non-hex character in a hex string." when trying to open a particular file. File was originally created on a Windows 7 PC, tried opening file on

  • Creator 2 update

    Finally some updates have been released. But there's one problem: where can find any info about those updates??? nothing appears when I download them in Creator, nothing on Sun pages! I only know that it is a fix for design and run-time modules...

  • ITunes not permitting music transfer/edit

    I am running an iPhone 3GS on 3.1.3 and iTunes latest version. I recently had to wipe my computer completely (reformat) for various reasons. When I re-installed iTunes and plugged my phone in, my device was recognised and all the drivers installed co