Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Browser Check
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Browser Check

 Post Reply Post Reply
Author
Jeet Chowdhury View Drop Down
Groupie
Groupie
Avatar

Joined: 25 August 2007
Location: India
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jeet Chowdhury Quote  Post ReplyReply Direct Link To This Post Topic: Browser Check
    Posted: 22 September 2007 at 8:54pm
I want only IE7 user can visit my site. other browser user see a message "plz use internet explorer (non ie users)" and ie users see a message "plz upgrade ur version to 7". how use browser check function in index.asp file. can anyone plz giv me the codes.
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2007 at 11:00am
why on earth would you want to restrict your visitors to IE?

do you want to infect them with spyware??
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
Jeet Chowdhury View Drop Down
Groupie
Groupie
Avatar

Joined: 25 August 2007
Location: India
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jeet Chowdhury Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2007 at 4:49pm
no no, actually in some of page i used asp.net 2.0 there was some incompatibility with Mozilla, and opera is main problem. opera user easily download my secure files. cause they disabled script and in Mozilla i can't stop the disable right click method.
Back to Top
Jeet Chowdhury View Drop Down
Groupie
Groupie
Avatar

Joined: 25 August 2007
Location: India
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jeet Chowdhury Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2007 at 4:52pm
if you not wish to give me the mod, then tell me how to secure site. like with a valid user name and password a user can download a file. similar after enter user name and password the link will be displayed. but in opera it always displayed.

I use this method.

like

IF USER=TRUE THEN
HYPERLINK1.VISIBLE=TRUE
ELSE
RESPONSE.WRITE("YOU NEED A VALID USER NAME AND PASSWORD.")
END IF

what i need to do?
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2007 at 6:28pm
are you using JavaScripts to secure your files? as this can be turned off by any user on any browser.

if you want to secure your files with ASP and Web Wiz Forums member base, you can view the tutorial i did on Member-Only Pages
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
MortiOli View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 May 2002
Location: United Kingdom
Status: Offline
Points: 514
Post Options Post Options   Thanks (0) Thanks(0)   Quote MortiOli Quote  Post ReplyReply Direct Link To This Post Posted: 15 October 2007 at 8:10pm
Jeet,

I've added this code to my forums, to warn users that the forum may not display properly in IE 6 or lower;

<!--[if lt IE 7]>
<br />
<table class="errorTable" cellspacing="1" cellpadding="3" align="center">
<tr>
<td><img src="<% = strImagePath %>error.gif" alt="<% = strTxtError %>" align="absmiddle"/> <strong>We have noticed that you are using Internet Explorer 6</strong></td>
</tr>
<tr>
<td>
<strong>To get the most out of the UK Alliance forums, please use either Internet Explorer 7, Opera, FireFox or Safari</strong>
</td>
</tr>
</table>
<![endif]-->


It's code which is only picked up by IE, and basically says if the browser is lower than IE 7, show the message.

I added this due to the issues with PNG files showing in IE 6 and below.

Hope that helps.

Back to Top
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Post Options Post Options   Thanks (0) Thanks(0)   Quote iSec Quote  Post ReplyReply Direct Link To This Post Posted: 15 October 2007 at 9:25pm
Originally posted by MortiOli MortiOli wrote:

I've added this code to my forums, to warn users that the forum may not display properly in IE 6 or lower
 
Very nice job! I've been waiting for this since v9 was released.
I think this should be added to the next release and be an option for admins to turn off/on.
Thanks man!


Edited by Info_Tech - 15 October 2007 at 9:26pm
"When it gets dark enough, you can see the stars"
-Charles A. Beard
Back to Top
marceloadeo View Drop Down
Newbie
Newbie
Avatar

Joined: 14 December 2006
Location: Brazil
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote marceloadeo Quote  Post ReplyReply Direct Link To This Post Posted: 25 October 2007 at 1:26am
Hi,
 
 
Use an file includes with the following code an your pages, because I am using and he filters the following navigators: IE, Firefox, Opera, Netscape Navigator, Safari, Flock, Avant Browser , Maxthon.
 
------ Begin code -------
 
<p align="center"><span style="color:#0000FF; font-family:Arial, Helvetica, sans-serif; font-weight:bold; font-size:14px;">
<%
Dim nav
nav = Request.ServerVariables("HTTP_USER_AGENT")
if instr(nav,"MSIE") then
   if instr(nav,"Maxthon") or instr(nav,"MAXTHON") then
     response.write "Seu navegador é Maxthon<br><br>"
     Response.write nav
     Response.Write "<br><br>Este site deve ser visualizado utilizando o Internet Explorer para que todas as suas funções sejam realmente funcionais."
  Response.End()
   elseif instr(nav,"Avant Browser") then
     response.write "Seu navegador é Avant Browser<br><br>"
     Response.write nav
     Response.Write "<br><br>Este site deve ser visualizado utilizando o Internet Explorer para que todas as suas funções sejam realmente funcionais."
  Response.End()
   else
     'response.write "Seu navegador é Internet Explorer<br>"
     'Response.write nav
   end if
elseif instr(nav,"Firefox") then
   if instr(nav,"Navigator") then
     response.write "Seu navegador é Netscape Navigator<br><br>"
     Response.write nav
     Response.Write "<br><br>Este site deve ser visualizado utilizando o Internet Explorer para que todas as suas funções sejam realmente funcionais."
  Response.End()
   else
     response.write "Seu navegador é Firefox<br><br>"
     Response.write nav
     Response.Write "<br><br>Este site deve ser visualizado utilizando o Internet Explorer para que todas as suas funções sejam realmente funcionais."
  Response.End()
   end if
elseif instr(nav,"Opera") then
     response.write "Seu navegador é Opera<br><br>"
     Response.write nav
     Response.Write "<br><br>Este site deve ser visualizado utilizando o Internet Explorer para que todas as suas funções sejam realmente funcionais."
  Response.End()
elseif instr(nav,"Safari") then
     response.write "Seu navegador é Safari<br><br>"
     Response.write nav
     Response.Write "<br><br>Este site deve ser visualizado utilizando o Internet Explorer para que todas as suas funções sejam realmente funcionais."
  Response.End()
else
     response.write "Seu navegador não foi detectado, ou seja, você não utiliza nenhum dos navegadores mais conhecidos: Internet Explorer, Firefox, Opera, Netscape Navigator, Safari."
     Response.write nav
     Response.Write "<br><br>Este site deve ser visualizado utilizando o Internet Explorer para que todas as suas funções sejam realmente funcionais."
  Response.End()
end if
%>
</span></p>
 
------ End code --------
 
 
 
Ok,
 
 
Marcelo.
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.