Skip to main content

About BrowserLimit

Browserlimit is a TurboGears2 extension meant to quickly limit access to a website only to modern browsers. BrowserLimit requires TurboGears2.1.4 or newer.

Installing

tgext.browerlimit can be installed both from pypi or from bitbucket:

easy_install tgext.browserlimit

should just work for most of the users

Enabling BrowserLimit

Using BrowserLimit is quite simple, you can just plug it using tgext.pluggable.

If you want to avoid using tgext.pluggable for any reason it is still possible to use tgext.browserlimit by manually setting it up. At the end of your application config/app_cfg.py import tgext.browserlimit:

import tgext.browserlimit
tgext.browserlimit.plugme(base_config, {})

Choosing Browser Limits

By default tgext.browserlimit will limit site access to browsers which have a fairly compatible HTML4 support, those include IE8, Chrome4, Firefox3.6, Safari3.2

This can be changed by specifying the base_config.browserlimit option inside your config/app_cfg.py before loading browserlimit. Valid values are:

  • MODERN -> Most modern browsers with top edge features

  • HTML5 -> Minimal HTML5 support like video and canvas

  • BASIC -> Good HTML4 support (the default)

  • MINIMAL -> Cover as much as possible (minimum IE version 7)

New limits can be enabled using the base_config.browserlimits option. This must be a dictionary where the KEY is the limit name and the value is a class that implements __init__(self, user_agent) and is_met(self, environ) -> bool methods.

Metadata

Release files for tgext.browserlimit 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tgext.browserlimit 0.1.2
File Size Uploaded Provenance Actions
tgext.browserlimit-0.1.2.tar.gz 114.3 kB Without provenance Details for tgext.browserlimit-0.1.2.tar.gz

Release files / tgext.browserlimit-0.1.2.tar.gz

Download URL tgext.browserlimit-0.1.2.tar.gz
Size 114.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ffce26220f5940afded82cba7bf3a5031920eb22d4739c9188c38083a9765632
BLAKE2b-256 checksum
How to use checksums
54324996555cd8a3cd28598d006c17e244098a203473589e3c7eab13c5911b5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for tgext.browserlimit 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page