Blocking Mac / Gecko-20100101 By User Agent? - user-agent

I have a particularly annoying Mac user who is spamming me. This is the user-agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20100101
Firefox/9.0"
Would you suggest to block it via htaccess? Is the following sufficient or is Gecko/20100101 a common user agent?
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} Gecko/20100101 [NC]
RewriteRule ^ - [F,L]

No, that's really not a good way to do it. First, you're blocking everyone who uses that version of firefox on a Mac running OSX 10.6. Second, you aren't blocking him when he switches to another browser to continue trolling you. Just block the ip address, or issue a cookie that returns a token when a user revisits the site, and automatically adds them to the blacklist if the token belongs to an offender. You can also block users who refuse the cookies if the problem is incredibly pervasive to ensure he can't just turn cookies off to circumvent this. There are of course ways around this for a persistent or knowledgeable pest, however in 99.9% of cases this will get rid of them.

The UA string of Firefox itself is broken down into four components:
Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion
Mozilla/5.0 is the general token that says the browser is Mozilla compatible, and is common to almost every browser today.
platform describes the native platform the browser is running on (e.g. Windows, Mac, Linux or Android), and whether or not it's a mobile phone. Firefox OS phones simply say "Mobile"; the web is the platform. Note that platform can consist of multiple "; "-separated tokens. See below for further details and examples.
rv:geckoversion indicates the release version of Gecko (such as "17.0"). In recent browsers, geckoversion is the same as firefoxversion.
Gecko/geckotrail indicates that the browser is based on Gecko.
On Desktop, geckotrail is the fixed string "20100101"
Firefox/firefoxversion indicates the browser is Firefox, and provides the version (such as "17.0").
from Firefox 10 on mobile, geckotrail is the same as firefoxversion

Related

All the websites detect wrong OS and browser version of my computer. Why?

I am using Windows 10 (insider build) and Firefox 58.0.2. But all the browser detection sites like www.whatismybrowser.com and similar says that I am using Firefox 52 on Windows 7. Detection scripts also return wrong screen resolution.
Can anyone say why is that? Maybe some firefox plugin - but I am not using any that would do that, that I know of. Maybe uBlock Origin?
If you have the setting privacy.resistFingerprinting turned on in about:config, Firefox will pretend to be the most recent ESR version (in this case 52) on the most common OS (Windows 7).
This is to make your browser's user agent string the same as a lot of other people's, so it's harder for sites to use it to identify you.
https://bugzilla.mozilla.org/show_bug.cgi?id=1418672

Detect (from a webpage) what browsers are installed?

I suspect the answer is NO b/c I doubt one browser has access to info about other browsers. But I wanted to verify.
Is there anyway for a website to detect what other browsers are installed (on a Windows computer)?
No, you can only get info on the web browser they are using.

Browser Custom Protocol unsafe

Using other helpful answers on the StackExchange community I have a custom URI protocol registered on a client's machine. It points to a simple AppleScript that we can then change as needed. In testing on our Mac here, it works without issue with a link formatted like:
oururl://path/here
However, when trying to click that url on their machines, in Safari, Firefox, and Chrome, the URL is automatically changed to:
unsafe:oururl://path/here
So far I've been unable to find any additional information on why the "unsafe:" prefix is being added or how to address it. Any insight or workarounds?
Version info:
OSX 10.6.8
Safari 5.1.10 (6534.59.10)
Firefox 26.0
Chrome Version 30.0.1599.101
Thanks.
It turns out this was much simpler than I thought (as usually happens in software development). Somehow I didn't catch this until user testing, which is what threw me in the direction of thinking it was a Mac issue. This is not a Mac issue.
I'm using the AngularJS framework and one of its "features" is to mark unknown protocols with an unsafe prefix. I used this answer to configure it to recognize mine and now all is well.

Apple and Internet Explorer

