Print Page | Close Window

Browser Check

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=24484
Printed Date: 30 March 2026 at 4:18am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Browser Check
Posted By: Jeet Chowdhury
Subject: Browser Check
Date 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.



Replies:
Posted By: Scotty32
Date 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 - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: Jeet Chowdhury
Date 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.


Posted By: Jeet Chowdhury
Date 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?


Posted By: Scotty32
Date 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 http://www.s2h.co.uk/wwf/tips/intergration/member-only-pages.asp - Member-Only Pages

-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: MortiOli
Date 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.



Posted By: iSec
Date 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!


-------------
"When it gets dark enough, you can see the stars"
-Charles A. Beard


Posted By: marceloadeo
Date 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.
 


-------------
Marcelo Arruda.
___________________________________________
http://marcelo.spiox.com.br
Visite e deixe a sua mensagem de Paz e Amor.
__________________________________________



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net