{"record":{"id":"81b77cfb7b12940c","repo":"ytdl-org/youtube-dl","slug":"access-to-this-webpage-has-been-blocked-by-indian","errorCode":null,"errorMessage":"Access to this webpage has been blocked by Indian censorship. Use a VPN or proxy server (with --proxy) to route around it.","messagePattern":"Access to this webpage has been blocked by Indian censorship\\. Use a VPN or proxy server \\(with --proxy\\) to route around it\\.","errorType":"exception","errorClass":"ExtractorError","httpStatus":null,"severity":"error","filePath":"youtube_dl/extractor/common.py","lineNumber":759,"sourceCode":"        if ('<title>Access to this site is blocked</title>' in content\n                and 'Websense' in first_block):\n            msg = 'Access to this webpage has been blocked by Websense filtering software in your network.'\n            blocked_iframe = self._html_search_regex(\n                r'<iframe src=\"([^\"]+)\"', content,\n                'Websense information URL', default=None)\n            if blocked_iframe:\n                msg += ' Visit %s for more details' % blocked_iframe\n            raise ExtractorError(msg, expected=True)\n        if '<title>The URL you requested has been blocked</title>' in first_block:\n            msg = (\n                'Access to this webpage has been blocked by Indian censorship. '\n                'Use a VPN or proxy server (with --proxy) to route around it.')\n            block_msg = self._html_search_regex(\n                r'</h1><p>(.*?)</p>',\n                content, 'block message', default=None)\n            if block_msg:\n                msg += ' (Message: \"%s\")' % block_msg.replace('\\n', ' ')\n            raise ExtractorError(msg, expected=True)\n        if ('<title>TTK :: Доступ к ресурсу ограничен</title>' in content\n                and 'blocklist.rkn.gov.ru' in content):\n            raise ExtractorError(\n                'Access to this webpage has been blocked by decision of the Russian government. '\n                'Visit http://blocklist.rkn.gov.ru/ for a block reason.',\n                expected=True)\n\n    def _webpage_read_content(self, urlh, url_or_request, video_id, note=None, errnote=None, fatal=True, prefix=None, encoding=None):\n        content_type = urlh.headers.get('Content-Type', '')\n        webpage_bytes = urlh.read()\n        if prefix is not None:\n            webpage_bytes = prefix + webpage_bytes\n        if not encoding:\n            encoding = self._guess_encoding_from_content(content_type, webpage_bytes)\n        if self.get_param('dump_intermediate_pages', False):\n            self.to_screen('Dumping request to ' + urlh.geturl())\n            dump = base64.b64encode(webpage_bytes).decode('ascii')\n            self.to_screen(dump)","sourceCodeStart":741,"sourceCodeEnd":777,"githubUrl":"https://github.com/ytdl-org/youtube-dl/blob/956b8c585591b401a543e409accb163eeaaa1193/youtube_dl/extractor/common.py#L741-L777","documentation":"Error \"Access to this webpage has been blocked by Indian censorship. Use a VPN or proxy server (with --proxy) to route around it.\" thrown in ytdl-org/youtube-dl.","triggerScenarios":"Thrown at youtube_dl/extractor/common.py:759 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a VPN or proxy server (with --proxy) to route around the block."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"956b8c585591b401a543e409accb163eeaaa1193","analyzedAt":"2026-08-14T18:59:47.863Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}