Block old browser versions and suspicious browsers

Plugin Banner

Block old browser versions and suspicious browsers

by hupe13

Download
Description

Every time your web browser makes a request to a website, it sends a HTTP Header called the “User Agent”. The User Agent string contains information about your web browser name, operating system, device type and lots of other useful bits of information.

The plugin sends with an API the User Agent string of every browser that accesses your website for the first time to https://api.whatismybrowser.com/api/v2/user_agent_parse to obtain following information about the User Agent:

  • Software Name & Version
  • Operating System Name & Version

WhatIsMyBrowser.com API Terms and Conditions

With this information, the plugin attempts to detect old and bad browsers and denies them access to your website.

HowTo

  • Go to What is my browser? and sign up to the WhatIsMyBrowser.com API for a Basic (free) Application Plan.
  • You have a limit of 5000 hits / month for Parsing User Agent. That’s why the plugin manages a database table.
  • The user agent string of every browser that accesses your website for the first time is sent to this service, and the information is stored a table.
  • Browsers are blocked if the browser and/or system are outdated:
    • Default: Chrome and Chrome based browsers < 128, Firefox < 128, Internet Explorer, Netscape (!), Opera < 83, Safari < 17
    • Old systems are all Windows versions prior to Windows 10, some MacOS and Android versions.
  • It will be blocked also if the “simple software string” contains “unknown” or is empty.
  • You can also set up other browsers.
  • Sometimes there are false positive, for example, if the browser is from Mastodon. In this case, you can exclude it from the check.
  • The plugin checks whether the crawlers really originate from Google, Bing, Yandex, Apple, Mojeek, Baidu, Seznam.

About robots.txt

  • You can configure some rewrite rules to provide a robots.txt file that can allow or deny crawling for a browser. If crawling is denied, access to your website will be blocked for that browser.

Logging

  • The logging can be very detailed. Please check the logs and the WIMB table regularly.
  • Install the plugin in the usual way.
  • Go to Settings – WIMB and Block – and get documentation and settings options.
  1. Database settings <br />

    Database settings

  2. Exclude these browsers from checking / Always block browsers with this strings <br />

    Exclude these browsers from checking / Always block browsers with this strings

  3. robots.txt settings <br />

    robots.txt settings

  4. Access attempts from the same IP address are blocked within 4 seconds (this can also happen more quickly). <br />

    Access attempts from the same IP address are blocked within 4 seconds (this can also happen more quickly).

1.0.1 / 251211

  • readme.txt and documentation
Back to top