Help... need a script =)

in General Discussion edited January 2014
Can someone pliiz find me a script that allows a page NOT to be seen with WINDOWS??

I'd like to have one script like that for some pages with pictures... i have too many visitors using windows

so i'd put there a message something like "Sorry! You use Windows! Please try again with a computer"

(that is... ANY OTHER OS (linux etc) are



  • Reply 1 of 15
    oh yes, this is a fairly easy job.

    Copy this between the <head> tags on your page:

    [code]<script language="Javascript">

    winbrowser = (navigator.appVersion.indexOf("Windows")!=-1) ? true : false;


    and then in the &lt;body&gt; of the page:

    [code]&lt;script language="Javascript"&gt;

    if (winbrowser)

    document.write("What an ugly computer you have! &lt;a href=;get a Mac&lt;/a&gt;");

    if (!winbrowser)

    document.write("I'm glad you don't use Windows.");



    Oh, and here's a small page showing that script in action:

    <a href=""; target="_blank"></a>;

    [ 09-01-2002: Message edited by: Brad ]</p>
  • Reply 2 of 15
    hmm, what a pointlessly babyish thing to do
  • Reply 3 of 15
    giaguaragiaguara Posts: 2,724member
    Hey, there are more pointless things in net...

    like the right click scripts...

    <img src="graemlins/bugeye.gif" border="0" alt="[Skeptical]" />

    so i'll defnitelly have fun with that..


  • Reply 4 of 15
    vargasvargas Posts: 426member
    [quote]Originally posted by leviathan:

    <strong>hmm, what a pointlessly babyish thing to do</strong><hr></blockquote>

    Yeah! I abhore all forms of imaturity, poo poo breath!
  • Reply 5 of 15
    johnrpjohnrp Posts: 357member

    Is there a similar piece of magic to check ONLY for winoze XP ?
  • Reply 6 of 15
    No, not that I'm aware of, John.
  • Reply 7 of 15

    Uh, now that there are so many stupid scripts that makes the pages not to be visualised if NOT browsed with winzoz and IE .. it's more than right to do something different

    "Sorry... you are using MICROSOFT internet explorer or windowz... "

    <img src="graemlins/smokin.gif" border="0" alt="[Chilling]" />

    Just couldn0t see a tattoo page with IE .. then tried with omni and it told that i should see it with IE :confused: :confused:

    That XP script sounds as well
  • Reply 8 of 15
    John i think i could write you one, although it will also block against windows NT sence thats what windows XP is. Mulattabianca didnt i already send you a script that does this?

    [ 09-01-2002: Message edited by: Mount_my_floppy ]</p>
  • Reply 9 of 15
    You can detect many details about visitors to your website by using <a href=""; target="_blank">this script</a>.

    View source to see how it's done--note that some of the values that are detected (like OS==XP) are not used in the demo page but are available for your own use.

    [ 09-01-2002: Message edited by: stupider...likeafox ]</p>
  • Reply 9 of 15
    giaguaragiaguara Posts: 2,724member
    Yes you did send it to me...

    just that it worked with php only and i can't use php in my case

    i try this new one

    .. so when i'll have some more mac pictures..
  • Reply 11 of 15
    giaguaragiaguara Posts: 2,724member
    Now ... uh?

    If i want ONLY that 'Please get a computer' to be seen with the winzoz users what do i have to add to the script so it won't show the rest???
  • Reply 12 of 15
    Everything you want hidden from the Widows users has to be contained within the second "document.write" block.
  • Reply 13 of 15
    giaguaragiaguara Posts: 2,724member
    I want to have hidden EVERYTHING else but the 'go and get a computer'

    thuh.. gonna try now..
  • Reply 14 of 15
    Is Mulattabianca for real?
  • Reply 15 of 15
    giaguaragiaguara Posts: 2,724member
    I am serious.

    And seriously want to fix that script that way that once there is a visitor using windows he won't see else than the 'go and get a computer'. so i'll need also a way to make the rest invisible in html, otherwise it's enough to see the source and cut and paste the location.

    I want to have a page with something that the non-windows users only will be able to see. For winzoz then, NOT even in the source what is going on.

    So now is this better do somehow 'create a .php' page after detecting the SO?

    In that case i should have that page hosted in an other server...

    Yes, I am pissed about the pages that i can't see with OTHER THAN WINDOWS OR INTERNET EXPLORER. Now this 'stupid childish script' is partly a revenge as well.

    I want to see the pages i visit with any browser, any SO. So before that works, I will use this somewhere. My page? Right. So i can sometimes decide who i want to be able to see it. Kinda password.

    Serious, yes.
Sign In or Register to comment.