{"id":22951604,"url":"https://github.com/lifailon/get-webcontent","last_synced_at":"2025-04-01T22:47:40.792Z","repository":{"id":140732682,"uuid":"598673618","full_name":"Lifailon/Get-WebContent","owner":"Lifailon","description":"Module check http/https content and SSL Certificate","archived":false,"fork":false,"pushed_at":"2023-03-16T12:19:37.000Z","size":2113,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"rsa","last_synced_at":"2024-12-14T15:16:53.519Z","etag":null,"topics":["certificate-validation","check-web-site","https","network","powershell-module","web-contents"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lifailon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-02-07T15:33:27.000Z","updated_at":"2024-04-11T16:11:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"63dbe51d-0093-4405-af1a-e8fcc15f283a","html_url":"https://github.com/Lifailon/Get-WebContent","commit_stats":null,"previous_names":["lifailon/get-webcontent"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FGet-WebContent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FGet-WebContent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FGet-WebContent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lifailon%2FGet-WebContent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lifailon","download_url":"https://codeload.github.com/Lifailon/Get-WebContent/tar.gz/refs/heads/rsa","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229717724,"owners_count":18113400,"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","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":["certificate-validation","check-web-site","https","network","powershell-module","web-contents"],"created_at":"2024-12-14T15:17:00.758Z","updated_at":"2024-12-14T15:17:01.623Z","avatar_url":"https://github.com/Lifailon.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Get-WebContent\n\nМодуль для быстрой проверки наличия указанного http/https контента с помощью GET-запроса (в роли api выступаем cmdlet: **Invoke-WebRequest**) и валидности сертификата с помощью класса .NET: **System.Net.ServicePointManager**.\n\n**Синтаксис:**\n\n` Import-Module .\\Get-WebContent.psm1 ` \\\n` Get-Help Get-WebContent.psm1 ` \\\n` Get-WebContent https://ya.ru sign `\n\n**[Скачать модуль (Get-WebContent.psm1)](https://github.com/Lifailon/Get-WebContent/releases)**\n\n### Пример https проверки с полным доменным именем.\n\nДля поиска контента на сайте используется слово ` sign ` (параметр по умолчанию, присутствует на многих сайтах), в примере сервер Zabbix (Apache) и RD Web Access (IIS). В последнем случае на сайте не было найдено словосочетания ` test ` о чем сообщается: ` Not available `.\n\n![Image alt](https://github.com/Lifailon/Get-WebContent/blob/rsa/Screen/Get-WebContent-Example.jpg)\n\n### Пример проверки по ip-адресу.\n\nВ случае с http возращается ошибка определения сертификата, при этом используя полный url-адреса ` /zabbix ` мы получаем ` Content: Available `. Если мы используем https в связке с ip, можем прочитать сертификат, но не увидим контент, т.к. происходит ошибка подключения - **не удалось установить доверительные отношения для защищенного канала SSL/TLS**, такую ошибку: ` Your connection is not private ` в браузере можно проигнорировать.\n\n![Image alt](https://github.com/Lifailon/Get-WebContent/blob/rsa/Screen/Get-WebContent-Example-ip.jpg)\n\n### Мониторинг доступности контента.\n\nПроверяется условие доступности контента, и в случае его отсутствия отправляем сообщение в Teleram, используя метод **REST**.\n\n**[Скачать скрипт (Get-WebContent-Telegram.ps1)](https://github.com/Lifailon/Get-WebContent/blob/rsa/Scripts/Get-WebContent-Telegram.ps1)**\n\n![Image alt](https://github.com/Lifailon/Get-WebContent/blob/rsa/Screen/Report-Rest-Telegram.jpg)\n\nС помощью **DateTime** можно настроить мониторинг срока действия сертификата. Пример реализации: **[Excel-Date-Report](https://github.com/Lifailon/Excel-Date-Report)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifailon%2Fget-webcontent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flifailon%2Fget-webcontent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifailon%2Fget-webcontent/lists"}