Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Banned.video Causing 403 Forbidden on HEAD Request #26719

Open
eeik opened this issue Sep 26, 2020 · 6 comments
Open

Banned.video Causing 403 Forbidden on HEAD Request #26719

eeik opened this issue Sep 26, 2020 · 6 comments

Comments

@eeik
Copy link

@eeik eeik commented Sep 26, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.09.20
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

(base) X:\World Events\2020 Civil War>youtube-dl --verbose https://banned.video/watch?id=5f6e6aecd1e7550a1c00b9ed
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://banned.video/watch?id=5f6e6aecd1e7550a1c00b9ed']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2020.09.20
[debug] Python version 3.6.8 (CPython) - Windows-10-10.0.18362-SP0
[debug] exe versions: ffmpeg git-2020-07-13-7772666, ffprobe git-2020-07-13-7772666, phantomjs 2.1.1
[debug] Proxy map: {}
[generic] watch?id=5f6e6aecd1e7550a1c00b9ed: Requesting header
WARNING: Could not send HEAD request to https://banned.video/watch?id=5f6e6aecd1e7550a1c00b9ed: HTTP Error 403: Forbidden
[generic] watch?id=5f6e6aecd1e7550a1c00b9ed: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "c:\programdata\anaconda3\lib\site-packages\youtube_dl\extractor\common.py", line 632, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "c:\programdata\anaconda3\lib\site-packages\youtube_dl\YoutubeDL.py", line 2238, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "c:\programdata\anaconda3\lib\urllib\request.py", line 532, in open
    response = meth(req, response)
  File "c:\programdata\anaconda3\lib\urllib\request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "c:\programdata\anaconda3\lib\urllib\request.py", line 570, in error
    return self._call_chain(*args)
  File "c:\programdata\anaconda3\lib\urllib\request.py", line 504, in _call_chain
    result = func(*args)
  File "c:\programdata\anaconda3\lib\urllib\request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)```


## Description

<!--
Provide an explanation of your issue in an arbitrary form. Provide any additional information, suggested solution and as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

I seem to recall Banned.video working flawlessly before, but maybe a change on their service side is now blocking HEAD requests for some reason due to increased IT security attacks being received given 2020.

Their website DOES have a download button, so perhaps this isn't strictly urgent, but in an automated download pipeline scenario, programatically ingesting a URL and outputting an MP4 is ideal.

@Beorn-hayek
Copy link

@Beorn-hayek Beorn-hayek commented Sep 27, 2020

@eeik I can reproduce. It works if I use http instead of https though.

@eeik
Copy link
Author

@eeik eeik commented Sep 27, 2020

Is this the command you're thinking? If so, it's not working for me. Is there an alt parameter I should be using?

youtube-dl -f '[protocol=http]' --verbose https://banned.video/watch?id=5f6e6aecd1e7550a1c00b9ed
@eeik
Copy link
Author

@eeik eeik commented Sep 27, 2020

🤦‍♂️ ... skipped right over the easy solution! Thanks @Beorn-hayek 👍

@eeik
Copy link
Author

@eeik eeik commented Sep 30, 2020

Hmm, it now seems neither http nor https work properly. Perhaps they've made a server side change that didn't initially propagate on both protocols?

@dirkf
Copy link

@dirkf dirkf commented Oct 13, 2020

See #26805

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.