CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 03 Aug 2025 19:11:57 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20081025005549
location: https://web.archive.org/web/20081025005549/https://github.com/rails/ssl_requirement/tree
server-timing: captures_list;dur=1.055736, exclusion.robots;dur=0.044908, exclusion.robots.policy;dur=0.027405, esindex;dur=0.016207, cdx.remote;dur=400.014445, LoadShardBlock;dur=442.862760, PetaboxLoader3.resolve;dur=153.455600, PetaboxLoader3.datanode;dur=245.466439
x-app-server: wwwb-app28
x-ts: 302
x-tr: 1007
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app28; 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: Sun, 03 Aug 2025 19:11:59 GMT
content-type: text/html; charset=utf-8
content-length: 117
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Sat, 25 Oct 2008 00:55:48 GMT
x-archive-orig-connection: close
x-archive-orig-status: 301 Moved Permanently
location: https://web.archive.org/web/20081025005549/https://github.com/rails/ssl_requirement/tree/master
x-archive-orig-x-runtime: 0.58660
x-archive-orig-cache-control: no-cache
x-archive-orig-content-length: 117
cache-control: max-age=1800
memento-datetime: Sat, 25 Oct 2008 00:55:49 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Tue, 08 Jul 2008 06:22:28 GMT", ; rel="prev memento"; datetime="Mon, 04 Aug 2008 09:05:20 GMT", ; rel="memento"; datetime="Sat, 25 Oct 2008 00:55:49 GMT", ; rel="next memento"; datetime="Wed, 19 Nov 2008 14:39:40 GMT", ; rel="last memento"; datetime="Fri, 11 Sep 2009 07:09:27 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_6_20081024230846_crawl109-c/52_6_20081025005514_crawl103.arc.gz
server-timing: captures_list;dur=3.803734, exclusion.robots;dur=0.040576, exclusion.robots.policy;dur=0.024278, esindex;dur=0.014205, cdx.remote;dur=174.387895, LoadShardBlock;dur=1031.009292, PetaboxLoader3.resolve;dur=862.458745, PetaboxLoader3.datanode;dur=438.910052, load_resource;dur=401.697002
x-app-server: wwwb-app28
x-ts: 301
x-tr: 1651
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: Sun, 03 Aug 2025 19:12:00 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.31
x-archive-orig-date: Sat, 25 Oct 2008 00:55:49 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 0.22108
x-archive-orig-etag: "e6346381b5a81f5d251490bcf88eb536"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 12880
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sat, 25 Oct 2008 00:55:49 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 13 Jun 2008 14:46:12 GMT", ; rel="prev memento"; datetime="Mon, 04 Aug 2008 09:05:20 GMT", ; rel="memento"; datetime="Sat, 25 Oct 2008 00:55:49 GMT", ; rel="next memento"; datetime="Thu, 18 Dec 2008 01:27:34 GMT", ; rel="last memento"; datetime="Fri, 16 Dec 2011 14:11:54 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_6_20081024230846_crawl109-c/52_6_20081025005514_crawl103.arc.gz
server-timing: captures_list;dur=0.694707, exclusion.robots;dur=0.028510, exclusion.robots.policy;dur=0.017464, esindex;dur=0.011068, cdx.remote;dur=111.349966, LoadShardBlock;dur=219.488338, PetaboxLoader3.resolve;dur=564.893631, PetaboxLoader3.datanode;dur=57.256216, load_resource;dur=437.975092
x-app-server: wwwb-app28
x-ts: 200
x-tr: 850
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
rails's ssl_requirement at master — GitHub
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: | SSL Requirement plugin |
Homepage: | https://rubyonrails.org |
Clone URL: |
git://github.com/rails/ssl_requirement.git
Give this clone URL to anyone.
git clone git://github.com/rails/ssl_requirement.git
|
name | age | message | |
---|---|---|---|
![]() |
README | Tue Nov 15 14:50:17 -0800 2005 | [ssl_requirement plugin] add unit tests and ssl... [jamis] |
![]() |
lib/ | Fri Feb 01 21:16:53 -0800 2008 | SSL requirement plugin keeps flash when it redi... [jeremy] |
![]() |
test/ | Fri Feb 01 21:16:53 -0800 2008 | SSL requirement plugin keeps flash when it redi... [jeremy] |
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. 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!