views:

23

answers:

2

how website checked that a request come from a browser or from a programs.

+4  A: 

in javascript you may use navigator.userAgent. note that this may vary from browser to browser. a good example how to use it can be found at quirksmode.

However be aware that you can edit the userAgentString at any time using the appropriate browser, script or code. so no absolute guarantee on the result - but at least a starting point.

cheers, markus

Markus Maria Miedaner
+2  A: 

If you would prefer to use server side code, and presuming you are using .net, the Request.Browser property will provide details of the agent making the request.

Matt