An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 1.0% on proxy.golang.org
Top 0.2% dependent packages on proxy.golang.org
Top 0.2% dependent repos on proxy.golang.org
Top 2.2% forks on proxy.golang.org
Top 0.3% docker downloads on proxy.golang.org

proxy.golang.org : github.com/gorilla/csrf

Package csrf (gorilla/csrf) provides Cross Site Request Forgery (CSRF) prevention middleware for Go web applications & services. It includes: * The `csrf.Protect` middleware/handler provides CSRF protection on routes attached to a router or a sub-router. * A `csrf.Token` function that provides the token to pass into your response, whether that be a HTML form or a JSON response body. * ... and a `csrf.TemplateField` helper that you can pass into your `html/template` templates to replace a `{{ .csrfField }}` template tag with a hidden input field. gorilla/csrf is easy to use: add the middleware to individual handlers with the below: ... and then collect the token with `csrf.Token(r)` before passing it to the template, JSON body or HTTP header (you pick!). gorilla/csrf inspects the form body (first) and HTTP headers (second) on subsequent POST/PUT/PATCH/DELETE/etc. requests for the token. Note that the authentication key passed to `csrf.Protect([]byte(key))` should be 32-bytes long and persist across application restarts. Generating a random key won't allow you to authenticate existing cookies and will break your CSRF validation. Here's the common use-case: HTML forms you want to provide CSRF protection for, in order to protect malicious POST requests being made: Note that the CSRF middleware will (by necessity) consume the request body if the token is passed via POST form values. If you need to consume this in your handler, insert your own middleware earlier in the chain to capture the request body. You can also send the CSRF token in the response header. This approach is useful if you're using a front-end JavaScript framework like Ember or Angular, or are providing a JSON API: If you're writing a client that's supposed to mimic browser behavior, make sure to send back the CSRF cookie (the default name is _gorilla_csrf, but this can be changed with the CookieName Option) along with either the X-CSRF-Token header or the gorilla.csrf.Token form field. In addition: getting CSRF protection right is important, so here's some background: * This library generates unique-per-request (masked) tokens as a mitigation against the BREACH attack (http://breachattack.com/). * The 'base' (unmasked) token is stored in the session, which means that multiple browser tabs won't cause a user problems as their per-request token is compared with the base token. * Operates on a "whitelist only" approach where safe (non-mutating) HTTP methods (GET, HEAD, OPTIONS, TRACE) are the *only* methods where token validation is not enforced. * The design is based on the battle-tested Django (https://docs.djangoproject.com/en/1.8/ref/csrf/) and Ruby on Rails (http://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection.html) approaches. * Cookies are authenticated and based on the securecookie (https://github.com/gorilla/securecookie) library. They're also Secure (issued over HTTPS only) and are HttpOnly by default, because sane defaults are important. * Go's `crypto/rand` library is used to generate the 32 byte (256 bit) tokens and the one-time-pad used for masking them. This library does not seek to be adventurous.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/gorilla/csrf
Keywords: csrf , csrf-protection , csrf-tokens , golang , gorilla , middleware , security , xsrf
License: BSD-3-Clause
Latest release: 3 months ago
First release: over 9 years ago
Namespace: github.com/gorilla
Dependent packages: 384
Dependent repositories: 2,067
Stars: 872 on GitHub
Forks: 147 on GitHub
Docker dependents: 127
Docker downloads: 73,701,561
See more repository details: repos.ecosyste.ms
Last synced: 21 minutes ago

Top 6.6% on proxy.golang.org
github.com/weberc2/tailscale v0.0.1
The easiest, most secure way to use WireGuard and 2FA.
1 version - Latest release: 10 months ago - 0 stars on GitHub
github.com/ugent-library/deliver v1.1.5
10 versions - Latest release: 11 months ago - 0 stars on GitHub
Top 6.5% on proxy.golang.org
github.com/jsiebens/ionscale v0.16.0
A lightweight implementation of a Tailscale control server
34 versions - Latest release: 11 months ago - 28 stars on GitHub
github.com/sujingwei/go-simple-framework v0.0.7
go web框架
8 versions - Latest release: 12 months ago - 0 stars on GitHub
Top 7.6% on proxy.golang.org
github.com/tgiv014/to v0.2.0
homelab shortlink service
11 versions - Latest release: 12 months ago - 0 stars on GitHub
Top 4.6% on proxy.golang.org
github.com/wundergraph/wundergraph v0.180.0
WunderGraph is a Backend for Frontend Framework to optimize frontend, fullstack and backend devel...
187 versions - Latest release: 12 months ago - 1,204 stars on GitHub
Top 9.1% on proxy.golang.org
github.com/scratchdata/scratchdata v1.0.18
Scratch is an open-source alternative to BigQuery, Redshift, and Snowflake. Runs on Clickhouse.
44 versions - Latest release: about 1 year ago - 981 stars on GitHub
Top 7.2% on proxy.golang.org
github.com/mattermost/chimera v0.2.1
6 versions - Latest release: about 1 year ago - 5 stars on GitHub
Top 7.5% on proxy.golang.org
github.com/vittitow/tailscale v1.0.0
The easiest, most secure way to use WireGuard and 2FA.
1 version - Latest release: about 1 year ago - 0 stars on GitHub
Top 7.5% on proxy.golang.org
github.com/Vittitow/tailscale v1.0.0
The easiest, most secure way to use WireGuard and 2FA.
1 version - Latest release: about 1 year ago - 0 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/evilsocket/arc v1.4.0 💰
A manager for your secrets.
34 versions - Latest release: about 1 year ago - 810 stars on GitHub
Top 7.7% on proxy.golang.org
github.com/kgretzky/gophish v0.12.1
Open-Source Phishing Toolkit
1 version - Latest release: about 1 year ago - 8 stars on GitHub
Top 9.3% on proxy.golang.org
github.com/awlsring/texit v0.0.11
Tailscale exit nodes on cloud platforms
11 versions - Latest release: about 1 year ago - 0 stars on GitHub
Top 9.2% on proxy.golang.org
github.skymusic.top/gobitfly/eth2-beaconchain-explorer v1.56.0
114 versions - Latest release: about 1 year ago
Top 9.2% on proxy.golang.org
github.imxd.top/gobitfly/eth2-beaconchain-explorer v1.56.0
114 versions - Latest release: about 1 year ago
Top 8.8% on proxy.golang.org
github.com/cvhariharan/tnet-proxy v0.1.0
A tailscale proxy to expose services as machines
1 version - Latest release: about 1 year ago - 0 stars on GitHub
Top 9.3% on proxy.golang.org
github.com/richard-egeli/htd v0.0.1
1 version - Latest release: about 1 year ago
Top 9.0% on proxy.golang.org
github.com/drio/cert-cacher v0.0.8
A tailscale tsnet service to cache certs.
6 versions - Latest release: about 1 year ago - 0 stars on GitHub
Top 4.9% on proxy.golang.org
github.com/evergreen-ci/evergreen v0.0.0-20240125184439-f50345d4c091
A Distributed Continuous Integration System from MongoDB
409 versions - Latest release: over 1 year ago - 375 stars on GitHub
Top 4.7% on proxy.golang.org
go.thethings.network/lorawan-stack/tools v0.0.0-20240125123531-c5d84e6f3759
The Things Stack, an Open Source LoRaWAN Network Server
70 versions - Latest release: over 1 year ago - 814 stars on GitHub
Top 2.9% on proxy.golang.org
github.com/cortezaproject/corteza/server v0.0.0-20240125115439-f6d3702d330b
Low-code platform
336 versions - Latest release: over 1 year ago - 1 dependent package - 1 dependent repositories - 805 stars on GitHub
Top 4.3% on proxy.golang.org
github.com/Azure/ARO-RP v0.0.0-20240125110223-efd47430a575
Azure Red Hat OpenShift RP
279 versions - Latest release: over 1 year ago - 1 dependent package - 1 dependent repositories - 74 stars on GitHub
Top 9.6% on proxy.golang.org
git.autistici.org/min/cshare v0.0.0-20240122223456-cbfcc541f330
1 version - Latest release: over 1 year ago
Top 9.6% on proxy.golang.org
github.com/vigilans-co/gophish v0.0.0-20240122203659-ed9a7088ce94
Open-Source Phishing Toolkit
1 version - Latest release: over 1 year ago - 0 stars on GitHub
Top 9.6% on proxy.golang.org
github.com/stevesec/gophish v0.0.0-20240122202959-4598288de87a
Gophish from Evilgophish
2 versions - Latest release: over 1 year ago - 0 stars on GitHub
Top 9.6% on proxy.golang.org
git.autistici.org/ale/cshare v0.0.0-20240122201451-d4b64cdf3e56
1 version - Latest release: over 1 year ago
Top 9.6% on proxy.golang.org
github.com/shigde/sfu v0.0.0-20240122103133-58d6d02a3604
Selected Forward Unit
2 versions - Latest release: over 1 year ago - 3 stars on GitHub
Top 5.5% on proxy.golang.org
github.com/authgear/authgear-server v0.0.0-20240119100418-3b2c45885189
OpenID Connect (OIDC) compatible authentication service for web and mobile apps
77 versions - Latest release: over 1 year ago - 1 dependent package - 1 dependent repositories - 40 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/tkw1536/pkglib v0.0.0-20240119094002-2710d1c438a0
46 versions - Latest release: over 1 year ago - 7 dependent packages - 0 stars on GitHub
Top 5.2% on proxy.golang.org
github.com/transcom/mymove v0.0.0-20240118194850-a034523ceee1
MyMove Personal Property Prototype
372 versions - Latest release: over 1 year ago - 1 dependent package - 1 dependent repositories - 47 stars on GitHub
Top 1.1% on proxy.golang.org
perkeep.org v0.0.0-20240115220616-4ba112378f7e
Perkeep (née Camlistore) is your personal storage system for life: a way of storing, syncing, sha...
36 versions - Latest release: over 1 year ago - 14 dependent packages - 24 dependent repositories - 6,147 stars on GitHub
Top 9.9% on proxy.golang.org
github.com/boinkor-net/tsnsrv v0.0.0-20240115175440-33024df4b303
A reverse proxy that exposes services on your tailnet (as their own tailscale participants)
3 versions - Latest release: over 1 year ago - 118 stars on GitHub
Top 5.9% on proxy.golang.org
github.com/usbarmory/tamago-example v0.0.0-20240115102653-b441d1e66140
TamaGo - example application
26 versions - Latest release: over 1 year ago - 59 stars on GitHub
Top 10.0% on proxy.golang.org
github.com/kellegous/sonar v0.0.0-20240110125127-6c5115f5f9b3
A dashboard that monitors ping times and error rates over time.
2 versions - Latest release: over 1 year ago - 0 stars on GitHub
Top 10.0% on proxy.golang.org
github.com/eghansah/auth-gateway v0.0.0-20240109174957-491b9192ea5b
An authentication gateway written in Golang
10 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/shark-ci/shark-ci v0.0.0-20240106150216-57b2c140c16a
CI server written in Go
7 versions - Latest release: over 1 year ago - 0 stars on GitHub
Top 0.5% on proxy.golang.org
k8s.io/test-infra v0.0.0-20240103232128-fc5e4f969478
Test infrastructure for the Kubernetes project.
2,225 versions - Latest release: over 1 year ago - 139 dependent packages - 648 dependent repositories - 3,575 stars on GitHub
github.com/victorluft/caddy-tailscale v0.0.0-20240103175641-cb19accfe8ab
Package tscaddy provides a set of Caddy modules to integrate Tailscale into Caddy.
3 versions - Latest release: over 1 year ago - 0 stars on GitHub
Top 6.4% on proxy.golang.org
github.com/air-go/rpc v1.0.11
Go 微服务框架,Router 基于 Gin 和 gRPC Gateway,同时支持 gRPC 和 HTTP,封装各种常用组件,开箱即用,专注业务。
12 versions - Latest release: over 1 year ago - 1 dependent package - 1 dependent repositories - 64 stars on GitHub
github.com/tailscale/tailsql v0.0.0-20240102233715-3f570388abcc
A SQL playground service over Tailscale.
10 versions - Latest release: over 1 year ago - 12 stars on GitHub
github.com/tailscale/setec v0.0.0-20240102233422-ba738f8ab5a0
11 versions - Latest release: over 1 year ago - 1 dependent package - 10 stars on GitHub
Top 9.7% on proxy.golang.org
github.com/znbang/tailsocks v0.0.0-20240102095025-60fb1e50b510
A simple HTTP/SOCKS5 server for tailnet.
1 version - Latest release: over 1 year ago - 1 stars on GitHub
Top 9.3% on proxy.golang.org
github.com/gsom95/go-web-dev v0.0.0-20240102053440-bd683ad78d20
2 versions - Latest release: over 1 year ago
github.com/go-seatbelt/seatbelt v0.4.0
Web application framework for Go
11 versions - Latest release: over 1 year ago - 1 dependent repositories - 3 stars on GitHub
github.com/anupcshan/tscloudvpn v0.0.0-20231229054614-8327efdab1e6
22 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/lthummus/auththingie2 v0.0.0-alpha4
4 versions - Latest release: over 1 year ago - 0 stars on GitHub
Top 7.0% on proxy.golang.org
git.hoogi.eu/snafu/go-blog v0.7.23
35 versions - Latest release: over 1 year ago - 2 dependent packages
Top 9.0% on proxy.golang.org
github.com/lhooge/go-blog v0.7.23
Small sample open-source blog written in Go using markdown for writing articles and creating sites.
35 versions - Latest release: over 1 year ago - 0 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/jorgemarey/tsproxy v0.1.0
tailscale service proxy
1 version - Latest release: over 1 year ago - 1 stars on GitHub
github.com/mihailtudos/photosharer v0.0.0-20231222094043-10209920ca01
14 versions - Latest release: over 1 year ago - 0 stars on GitHub
Top 9.7% on proxy.golang.org
jhenson.dev/caddy-tailscale v0.0.0-20231215222735-9d5ecccfb0ec
7 versions - Latest release: over 1 year ago
Top 10.0% on proxy.golang.org
github.com/mymejjtt/tailscale v1.56.1
113 versions - Latest release: over 1 year ago
Top 10.0% on proxy.golang.org
github.com/QZFKNGKV/tailscale v1.56.1
Package tailscaleroot embeds VERSION.txt into the binary.
113 versions - Latest release: over 1 year ago - 0 stars on GitHub
Top 10.0% on proxy.golang.org
github.com/MYMEJJTT/tailscale v1.56.1
113 versions - Latest release: over 1 year ago
Top 10.0% on proxy.golang.org
github.com/qzfkngkv/tailscale v1.56.1
113 versions - Latest release: over 1 year ago
github.com/noloman/goreddit v0.0.0-20231212185759-238430526243
10 versions - Latest release: over 1 year ago - 1 stars on GitHub
Top 9.6% on proxy.golang.org
github.com/verder-helpen/auth-digid v0.0.0-20231212144434-326c0c129f9c
DigiD authentication plugin for Verder Helpen Platform
1 version - Latest release: over 1 year ago - 1 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/deepsquare-io/proxy v0.2.2
A bore proxy with SSH tunneling and Web3 authentication (+anonymous). Made in Go and HTMX.
4 versions - Latest release: over 1 year ago - 2 stars on GitHub
Top 5.8% on proxy.golang.org
github.com/mtlynch/whatgotdone/backend v0.0.0-20231207215730-38a221d393df
A tool for sharing weekly task updates with teammates.
15 versions - Latest release: over 1 year ago - 1 dependent repositories - 131 stars on GitHub
Top 5.7% on proxy.golang.org
github.com/go-saas/kit/gateway/apisix v0.0.0-20231207071509-8e55a6f58fa1
Microservice compatible starter kit for golang sass project
9 versions - Latest release: over 1 year ago - 59 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/funnydog/mailadmin v0.0.0-20231205121117-6bb2be306950
Golang web application for managing mail virtual servers.
3 versions - Latest release: over 1 year ago - 1 stars on GitHub
Top 9.9% on proxy.golang.org
github.com/fayazp088/snap-store v0.0.0-20231205092654-73bcbfe9086a
A social platform for seamless photo sharing and discovery, connecting users through visual story...
1 version - Latest release: over 1 year ago - 1 stars on GitHub
tailscale-www-git-rosszurowski-nextjs-go-get-alt-tailscale.vercel.app v1.54.1
1 version - Latest release: over 1 year ago
Top 9.8% on proxy.golang.org
github.com/zero-one-group/fullstack-go v0.0.0-20231128081039-1f1d20f7b530
Exploration of fullstack app using Go
1 version - Latest release: over 1 year ago - 1 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/robinthrift/stuff v0.11.0
25 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/TravisS25/webutil v0.0.0-20231122171333-43badb3d0dcc
4 versions - Latest release: over 1 year ago - 1 dependent package - 1 dependent repositories - 0 stars on GitHub
github.com/tailscale/tmemes v0.0.0-20231121153635-beaba25870b0
Package tmemes defines a meme generator, putting the meme in TS. This package defines shared dat...
5 versions - Latest release: over 1 year ago - 3 stars on GitHub
github.com/m4salah/dlog v0.0.0-20231107214635-504ff3d337b0
📼 Personal knowledge management application. One binary HTTP server. works in any Markdown direct...
7 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/Jnchk/tailscale v1.52.1
Package tailscaleroot embeds VERSION.txt into the binary.
114 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/jnchk/tailscale v1.52.1
The easiest, most secure way to use WireGuard and 2FA.
114 versions - Latest release: over 1 year ago - 0 stars on GitHub
Top 9.0% on proxy.golang.org
github.com/dmwm/dbs2go v0.0.0-20231025171354-28e02bde209a
dbs2go - An example code how to write data-base based app Copyright (c) 2016 - Valentin Kuznetso...
11 versions - Latest release: over 1 year ago - 2 dependent repositories - 6 stars on GitHub
Top 9.5% on proxy.golang.org
github.com/terrorsquad/lenslocked v0.0.0-20231021190316-eb66d15d97c7
13 versions - Latest release: over 1 year ago
Top 9.6% on proxy.golang.org
github.com/devzero-inc/tailscale v1.50.1-56ebcd1e
1 version - Latest release: over 1 year ago
github.com/iamsabbiralam/restora v0.0.0-20231012114234-0de765cdb6df
Restro is a kind of social media website where people will come and create their account.
10 versions - Latest release: over 1 year ago - 0 stars on GitHub
codeberg.org/readeck/readeck v0.0.0-20231008080710-ffafa5773da1
Package main starts Readeck app subcommands.
1 version - Latest release: over 1 year ago - 2 stars on codeberg.org
github.com/ozeer/go-api v0.0.0-20231008055838-240254887bff
基于Gin封装的API框架
2 versions - Latest release: over 1 year ago - 0 stars on GitHub
Top 9.7% on proxy.golang.org
github.com/hoomanist/allegro-server v0.0.0-20231007091527-da480cae0329
classical-only decenteralized music streaming service
1 version - Latest release: over 1 year ago - 1 stars on GitHub
Top 8.3% on proxy.golang.org
github.com/FAU-CDI/wisski-distillery v0.0.0-20231005155000-dae269f128c6
Docker-based server provisioning and managing for multiple WissKI instances.
18 versions - Latest release: over 1 year ago - 2 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/devasiajoseph/webapp v0.0.0-20231003141124-7914eb096747
24 versions - Latest release: over 1 year ago - 0 stars on GitHub
Top 9.7% on proxy.golang.org
git.sr.ht/~mariusor/brutalinks v0.0.0-20231003112557-bbddce9c5aa1
3 versions - Latest release: over 1 year ago
github.com/ansorren/liberauth v0.0.5
7 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/postfreely/postfreely v0.0.0-20230925044520-5a5ee988c35b 💰
Package postfreely copied from https://github.com/golang/tools/blob/master/internal/semver/semver...
6 versions - Latest release: over 1 year ago - 5 stars on GitHub
Top 9.3% on proxy.golang.org
github.com/m4salah/xlog v0.0.0-20230911235927-fd68400a64b2
2 versions - Latest release: over 1 year ago
github.com/barelyhuman/notdone v0.0.1
Offline webapp for lists of tasks
1 version - Latest release: over 1 year ago - 1 stars on GitHub
github.com/mayef/tailscale v0.0.0-20230904063820-9d29f1b41eb8
Package tailscaleroot embeds VERSION.txt into the binary.
1 version - Latest release: over 1 year ago - 0 stars on GitHub
github.com/muhwyndhamhp/marknotes v0.0.0-20230901164033-81a50df5d867
1 version - Latest release: over 1 year ago - 6 stars on GitHub
Top 6.4% on proxy.golang.org
github.com/suse/linux-security-sensor v0.7.0
Linux security sensor
65 versions - Latest release: over 1 year ago - 17 stars on GitHub
Top 6.4% on proxy.golang.org
github.com/SUSE/linux-security-sensor v0.7.0
Linux security sensor
65 versions - Latest release: over 1 year ago - 17 stars on GitHub
Top 7.3% on proxy.golang.org
github.com/antifuchs/htpasswd-login v0.0.0-20230820175236-4c82ae4be86d
A RESTful authentication service combining .htpasswd and nginx's auth_request
3 versions - Latest release: over 1 year ago - 10 stars on GitHub
Top 8.2% on proxy.golang.org
git.autistici.org/id/sso-server v0.0.0-20230819134408-8201636975b9
3 versions - Latest release: over 1 year ago
github.com/khulnasoft/hub v0.0.0-20230818054705-3dc0db12151a
1 version - Latest release: over 1 year ago - 0 stars on GitHub
github.com/mackaybeth/lenslocked v0.0.0-20230812155241-7ecf5f5ee90b
Jon Calhoun: Web Development With Go coursework
2 versions - Latest release: over 1 year ago - 0 stars on GitHub
Top 9.7% on proxy.golang.org
github.com/emad-elsaid/library v0.0.0-20230725231417-1d4713c5df74
My physical books library
1 version - Latest release: almost 2 years ago - 13 stars on GitHub
github.com/lnsp/tum.events v0.0.0-20230722162648-495243c58435
Talk aggregator for TUM CS talks.
1 version - Latest release: almost 2 years ago - 2 stars on GitHub
github.com/go-saas/kit-layout v0.0.0-20230722105139-a76f6238f626
Kratos Project Template
1 version - Latest release: almost 2 years ago - 2 stars on GitHub
Top 9.6% on proxy.golang.org
github.com/go-saas/kit/examples/monolithic v0.0.0-20230721151544-c286326f51ca
Microservice compatible starter kit for golang sass project
3 versions - Latest release: almost 2 years ago - 119 stars on GitHub
github.com/lnsp/tumtalks v0.0.0-20230715131157-829ee3da9b98
Talk aggregator for TUM CS talks.
1 version - Latest release: almost 2 years ago - 2 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/underlx/disturbancesmlx v0.0.0-20230712103438-30a0ae6ad38f 💰
Fancy status page and status logger for the Lisbon Metro, that scrapes the official website for i...
4 versions - Latest release: almost 2 years ago - 26 stars on GitHub
Top 5.4% on proxy.golang.org
github.com/theparanoids/ashirt-server v0.0.0-20230707001047-28741b7c1951
Adversary Simulators High-Fidelity Intelligence and Reporting Toolkit
27 versions - Latest release: almost 2 years ago - 1 dependent package - 1 dependent repositories - 100 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/dxe/adb v0.0.0-20230702005054-fcf4d95a06a7
Activist Database Project
10 versions - Latest release: almost 2 years ago - 12 stars on GitHub
Past Dependents
Include Past Dependents

Check this option to include packages that no longer depend on this package in their latest version but previously did.