CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 31 Jul 2025 18:07:50 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090104072122
location: https://web.archive.org/web/20090104072122/https://github.com/pyrat/ssl_requirement/tree
server-timing: captures_list;dur=1.059653, exclusion.robots;dur=0.035251, exclusion.robots.policy;dur=0.014869, esindex;dur=0.017464, cdx.remote;dur=69.208829, LoadShardBlock;dur=440.966830, PetaboxLoader3.datanode;dur=110.031063, PetaboxLoader3.resolve;dur=253.856143
x-app-server: wwwb-app221
x-ts: 302
x-tr: 547
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: SERVER=wwwb-app221; 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 301
server: nginx
date: Thu, 31 Jul 2025 18:07:52 GMT
content-type: text/html; charset=utf-8
content-length: 117
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Sun, 04 Jan 2009 07:21:21 GMT
x-archive-orig-connection: close
x-archive-orig-set-cookie: _github_ses=BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7ADoOcmV0dXJuX3RvIhcvdWppaGlzYS9mb2xsb3dlcnM%3D--30c2d602e6e5e61319c8e9d4a10423149fd68c4b; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
x-archive-orig-status: 301 Moved Permanently
location: https://web.archive.org/web/20090104072122/https://github.com/pyrat/ssl_requirement/tree/master
x-archive-orig-x-runtime: 280ms
x-archive-orig-cache-control: no-cache
x-archive-orig-content-length: 117
cache-control: max-age=1800
memento-datetime: Sun, 04 Jan 2009 07:21:22 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sat, 26 Jul 2008 03:12:59 GMT", ; rel="prev memento"; datetime="Sat, 26 Jul 2008 03:12:59 GMT", ; rel="memento"; datetime="Sun, 04 Jan 2009 07:21:22 GMT", ; rel="last memento"; datetime="Sun, 04 Jan 2009 07:21:22 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: 52_7_20090104033323_crawl108-c/52_7_20090104071936_crawl103.arc.gz
server-timing: captures_list;dur=0.413252, exclusion.robots;dur=0.012625, exclusion.robots.policy;dur=0.006314, esindex;dur=0.009868, cdx.remote;dur=23.750896, LoadShardBlock;dur=533.086209, PetaboxLoader3.datanode;dur=309.852034, PetaboxLoader3.resolve;dur=1033.386489, load_resource;dur=1108.543152
x-app-server: wwwb-app221
x-ts: 301
x-tr: 1689
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
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: Thu, 31 Jul 2025 18:07:54 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Sun, 04 Jan 2009 07:21:22 GMT
x-archive-orig-connection: close
x-archive-orig-set-cookie: _github_ses=BAh7BzoOcmV0dXJuX3RvIhcvdWppaGlzYS9mb2xsb3dlcnMiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhhc2h7AAY6CkB1c2VkewA%3D--8ae08f310c55538f0360dd8301fab65f89338d9a; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 600ms
x-archive-orig-etag: "6dc3c482c48736efbdb822b35d1b374c"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 13972
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 04 Jan 2009 07:21:22 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sun, 12 Oct 2008 08:16:02 GMT", ; rel="prev memento"; datetime="Sun, 12 Oct 2008 08:16:02 GMT", ; rel="memento"; datetime="Sun, 04 Jan 2009 07:21:22 GMT", ; rel="next memento"; datetime="Tue, 06 Jan 2009 04:34:23 GMT", ; rel="last memento"; datetime="Sun, 15 Nov 2009 18:16:23 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: 52_7_20090104033323_crawl108-c/52_7_20090104071936_crawl103.arc.gz
server-timing: captures_list;dur=0.636460, exclusion.robots;dur=0.027848, exclusion.robots.policy;dur=0.013504, esindex;dur=0.011330, cdx.remote;dur=98.964471, LoadShardBlock;dur=470.293246, PetaboxLoader3.datanode;dur=241.363240, PetaboxLoader3.resolve;dur=1171.367852, load_resource;dur=972.387040
x-app-server: wwwb-app221
x-ts: 200
x-tr: 1601
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
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
pyrat's ssl_requirement at master — GitHub
We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | github version of ssl_requirement |
Homepage: | https://dev.rubyonrails.org/browser/plugins/ssl_requirement/ |
Clone URL: |
git://github.com/pyrat/ssl_requirement.git
Give this clone URL to anyone.
git clone git://github.com/pyrat/ssl_requirement.git
|
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!