Solved

Detect Browser Security Settings and Redirect

Posted on 2007-11-28
5
903 Views
Last Modified: 2008-02-02
Is there a way via javascript to detect the web browsers security settings and redirect the user to a URL based on the settings?  
0
Comment
Question by:RenitlahHelp
  • 2
5 Comments
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 500 total points
Comment Utility
RenitlahHelp,

Maybe if done by an object or something like it.  However there is no way for Javascript to just check the security settings in a browser.  For example, if Javascript were disabled then nothing would work at all, even the redirect.  Assuming javascript is enabled If certain objects are disabled then you can usually find out by ...

if (!object)

What exactly are you trying to check or use in the browser?  There will be cases where you can't do a good test like this but it will work with some.

Let me know if you have any questions or need more information.

b0lsc0tt
0
 
LVL 1

Expert Comment

by:Computer101
Comment Utility
Forced accept.

Computer101
EE Admin
0
 

Expert Comment

by:henryhbk
Comment Utility
Actually we just thought of a solution to the same problem:

Add text to the page something like:

"Your security settings are too high or javascript is disabled"

in a named div (or other container) then onload() of the page, run a javascript to hide/blank the text. If the script successfully works, then the user doesn't see the alert, but if not, then the alert will be passively displayed.
0
 
LVL 54

Expert Comment

by:b0lsc0tt
Comment Utility
Good alternative.  Like using the noscript tag.  Thanks for posting and sharing an interesting option for this that would be helpful for general detection of JS.
bol
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now