• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

only browsers allowed at my site.

 
hasan khan
Ranch Hand
Posts: 223
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to create a filter which should check whether request is from browser or not,
if yes then only allow.

so i am checking for header User-Agent
i want to know what can be possible values of User-Agent are for different browsers of different version

i have 4 different browsers installed on my pc.

OPERA 7.54 = Opera/7.54u1 (Windows NT 5.0; U) [en]

IE6 = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

NETSCAPE 7.2 = Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)

MOZILLA FIREFOX 1.0 = Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

if any one having browser other than the above 4 please go to
http://www.myjavaserver.com/~hasstar/aboutserver.jsp

and check User-Agent and tell me, it will be good help for me.
 
Colin Fletcher
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know of command line programs that submit requests and set the User-Agent to appear like a browser....
 
hasan khan
Ranch Hand
Posts: 223
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what to do then ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic