Sha256: d0a722ddb622e33f9ccce9a4a8a1a14c8995a213a2d48c802c6dc78b4e5cc4bc

Contents?: true

Size: 867 Bytes

Versions: 6

Compression:

Stored size: 867 Bytes

Contents

# frozen_string_literal: true

##
# This file is part of WhatWeb and may be subject to
# redistribution and commercial restrictions. Please see the WhatWeb
# web site for more information on licensing and terms of use.
# http://www.morningstarsecurity.com/research/whatweb
##
WhatWeb::Plugin.define "Content-Security-Policy" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2012-05-17
  @version = "0.1"
  @description = "Content Security Policy (CSP) - More Info: https://en.wikipedia.org/wiki/Content_Security_Policy"

  # ShodanHQ results as at 2012-05-17 #
  # 785 for X-Content-Security-Policy

  # Matches #
  @matches = [

    # X-Content-Security-Policy # HTTP Server Header
    { search: "headers[x-content-security-policy]", string: /^(.*)$/ },

    # X-WebKit-CSP # HTTP Server Header
    { search: "headers[x-webkit-csp]", string: /^(.*)$/ },

  ]
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_whatweb-0.4.1 lib/whatweb/plugins/content-security-policy.rb
simple_whatweb-0.4.0 lib/whatweb/plugins/content-security-policy.rb
simple_whatweb-0.3.0 lib/whatweb/plugins/content-security-policy.rb
simple_whatweb-0.2.1 lib/whatweb/plugins/content-security-policy.rb
simple_whatweb-0.2.0 lib/whatweb/plugins/content-security-policy.rb
simple_whatweb-0.1.0 lib/whatweb/plugins/content-security-policy.rb