Someone smart who I know just mentioned that the idea of downloading Internet Explorer onto a Mac seems counterintuitive, even though it might make sense to do since Safari seems to have problems on a certain site for a project we're working on. I'm just wondering why this is and would greatly appreciate any clarification. In summary:
Why does it not make sense to download Internet Explorer onto a Mac?
Much thanks in advance!
If you're looking for a serious answer:
The best way to test something with IE7 for Windows is to use IE7 for Windows. Just because you have a Mac doesn't mean you can't do that. You can run Windows through BootCamp. Or buy a used $99 Windows box and borrow the Mac's keyboard/mouse/etc. Of course it's much more convenient, and almost certainly good enough, to run Windows in a VM under OS X via Parallels, VMware, etc. Wine will mostly work, but it can be fiddly to configure, and may crash and/or have visual glitches that don't happen with real Windows; if you really want to get serious about that you may want to look at Crossover.
But the next best way to test IE7 for Windows is actually Opera. Of course in the case of bugs and quirks that are still present in later versions of IE, they'll do a perfect job of emulating IE7, but for bugs that were fixed, that's not a particularly important focus. Opera, on the other hand, works hard to be able to emulate the quirks of all of the important browsers. Make sure to enable IE quirks mode, and set the user agent to pretend to be IE7 for Windows, and you should be golden.
But for the question you actually asked, there is no blanket answer to this that could possibly be correct. There are many reasons it may not make sense to download Internet Explorer onto a Mac, and also many reasons why it might.
You can't run IE for Mac on any modern Mac.
If you have an ancient Mac, and it's running 10.2 or 10.3 rather than 10.4, it already has IE (and if you want to reinstall it, it's part of the OS X install), so there's no reason to download IE.
You also can't legally download IE for Mac from anywhere anymore (except as part of old versions of OS X).
And IE for Mac is actually far less like IE7 for Windows than any modern browser is.
You can't run IE for Windows (or Pocket IE for Windows Mobile) on Mac OS X.
But you can run it under wine.
And you can run it in a virtual machine running Windows.
Except that Windows comes with Internet Explorer, so there's no reason to download it.
Unless your Windows comes with an older version and you want to update it.
And a Mac can run Windows instead of OS X if you want (e.g., via BootCamp).
Same caveats as with a VM.
And there may be other reasons to download it other than running it.
If your Mac has access to a fast internet connection and your Windows box doesn't, you might want to download the installer on the Mac to copy it locally to Windows.
Sometimes you just want to use up internet bandwidth.
Maybe you're testing your download speeds.
Maybe you're about to dump your boyfriend, and first you want to run him $300 over his monthly bandwidth limits.
Someone at Microsoft might find it entertaining when they notice in the logs that you've downloaded IE on a Mac, and it's always nice to bring a smile to a stranger's face.
The last version of Internet Explorer for Macintosh was 5.2, out in 2003. It wouldn't even run on a modern machine. The build is just not compatible.
If you want to try a different browser, both Chrome and Firefox run on OSX.
To run internet explorer on the Mac, you'd need to use some sort virtualization, running Windows either through Boot Camp or Parallels.
I had to do it because I'm developing software and the client wants to have it styled for IE 7 (the version they have on all their machines).
If I had my druthers, I'd run it under virtualization (e.g., VMWare), but I've misplaced my old XP CDs, so I settled for Wine (which works 'okay', but crashes from time-to-time).
I suggest using VirtualBox which would enable you to run MSIE on your Mac directly:
https://www.virtualbox.org/
...and here are the VMs for MSIE 6, 7, 8 and 9:
https://github.com/xdissent/ievms
Good luck!
It's definitely not a good idea to install Internet Explorer for Mac. It simply doesn't work properly as it was discontinued by Microsoft in 2005. However, if you have to use it to view certain websites that will only work in IE, this is the easiest way to download and install it for Mac: http://machow2.com/download-internet-explorer-for-mac/

ZeroConf extension that can be used in Firefox/XULRunner?

Is there a ZeroConf client extension for Firefox/XULRunner to be used in a zeroConf environment based on either mDNS or SLP?
I know of an extension already that's being developed by the ActiveState Open Komodo folks but it requires PyXPCOM support to be baked into the XULRunner runtime in order to access the Apple Bonjour libs for Windows. Is there anything else available?
It appears that Andrew Tunnell-Jones has undertaken the task.
http://andrew.tj.id.au/projects/bonjourfoxy/
I have not yet verified that it works for me under Windows, but I am hopeful :)
It did not discover that I activated web sharing here, only with a user account active. Let me know what you find.
BonjourFoxy has come some way since Thorbjørn Ravn Andersen's post. It's implemented as a set of binary XPCOM modules tied together with a JavaScript XPCOM service. The service can be used to register, browse and resolve services as well as to enumerate browse and registrations domains. It builds and runs on OS X 10.5 (Intel), Ubuntu 8.10 (32-bit) and Windows XP (32-bit) and has been run on Windows 2000 as well.
The links given in this answer are dead or misleading.
It seems like the project has changed its name and can now be found at
http://dnssd.me/ .
I can confirm it works on
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0 on Win7.
I would have commented the posts, but don't have enough reputation to do so.

Resources