Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

perl - how to detect if toolbar exists, and type

Posted on 2004-10-03
6
Medium Priority
?
143 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

609 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