BleepingComputer.com: Prevent access

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Prevent access

#1 User is offline   defurman 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 62
  • Joined: 28-March 09
  • Gender:Male
  • Location:Wales

Posted 14 January 2012 - 07:04 AM

I am running a Linux OS and was wondering if it was possible to stop Internet Explorer from viewing my websites via the hosts file or by some other means?

#2 User is offline   buddy215 

  • Forum Addict
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 4,590
  • Joined: 14-April 06
  • Gender:Male
  • Location:West Tennessee

Posted 14 January 2012 - 08:13 AM

I do not understand what you are asking.
IE is Windows' browser. Unless you have installed IE using Wine, IE is not on your comp or accessing your comp while a Linux
distro is running.

Maybe you could explain further any problem you are having.

Is this a stand alone home computer...not on a home network or business network?

#3 User is offline   defurman 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 62
  • Joined: 28-March 09
  • Gender:Male
  • Location:Wales

Posted 14 January 2012 - 08:37 AM

Hi buddy215

Sorry i didn't make myself clear in the previous post.

Is it possible to prevent a visitor to my website who maybe using IE from accessing the site?

The visitor(s) obviously wouldn't be using my computer.

#4 User is offline   buddy215 

  • Forum Addict
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 4,590
  • Joined: 14-April 06
  • Gender:Male
  • Location:West Tennessee

Posted 14 January 2012 - 08:56 AM

So you are the website administrator/ webmaster?

Is the website hosted on your computer or another server? Just asking so someone
who is more knowledgeable about setting up a website can assist you.
I would imagine it would be possible to block IE users.
But what would they see when attempting to visit the site? Would you want the IE users to see
a message explaining what they must do to view the site?

#5 User is offline   defurman 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 62
  • Joined: 28-March 09
  • Gender:Male
  • Location:Wales

Posted 14 January 2012 - 09:10 AM

My whole purpose in asking this question was to determine if it is possible to block a web browser from accessing my web site and how i might accomplish it.

#6 User is offline   buddy215 

  • Forum Addict
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 4,590
  • Joined: 14-April 06
  • Gender:Male
  • Location:West Tennessee

Posted 14 January 2012 - 10:31 AM

BC has a forum for that where you might get a quicker and more knowledgeable response from those
who monitor it. http://www.bleepingcomputer.com/forums/forum38.html

This post has been edited by buddy215: 14 January 2012 - 10:34 AM


#7 User is offline   Chase_Wheeler 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 41
  • Joined: 11-January 12

Posted 14 January 2012 - 12:16 PM

I know this is in the wrong section but I will answer it anyways. I only did a small bit of googleing and the first website I came upon was this one. They offer a couple different ways but the easy one to use is the javascript one found in the code block below

<html>
<head>
        <meta http-equiv="refresh" content="1; 
URL=http://www.domain.com/realhomepage.html">
</head>
<body>
<script language="javascript">
<!--
if (navigator.appName == "Microsoft Internet Explorer") {
        document.location = "http://www.domain.com/ie_reject.shtml"; 
} else { 
        document.location = "http://www.domain.com/realhomepage.html";
}
// -->
</script>
</body>
</html>


But also you can "block" specific Internet Explorer browsers with the If IE command found below
<!--[if IE 6]>
Special instructions for IE 6 here, Replace the 6 with whichever version you want to block.
You can also have one of these statements for every version of IE
<![endif]-->


with that one what you do is you have IE load different CSS files for each browser, so if you really want to block IE all together have the CSS put all of the content on the page to invisible, or the height to 0 or something, Its been awhile since I have done it but it works with some tinkering.

The better thing to do instead of just plain blocking them is to offer them a better alternative. So build a page that tells them that you don't approve of Microsoft (or whatever reason you are blocking IE) and offer them a link to whatvever browser you want them to use, like Mozilla Firefox, or Google Chrome. Make sure to add in a picture of the icon or something and make it look pretty so that they will actually consider getting it, I would suggest going to this website if you are going to offer firefox, it has almost every banner they offer. Also Google Chrome, Opera, and even (god forbid) Safari should have their own version of that page, just do a google search or look around on the browsers website.

#8 User is offline   stiltskin 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 136
  • Joined: 26-June 11
  • Gender:Male
  • Location:Western MO

Posted 14 January 2012 - 12:21 PM

I haven't done web pages in over a decade. But all it should take/used to take is detecting the browser identity and reacting to it. Usually that would mean sending it to an alternate page that would tell them IE isn't welcome. Put in a nicer way, of course.

There should be tons of tutorials on the net to show how. Here's just one such tutorial.

If the alternate page contains a "contact me" link, expect to get some nasty comments. Even if it doesn't many will come back with another browser just to get to a page they can view so they can give you grief.

#9 User is offline   pane-free 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 53
  • Joined: 10-February 11
  • Gender:Male
  • Location:Up the River without a paddle in Pacific NW

Posted 19 January 2012 - 01:53 PM

Thank you, Chase_Wheeler, for the intro tutorial -- it will most likely be my first foray into CGI script on one of my websites!
Most informative!

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users