सुरक्षाशीर्षधर्मः। द्वैधलेखने (३० अक्टो) एकसत्यम्। अत्र ब्राउजर् कथं शिक्ष्यते। CSP, HSTS, frame। न authz स्थाने; शीर्षधर्मः

English (minimizable)

After dual writes (30 Oct), this post covers HTTP security headers: CSP, HSTS, framing controls, referrer policy, permissions policy, COOP/COEP when needed, report-only rollout and why headers never replace server authz.

पूर्ण-शीर्षकम् / Full title

सुरक्षाशीर्षधर्मः: A Metrical Codification of HTTP Security Headers (with English glosses)

English · overview and topics (minimizable)

What this post is about

HTTP security headers are response directives that constrain browser behavior for scripts, framing, transport and powerful features.

Topics covered

  1. Headers as browser perimeter
  2. Content-Security-Policy
  3. HSTS
  4. Frame ancestors / clickjacking
  5. Referrer-Policy
  6. Permissions-Policy
  7. COOP COEP CORP when needed
  8. Report-only then enforce
  9. Headers are not server authz
  10. Links to authz and key management

Sanskrit title

सुरक्षाशीर्षधर्मः = surakṣā-śīrṣa-dharmaḥ “dharma of security headers”.

English

Minimizable; Sanskrit-first.

परम्परा-सन्धिः / Series links
पूर्वं / Prior अत्र / Adds न पुनः / Does not repeat
प्राप्याधिकारप्रवाहः (८ अक्टो) authz who may act
कुञ्जीप्रबन्धनम् (१९ अक्टो) keys/secrets not header scope
परक्षेत्रनीतिः (१२ अक्टो) cross-origin policy related browser rules
द्वैधलेखनधर्मः (३० अक्टो) dual write prior day series
इदम् security headers perimeter -
ग्राह्य-त्याज्य-विवेकः / Keep and avoid

ग्राह्यम् / Keep

१. tight CSP: minimal unsafe-inline
२. HSTS long max-age: staged preload
३. block hostile framing: CSP frame-ancestors
४. minimize referrers: stop query leaks
५. lock unused features: Permissions-Policy
६. report-only first: then enforce
७. server authz always: headers complement only

त्याज्यम् / Avoid

  • CSP with blanket unsafe-inline as done
  • enforce strict CSP with zero report period
  • treat headers as replacement for authz checks
अध्याय-योजना / Chapter plan
प्रकरणम् विषयः छन्दः श्लोकाः
मङ्गलं बीजं च / Opening अनुष्टुभ्
मूलतत्त्वानि / Core अनुष्टुभ्
मुख्यविधिः / Method उपजाति
रक्षा · विधिः / Guards अनुष्टुभ्
विवेक · सीमा / Judgment अनुष्टुभ्
पूर्वसन्धिः / Series links उपजाति
उपसंहारः / Close अनुष्टुभ्
पारिभाषिक-कोशः / Glossary
Modern English संस्कृतम् Note
CSP विषयसुरक्षानीतिः / CSP  
HSTS दृढवाहनीतिः / HSTS  
X-Frame-Options आबन्धनिषेधः  
frame-ancestors आबन्धपूर्वजाः  
Referrer-Policy संदर्भकनीतिः  
Permissions-Policy अनुमतिनीतिः  
COOP opener नीतिः  
COEP embedder नीतिः  
report-only केवलं निवेदनम्  
clickjacking क्लिकवञ्चना  

श्लोकः १ (अनुष्टुभ्)

उत्तरशीर्षेषु रक्षा यदि ब्राउजर् आज्ञां शृणोति ।
सुरक्षाशीर्षधर्मस्तस्माद् परिधिः ॥१॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
उत्तरशीर्षेषु रक्षा यदि ब्राउजर् आज्ञां शृणोति । सुरक्षाशीर्षधर्मस्तस्माद् परिधिः ॥१॥

Word-for-word

संस्कृतपदम् Word-for-word English
उत्तरशीर्षेषु in response headers
रक्षा defense
ब्राउजर् browser
आज्ञाम् command
शृणोति hears
सुरक्षाशीर्षधर्मः security-header dharma
परिधिः perimeter

Gloss table

पदम् अर्थः / sense
सुरक्षाशीर्षधर्मः security-headers dharma
परिधिः browser perimeter

English sense
HTTP security headers tell browsers how to treat your origin: scripts frames transport and referrers. They are perimeter policy in header form.

Context / topic
Topic: why security headers. Distinct from authn tokens and API authz.

वृत्तमिति: ८-८-८-८।

श्लोकः २ (अनुष्टुभ्)

CSP script default-src स्पष्टम् ।
unsafe-inline बहुदोषः ॥२॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
CSP script default-src स्पष्टम् । unsafe-inline बहुदोषः ॥२॥

Word-for-word

संस्कृतपदम् Word-for-word English
CSP CSP
script script
default-src default-src
स्पष्टम् clear
unsafe-inline unsafe-inline
बहुदोषः many faults

Gloss table

पदम् अर्थः / sense
CSP Content-Security-Policy
unsafe-inline inline script allow

English sense
Content-Security-Policy should whitelist script sources tightly. Broad unsafe-inline undoes most XSS value of CSP.

Context / topic
Topic: CSP.

वृत्तमिति: ८-८-८-८।

श्लोकः ३ (अनुष्टुभ्)

HSTS force HTTPS long max-age ।
http residual द्वारम् ॥३॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
HSTS force HTTPS long max-age । http residual द्वारम् ॥३॥

Word-for-word

संस्कृतपदम् Word-for-word English
HSTS HSTS
force force
HTTPS HTTPS
long long
max-age max-age
http http
residual residual
द्वारम् door

Gloss table

पदम् अर्थः / sense
HSTS Strict-Transport-Security
http residual plain HTTP remains

English sense
HSTS keeps returning users on HTTPS after the first safe visit. Leave preload decisions conscious and staged.

Context / topic
Topic: HSTS.

वृत्तमिति: ८-८-८-८।

श्लोकः ४ (अनुष्टुभ्)

X-Frame-Options or frame-ancestors ।
clickjack मा ॥४॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
X-Frame-Options or frame-ancestors । clickjack मा ॥४॥

Word-for-word

संस्कृतपदम् Word-for-word English
X-Frame-Options X-Frame-Options
frame-ancestors frame-ancestors
clickjack clickjack
मा not

Gloss table

पदम् अर्थः / sense
frame-ancestors CSP frame rule
clickjack UI redress

English sense
Block unexpected embedding of sensitive pages. Prefer CSP frame-ancestors over legacy headers alone when possible.

Context / topic
Topic: framing.

वृत्तमिति: ८-८-८-८।

श्लोकः ५ (उपजाति)

Referrer-Policy minimize
leak ।
full URL
foreign origin ॥५॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
Referrer-Policy minimize leak । full URL foreign origin ॥५॥

Word-for-word

संस्कृतपदम् Word-for-word English
Referrer-Policy Referrer-Policy
minimize minimize
leak leak
full full
URL URL
foreign foreign
origin origin

Gloss table

पदम् अर्थः / sense
Referrer-Policy what referrer sends
full URL path+query leak

English sense
Tighten referrers so tokens in query strings do not ride to third parties on every navigation.

Context / topic
Topic: referrer.

वृत्तमिति: एकादशाक्षराः पादाः।

श्लोकः ६ (अनुष्टुभ्)

Permissions-Policy feature lockdown ।
camera mic default open भयम् ॥६॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
Permissions-Policy feature lockdown । camera mic default open भयम् ॥६॥

Word-for-word

संस्कृतपदम् Word-for-word English
Permissions-Policy Permissions-Policy
feature feature
lockdown lockdown
camera camera
mic mic
default default
open open
भयम् danger

Gloss table

पदम् अर्थः / sense
Permissions-Policy feature allow lists
default open browser features free

English sense
Disable powerful browser features your app does not need. Defaults are not a security review.

Context / topic
Topic: permissions.

वृत्तमिति: ८-८-८-८।

श्लोकः ७ (अनुष्टुभ्)

COOP COEP CORP isolation when needed ।
cross-origin confuse मा ॥७॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
COOP COEP CORP isolation when needed । cross-origin confuse मा ॥७॥

Word-for-word

संस्कृतपदम् Word-for-word English
COOP COOP
COEP COEP
CORP CORP
isolation isolation
needed needed
cross-origin cross-origin
confuse confuse
मा not

Gloss table

पदम् अर्थः / sense
COOP COEP CORP cross-origin isolation set
cross-origin confuse weak isolation

English sense
Use cross-origin opener and embedder policies when you need strong isolation or privileged APIs. They are not free defaults for every site.

Context / topic
Topic: isolation headers.

वृत्तमिति: ८-८-८-८।

श्लोकः ८ (अनुष्टुभ्)

report-only then enforce ।
big-bang CSP outage ॥८॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
report-only then enforce । big-bang CSP outage ॥८॥

Word-for-word

संस्कृतपदम् Word-for-word English
report-only report-only
then then
enforce enforce
big-bang big-bang
CSP CSP
outage outage

Gloss table

