Solved

perl - how to detect if toolbar exists, and type

Posted on 2004-10-03
6
136 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
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.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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 …

786 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