Hey guys,
Just met a problem of logging in.
I mean, not about downloading videos but I can't even log in.
Everything went normal on Chrome, and the parameters are not fastly-expired. But on Python, always Access Denied.
Would anyone be willing to help?
Password will be changed in the near future in case of security.
---[base64 encoded]---
Email: [deleted]
Password: [deleted]
---[base64 encoded]---
My debugging code:
P.S.Code:from curl_cffi import requests # Necessary for me. proxies = {'http': 'http://127.0.0.1:7890', 'https': 'http://127.0.0.1:7890'} headers = { 'sec-ch-ua': '"Google Chrome";v="123", "Not:A-Brand";v="8", "Chromium";v="123"', 'sec-ch-ua-platform': '"Windows"', 'Referer': 'https://watch.foxtel.com.au/app/', 'DNT': '1', 'sec-ch-ua-mobile': '?0', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded', } data = 'versionNumber=0.1&...(truncated)' response = requests.post('https://watch.foxtel.com.au/app/api/auth.class.api.php/logon/296', headers=headers, data=data, proxies=proxies, impersonate='chrome120') print(response.status_code)
1. In this thread, I used curl_cffi to disguise myself as Chrome. So here I used the same module in case this site needs tls fingerprint or something else.
2. After the login on Chrome was successful, I re-played that login request for several times, and the response was HTTP 200 (OK). But when turning to Python, an HTTP 403 returned.
3. An Australian IP needed.
+ Reply to Thread
Results 1 to 5 of 5
-
Last edited by CrymanChen; 28th Mar 2024 at 07:17. Reason: Mentioned the geo-restriction.
-
Update:
1. Using selenium to create a Chrome window and then tried to log in:
Returned 403
[Attachment 77970 - Click to enlarge]
2. In a normal Chrome window:
Returned 200
[Attachment 77971 - Click to enlarge]
Wh...why? This is so strange. -
After a quick look, I saw that there's a prelogin (https://watch.foxtel.com.au/app/api/auth.class.api.php/prelogin/296?) that returns a secret:
Code:<?xml version="1.0" standalone="yes" ?> <array> <secret><![CDATA[42c3e47da29e4497adcd72294b3f0d6b]]></secret> </array>
-
Yes sir, this secret value is used to hash the password.
---
From my investigation, after the prelogin is successful, a cookie named "bm_sv" will change, and we carry the new "bm_sv" cookie to login.
But I tried to print all the cookies before and after the prelogin, and found that they were the same.
Similar Threads
-
HTTP 403 Access Denied (Binge)
By CrymanChen in forum Video Streaming DownloadingReplies: 27Last Post: 8th Aug 2024, 14:49 -
yt-dlp + mdp: "Could not send HEAD request" - HTTP error 403: forbidden
By oopargentina in forum Video Streaming DownloadingReplies: 6Last Post: 27th Mar 2021, 10:01 -
ffmpeg HTTP 403 Forbidden
By xerp in forum Video Streaming DownloadingReplies: 3Last Post: 4th Sep 2020, 13:22 -
Tryng to download from animal planet... HTTP error 403 Forbidden
By syrist in forum Video Streaming DownloadingReplies: 3Last Post: 15th May 2020, 19:38 -
download afreecatv steaming with ffmpeg get HTTP error 403 Forbidden
By j2ee in forum Video Streaming DownloadingReplies: 1Last Post: 30th Apr 2020, 09:13