?
Solved

perl - how to detect if toolbar exists, and type

Posted on 2004-10-03
6
Medium Priority
?
142 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

800 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