HTTPS Everywhere rewrite engine implementation in Golang.
Contains exports for both compressed ruleset construction, client-side read-only use, and the reconstruction into memory of compressed rules, and finally the actual intended URL rewrite logic. Matching and rewrite operations use a regex interface bridge package, which can be implemented in the target environment.
Currently missing the cookie secure flag feature which will be in a future iteration.
Contact: [email protected]
go get github.com/tenta-browser/go-https-everywhere
Parse()
: Reads, and constructs the rulesets into memoryEncode()
/Decode()
/EncodeToPath()
: Handles encode and decode operationsTryRewrite()
: Searches and (if applicable) rewrites the input url according to the rewrite rulesShowStats()
: Prints a line of encoding statistics
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
For any questions, please contact [email protected]
We welcome contributions, feedback and plain old complaining. Feel free to open an issue or shoot us a message to [email protected]. If you'd like to contribute, please open a pull request and send us an email to sign a contributor agreement.
HTTPS Everywhere is a project of the Electronic Frontier Foundation.
The Electronic Frontier Foundation is the leading nonprofit organization defending civil liberties in the digital world. Founded in 1990, EFF champions user privacy, free expression, and innovation through impact litigation, policy analysis, grassroots activism, and technology development.
Support the EFF and HTTPS Everywhere
This HTTPS Everywhere Library is brought to you by Team Tenta. Tenta is your private, encrypted browser that protects your data instead of selling. We're building a next-generation browser that combines all the privacy tools you need, including built-in OpenVPN. Everything is encrypted by default. That means your bookmarks, saved tabs, web history, web traffic, downloaded files, IP address and DNS. A truly incognito browser that's fast and easy.