Solved

perl - how to detect if toolbar exists, and type

Posted on 2004-10-03
6
137 Views
Last Modified: 2010-04-06
I'm looking for some perl code to detect the presence of a toolbar in the browser and its type (Google, alexa, etc).  Don' need a whole script - just the necessary to get the info...

cheers
0
Comment
Question by:jonnyfolk
  • 2
  • 2
6 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 12221856
You are definitely not going to do it with perl or anything else server side that I can think of.  The toolbars reside on the client, and they are BHOs, not plugins, so I doubt there is anything in the browser that can be tested.  You would need an activex control to look for the dll I think.

What is it you are trying to do that you need this?

Cd&
 
0
 

Author Comment

by:jonnyfolk
ID: 12444327
Hi Venabili,

thanks for bringing this to my attention.  I had left the question open to see if there was other comment.  I do not wish to accept  the answer of COBOLdinosaur, given in good faith as I'm sure it was, because it is plain wrong.  It is very straight forward to do this in perl:

if ($ENV{HTTP_USER_AGENT} =~ /Alexa/)

is one test (I got this from another source after I had posted) - had someone come up with something I would have awarded the points.

Regards,
Jon
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 12444926
I agree.  The question was not answer except by jonnyfolk.  So refund and PAQ would be appropriate... I shall save the solution for future reference; even thought what is being pickup could be spoofed by a malicious BHO trying to look like a good guy.

Cd&
0
 

Author Comment

by:jonnyfolk
ID: 12450375
Thanks for intervening,  COBOLdinosaur - I appreciate the time, effort and help that you give.  'Tis a great site indeed!
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12472049
PAQed, with points refunded (250)

modulo
Community Support Moderator
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
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 the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

792 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