我有一个封闭的门户,我试图将HTTPS流量重定向到我的门户--最好没有来自于重定向https流量的认证警告。
E.G
User attempts to access https://google.co.uk
User is not validated.
User gets redirected to https://portal.com via the router
根据当前的情况,用户被重定向到证书警告,即
"this certificate is not trusted“
显然,可以通过提供SSL证书来绕过此问题。在线上的人似乎都说他们拥有https://网站(即portal.co
下面是一个简单的python代码,可以转到特定的网站:
import pandas as pd
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from time import sleep
from selenium.webdriver.common.by import By
import time
profile=webdriver.ChromeOptions()
profile.add_argument('--ignore-certificate-errors')