Slashdot Mirror


New Apache Mod: Microsoft-Free Fridays

cygnusx writes "This Apache mod is great for laughs -- but given the number of people who use IE, I can't see too many webmasters adopting it."

12 of 27 comments (clear)

  1. Hrmm... by joq · · Score: 3

    It's funny but unless it's a non commercial site, someone would have to be off the rockers to use it. Money is money any way you look at it whether it's from an IE (l)user or other. Easy way as well is to just use fix your httpd.conf like so:

    BrowserMatchNoCase "MSIE" cocksucker
    <FilesMatch *>
    Order Deny,Allow
    Deny from env=cocksucker
    </FilesMatch>

  2. Why a module....?? by tiwason · · Score: 2

    Two lines of mod-rewrite could do the same thing..

    1. Re:Why a module....?? by BluSkreen · · Score: 2

      I suppose you could use Rewrite cond, but you'd still have to create the result file, as I don't see a way to do that in mod_rewrite.

      Doing it as a module is probably a lot less overhead, than reading the directive and expression, then displaying the result.

      Don't know how useful it is, but it's pretty cute.

      Dave

  3. but *friday* by Anonymous Coward · · Score: 2

    Hi. I wrote the module. I admit to being largely ignorant to Apache-anything, but AFAIK there isn't any configuration directive that says, "Only on Friday, do ."

    1. Re:but *friday* by babbage · · Score: 2

      mod_perl? It's more advanced than anything I've done personally, but apparently mod_perl makes it pretty easy to embed Perl code into your Apache configuration files. I don't see why you couldn't use that mechanism to block a given user agent on a given day of the week, if that's what you really wanna do...

  4. Thanks for checking for Opera! by weave · · Score: 3

    Beings that Opera can disguise itself as the other big user agents, it's a nice touch that your module doesn't exclude opera users! :)

    1. Re:Thanks for checking for Opera! by DNS-and-BIND · · Score: 2

      Opera users are already excluded from many web sites, due to the User-Agent problem and the javascript implementation. You can change your User-Agent, true, but it's buried in the configuration menus...it should really be on the taskbar.

      --
      Shutting down free speech with violence isn't fighting fascism. It IS fascism!
  5. good module demo by josepha48 · · Score: 2
    This is actually a good example of a basic apache module. I wrote a module a while ago and this is what the basic principle looks like. Using this as a template it would make writing apache modules super easy.

    It shows how to acces things in the headers_in, and how to write messages. Thus cookies are part of the headers in also, so it would be easey to modify to read the cookies.

    I don't want a lot, I just want it all!
    Flame away, I have a hose!

    --

    Only 'flamers' flame!

  6. bye bye nose? by shokk · · Score: 2

    Anyone using this on their server is cutting off their nose to spite their face. Banner ads have enough trouble displaying and anyone rejecting IE eyeballs at their site is rejecting a large percentage of the Internet that day and insuring that advertisers won't pay full rate. No one owning a store would tell people

    Non-commercial sites would probably do OK with this, but note that some people running Apache Linux servers may not be browsing with a non-MS browser and you might be pushing them away from using open stuff. Is it really that open, then?

    --
    "Beware of he who would deny you access to information, for in his heart, he dreams himself your master."
    1. Re:bye bye nose? by Get+Behind+the+Mule · · Score: 2

      Is it really that open, then?

      The Web will never be open again if M$ succeeds in getting away with it. Through illegal activity (as confirmed by the appeals court), M$ has managed to demolish the browser market. Now, with the Smart Tags, they're starting to do what everybody expected them to do when they gain a browser monopoly -- take the control of the Web away from the general population, and try to control it themselves.

      Since the courts are evidently too timid to treat M$ the way a criminal should be treated (and the Justice Department probably will be as well), then the only way to restore normal competition in the browser market to the benefit of consumers and an open Web is to ensure that IE does not get used any more. Any means of persuading the general public of this is certainly legitimate. I just think we need another six days in the Microsoft-Free Week.

  7. Funny, but think about it by jchristopher · · Score: 2
    Okay, it's funny, and ought to be on the front page. :) But do you really want to exclude IE users from your site, when you consider that MANY of them (corporate users) have no choice whether or not to use IE?

    I happen to think that alot of Linux people are arrogant and stuck up, but I don't exclude them from my sites, even one day a week.

    While you ponder your answer, I'll be hard at work on some javascript that boots Konqueror users to microsoft.com.

  8. Re:Would you share your knowledge? by tiwason · · Score: 2

    You want code.....

    Partial code you shall get...

    Time Dependend Rewriting (Its based on time... days would be simple) -http://www.engelschall.com/pw/apache/rewriteguide /#ToC20

    Browser Dependend Content - http://www.engelschall.com/pw/apache/rewriteguide/ #ToC25

    Both taken from "A Users Guide to
    URL Rewriting with the
    Apache Webserver" circa pre 2000