SkillAgentSearch skills...

Httpseverywhere

Go implementation of using HTTPS Everywhere rule sets to send traffic over HTTPS

Install / Use

/learn @getlantern/Httpseverywhere
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

httpseverywhere

Go implementation of using HTTPS Everywhere rule sets to send traffic over HTTPS. Many thanks to the EFF team maintaining such an amazing project!

Example usage:

import "url"
import "github.com/getlantern/httpseverywhere"

...

httpURL, _ := url.Parse("http://name.com")
rewrite := httpseverywhere.Default()
httpsURL, changed := rewrite(httpURL)
if changed {
	// Redirect to httpsURL
	...
}

Please note that this library does not support any rules that include backtracking, specifically any rules with (?! or (?=, because those are not supported in Go's regular expressions packages for performance reasons. That excludes approximately 6,000 out of around 22,000 rule sets.

Related Skills

View on GitHub
GitHub Stars11
CategoryDevelopment
Updated3y ago
Forks2

Languages

Go

Security Score

75/100

Audited on Oct 2, 2022

No findings