{"id":14066208,"url":"https://github.com/jumpingrivers/serverheaders","last_synced_at":"2025-09-11T21:21:08.322Z","repository":{"id":156208884,"uuid":"614815110","full_name":"jumpingrivers/serverheaders","owner":"jumpingrivers","description":"R package for extracting and assessing server headers.","archived":false,"fork":false,"pushed_at":"2024-04-04T15:04:09.000Z","size":27,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-13T03:42:31.268Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jumpingrivers.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-16T11:30:53.000Z","updated_at":"2024-09-11T06:04:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"a9cc2fda-4671-4f6e-ac13-d3c75fa4de28","html_url":"https://github.com/jumpingrivers/serverheaders","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jumpingrivers/serverheaders","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jumpingrivers%2Fserverheaders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jumpingrivers%2Fserverheaders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jumpingrivers%2Fserverheaders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jumpingrivers%2Fserverheaders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jumpingrivers","download_url":"https://codeload.github.com/jumpingrivers/serverheaders/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jumpingrivers%2Fserverheaders/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274707027,"owners_count":25334863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-13T07:04:59.356Z","updated_at":"2025-09-11T21:21:08.299Z","avatar_url":"https://github.com/jumpingrivers.png","language":"R","readme":"# Server Headers\n\nA simple interface to retrieve and examine HTTP headers from a website.\nThe package is installed in the usual way\n\n```\ninstall.packages('serverHeaders', repos = c('https://jumpingrivers.r-universe.dev', 'https://cloud.r-project.org'))\n```\n\nThe main function is `check()`\n\n```\nlibrary(\"serverHeaders\")\nx = check(\"google.com\")\n```\n\nThe output from `check()` is contains the status code `x$status_code` and a data frame\nof headers `x$headers`. The data frame provides information about each header.\n\nNote: An unknown header is expected.\n\n## Flagged Headers\n\nAs every web-page is different, there isn't a \"one-size fits all\" approach to server headers. \nThese headings take a variety of values and need to be constructed to match the set.\nHowever, there are a number of headings that some people suggest should be set. \nWhen you `check()` these headings are printed to the console and also indicated in the console\noutput.\n\nFor example, running \n\n```\ncheck(\"jumpingrivers.com\")\n# ── Checking Server ──\n# \n# ✔ Status code: 200\n# ✖ content-security-policy: Header not set (Docs)\n# ✖ permissions-policy: Header not set (Docs)\n# ✔ referrer-policy: Acceptable setting found\n# ✔ strict-transport-security: max_age present and greater than 1 year\n# ✔ x-content-type-options: Acceptable setting found\n# ✔ x-frame-options: Acceptable setting found\n```\nhighlights we still need to set our content security policy and our permissions policy.\n\n## Status Codes\n\nWhen we check a website, there are typically a few redirects before we reach the final destination. \nFor example,\n\n\u003e http://jumpingrivers.com -\u003e https://jumpingrivers.com -\u003e https://www.jumpingrivers.com\n\nThis corresponds to \n\n```\ncheck(\"jumpingrivers.com\")$status_codes\n# 301 301 200\n```\n\nWhere `301` indicates a redirect and `200` the final successful response.\n\nNote: when we omit the transport protocol (the http part), the default is `http`, i.e.\n[jumpingrivers.com](https://www.jumprivers.com) is the same as [http://jumpingrivers.com](https://www.jumprivers.com).\n\n---\n\nThis package was based on the [hdrs](https://github.com/hrbrmstr/hdrs) R Package by Bob Rudis.\n","funding_links":[],"categories":["R"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjumpingrivers%2Fserverheaders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjumpingrivers%2Fserverheaders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjumpingrivers%2Fserverheaders/lists"}