Skip to content

Cloudflare Blocked Error #55

@larsenv

Description

@larsenv

@gookie-dev stepdaddylivehd was working ok using railway, however the requests are currently getting blocked

    <div class="cf-alert cf-alert-error cf-cookie-error" id="cookie-alert" data-translate="enable_cookies">Please enable cookies.</div>
    <div id="cf-error-details" class="cf-error-details-wrapper">
      <div class="cf-wrapper cf-header cf-error-overview">
        <h1 data-translate="block_headline">Sorry, you have been blocked</h1>
        <h2 class="cf-subheadline"><span data-translate="unable_to_access">You are unable to access</span> newkso.ru</h2>
      </div><!-- /.header -->

      <div class="cf-section cf-highlight">
        <div class="cf-wrapper">
          <div class="cf-screenshot-container cf-screenshot-full">

              <span class="cf-no-screenshot error"></span>

          </div>
        </div>
      </div><!-- /.captcha-container -->

      <div class="cf-section cf-wrapper">
        <div class="cf-columns two">```

I would rather use my own server, but it has to solve this Cloudflare challenge. I tried using flaresolverr + a python script to use socks but I get

```Exception in callback LifespanMixin._run_lifespan_tasks.<locals>.<lambda>() at /app/.venv/lib/python3.13/site-packages/reflex/app_mixins/lifespan.py:53
handle: <Handle LifespanMixin._run_lifespan_tasks.<locals>.<lambda>() at /app/.venv/lib/python3.13/site-packages/reflex/app_mixins/lifespan.py:53>
Traceback (most recent call last):
  File "/app/.venv/lib/python3.13/site-packages/curl_cffi/requests/session.py", line 1070, in request
    await task
curl_cffi.curl.CurlError: Failed to perform, curl: (35) TLS connect error: error:00000000:invalid library (0):OPENSSL_internal:invalid library (0). See https://curl.se/libcurl/c/libcurl-errors.html first for more details.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
    self._context.run(self._callback, *self._args)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.13/site-packages/reflex/app_mixins/lifespan.py", line 53, in <lambda>
    task_.add_done_callback(lambda t: t.result())
                                      ~~~~~~~~^^
  File "/app/StepDaddyLiveHD/backend.py", line 56, in update_channels
    await step_daddy.load_channels()
  File "/app/StepDaddyLiveHD/step_daddy.py", line 45, in load_channels
    response = await self._session.get(f"{self._base_url}/24-7-channels.php", headers=self._headers())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/.venv/lib/python3.13/site-packages/curl_cffi/requests/session.py", line 1077, in request
    raise error(str(e), e.code, rsp) from e
curl_cffi.requests.exceptions.SSLError: Failed to perform, curl: (35) TLS connect error: error:00000000:invalid library (0):OPENSSL_internal:invalid library (0). See https://curl.se/libcurl/c/libcurl-errors.html first for more detail```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions