CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 30 Jul 2025 13:52:38 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100116084519
location: https://web.archive.org/web/20100116084519/https://github.com/github/ssl_requirement
server-timing: captures_list;dur=0.496125, exclusion.robots;dur=0.017593, exclusion.robots.policy;dur=0.008332, esindex;dur=0.009323, cdx.remote;dur=1124.015437, LoadShardBlock;dur=1014.256956, PetaboxLoader3.datanode;dur=664.488571, PetaboxLoader3.resolve;dur=153.607661
x-app-server: wwwb-app225
x-ts: 302
x-tr: 2165
server-timing: TR;dur=0,Tw;dur=1157,Tc;dur=1
set-cookie: SERVER=wwwb-app225; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Wed, 30 Jul 2025 13:52:42 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sat, 16 Jan 2010 08:45:18 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "3a9263fedc8ba80527bd939c0a27f033"
x-archive-orig-x-runtime: 91ms
x-archive-orig-content-length: 20217
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sat, 16 Jan 2010 08:45:19 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sat, 14 Nov 2009 12:16:47 GMT", ; rel="prev memento"; datetime="Tue, 15 Dec 2009 13:59:18 GMT", ; rel="memento"; datetime="Sat, 16 Jan 2010 08:45:19 GMT", ; rel="last memento"; datetime="Sat, 16 Jan 2010 08:45:19 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_13_20100116054835_crawl103-c/51_13_20100116084401_crawl101.arc.gz
server-timing: captures_list;dur=0.579676, exclusion.robots;dur=0.023086, exclusion.robots.policy;dur=0.010585, esindex;dur=0.012916, cdx.remote;dur=2078.755358, LoadShardBlock;dur=203.859231, PetaboxLoader3.datanode;dur=102.692427, PetaboxLoader3.resolve;dur=106.111690, load_resource;dur=120.866096
x-app-server: wwwb-app225
x-ts: 200
x-tr: 2471
server-timing: TR;dur=0,Tw;dur=1798,Tc;dur=1
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
github's ssl_requirement at master - GitHub
This service is courtesy of Pledgie.
github / ssl_requirement forked from pyrat/ssl_requirement
- Source
- Commits
- Network (2)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
-
Branches (1)
- master ✓
- Tags (0)
Sending Request…
Enable Donations
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
github version of ssl_requirement — Read more
name | age | message | |
---|---|---|---|
![]() |
README | Thu Apr 17 02:38:50 -0700 2008 | Updated readme [pyrat] |
![]() |
lib/ | Thu Apr 17 02:35:43 -0700 2008 | Init commit of improved plugin [pyrat] |
![]() |
test/ | Thu Apr 17 02:35:43 -0700 2008 | Init commit of improved plugin [pyrat] |
README
SSL Requirement =============== SSL requirement adds a declarative way of specifying that certain actions should only be allowed to run under SSL, and if they're accessed without it, they should be redirected. If the rails_env is test or development the redirection is not performed. Example: class ApplicationController < ActiveRecord::Base include SslRequirement end class AccountController < ApplicationController ssl_required :signup, :payment ssl_allowed :index def signup # Non-SSL access will be redirected to SSL end def payment # Non-SSL access will be redirected to SSL end def index # This action will work either with or without SSL end def other # SSL access will be redirected to non-SSL end end You can overwrite the protected method ssl_required? to rely on other things than just the declarative specification. Say, only premium accounts get SSL. P.S.: Beware when you include the SslRequirement module. At the time of inclusion, it'll add the before_filter that validates the declarations. Some times you'll want to run other before_filters before that. They should then be declared ahead of including this module. Copyright (c) 2005 David Heinemeier Hansson, released under the MIT license
This feature is coming soon. Sit tight!