पदम् अर्थः / sense
report-only observe breaks first
big-bang enforce flip hard immediately

English sense
Roll CSP in report-only, fix real violations then enforce. Instant strict CSP without measurement breaks production.

Context / topic
Topic: rollout.

वृत्तमिति: ८-८-८-८।

श्लोकः ९ (अनुष्टुभ्)

headers != authz server checks ।
client perimeter only ॥९॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
headers != authz server checks । client perimeter only ॥९॥

Word-for-word

संस्कृतपदम् Word-for-word English
headers headers
authz authz
server server
checks checks
client client
perimeter perimeter
only only

Gloss table

पदम् अर्थः / sense
headers != authz browser hints not ACL
server checks real authorization

English sense
Security headers shape the browser. They never replace server-side authorization on every sensitive action.

Context / topic
Topic: not a substitute for authz.

वृत्तमिति: ८-८-८-८।

श्लोकः १० (उपजाति)

प्राप्याधिकारः who may act
शीर्षाणि how browser behaves ।
कुञ्जीप्रबन्धः
secret life ॥१०॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
प्राप्याधिकारः who may act शीर्षाणि how browser behaves । कुञ्जीप्रबन्धः secret life ॥१०॥

Word-for-word

संस्कृतपदम् Word-for-word English
प्राप्याधिकारः access-right
who who
may may
act act
शीर्षाणि headers
browser browser
behaves behaves
कुञ्जीप्रबन्धः key management
secret secret
life life

Gloss table

पदम् अर्थः / sense
प्राप्याधिकारः authz flows
कुञ्जीप्रबन्धः key management

English sense
Authz decides who may act; headers decide how browsers load your origin; key management decides secret life cycle. Complementary layers.

Context / topic
Topic: series distinctions.

सन्धिः: अधिकार कर्ता; शीर्ष परिधि; कुञ्जी रहस्य

वृत्तमिति: एकादशाक्षराः पादाः।

श्लोकः ११ (अनुष्टुभ्)

CSP HSTS frame referrer rollout पञ्चकम् ।
एभिः सुरक्षाशीर्षधर्मः परिधिसमन्वितः ॥११॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
CSP HSTS frame referrer rollout पञ्चकम् । एभिः सुरक्षाशीर्षधर्मः परिधिसमन्वितः ॥११॥

Word-for-word

संस्कृतपदम् Word-for-word English
CSP CSP
HSTS HSTS
frame frame
referrer referrer
rollout rollout
पञ्चकम् five-set

Gloss table

पदम् अर्थः / sense
पञ्चकम् CSP HSTS frame referrer rollout

English sense
Five limbs: tight CSP, durable HSTS, frame protection, tight referrers and report-then-enforce rollout plus feature lockdown.

Context / topic
Topic: checklist.

वृत्तमिति: ८-८-८-८।

श्लोकः १२ (अनुष्टुभ्)

इति सुरक्षाशीर्षधर्मसारः परिधिसमन्वितः ।
मितं शीर्षरक्षणं क्रियायोग्यं तन्त्रधर्मः स उच्यते ॥१२॥
पदच्छेदः · Word-for-word · English (minimizable)

पदच्छेदः
इति सुरक्षाशीर्षधर्मसारः परिधिसमन्वितः । मितं शीर्षरक्षणं क्रियायोग्यं तन्त्रधर्मः स उच्यते ॥१२॥

Word-for-word

संस्कृतपदम् Word-for-word English
इति thus
सुरक्षाशीर्षधर्मसारः security-header essence
परिधिः perimeter
मितम् measured
शीर्षरक्षणम् header protection
क्रियायोग्यम् operable
तन्त्रधर्मः system dharma

Gloss table

पदम् अर्थः / sense
मितं शीर्षरक्षणम् measured header guard
तन्त्रधर्मः platform dharma

English sense
Closing: teach the browser strict habits then still authorize every sensitive act on the server.

Context / topic
Topic: close.

उपसंहारन्यायः: CSPं दृढं कुरु; HSTSं दीर्घं देहि; सर्वरं मा विस्मर।

वृत्तमिति: ८-८-८-८।

श्लोकसूची / Verse index

१. Why headers
२. CSP
३. HSTS
४. Framing
५. Referrer
६. Permissions
७. Isolation
८. Rollout
९. Not authz
१०. Series layers
११. Five limbs
१२. Close

सन्दर्भाः / References
  1. Prior: authz 2026-10-08; keys 2026-10-19; dual write 2026-10-30.
  2. Domain: HTTP security headers.
  3. English minimizable; Sanskrit-first.
  4. Style: no em dash; no Oxford comma in English clauses.