-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial copyedits of the security chapter * Convert tables * Further edits * HTTP vs HTTPS query * Updated HTTP vs HTTPS sql * Including CSP and HSTS in this query * Security data viz * Updated figure numbers
- Loading branch information
1 parent
76fd98d
commit 774e963
Showing
5 changed files
with
1,269 additions
and
1,651 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# 08_43: HTTP vs HTTPS | ||
SELECT | ||
client, | ||
COUNTIF(STARTS_WITH(url, 'https://')) AS https, | ||
COUNTIF(STARTS_WITH(url, 'http://')) AS http, | ||
ROUND((COUNTIF(STARTS_WITH(url, 'https://')) / COUNT(*))*100,2) AS pct_https, | ||
ROUND((COUNTIF(STARTS_WITH(url, 'http://')) / COUNT(*))*100,2) AS pct_http | ||
FROM | ||
`httparchive.almanac.summary_requests` | ||
GROUP BY | ||
client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.