sitereview
sitereview copied to clipboard
is the api broken?
I get this response indicating that it violates the terms of service
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Site Review Acceptable Use Information</title>
<script type="text/javascript" src="/analytics.js"></script>
<link type="text/css" rel="stylesheet" media="all" href="/css/legacy.css" />
<noscript>
<meta HTTP-EQUIV="REFRESH" content="0; url=noJavascript.jsp">
</noscript>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<style id="antiClickjack">body{display:none !important;}</style>
<style>
section.site-review-content p {
margin-bottom: 1em;
color: #454545;
}
section.site-review-content h1 {
margin-bottom: 1em;
}
section.site-review-content hr {
border-color: black;
}
section.important-note {
margin-left: 4em;
margin-right: 4em;
margin-bottom: 2em;
background-color: white;
border: solid 2px #fdbb30;
padding: 0 1em;
}
section.important-note h3 {
color: black;
font-weight: bold;
margin-top: 1em;
}
</style>
</head>
<body class="sym-theme">
<div class="header-background" style="padding-bottom: 1em">
<div class="container header_container">
<div class="header_master">
<div class="app-logo"></div>
</div>
</div>
</div>
<section class="site-review-content b-content">
<div class="center_section container">
<h1>Site Review Acceptable Use Information</h1>
<p>
It appears you are using Site Review in an automated fashion, which violates our <a href="https://www.symantec.com/about/legal/blue-coat-legal-archive/website-terms-of-use">Terms
of Use</a> and can result in loss of access to the service.
</p>
<p>
Please contact your Symantec representative for other options.
</p>
</div>
</section>
<div class="footer-background">
<div class="footer_container container">
<div class="footer_master">
<div class="copyright">
Copyright © 1995-<span>2019</span> Symantec Corporation
</div>
</div>
</div>
</div>
<script type="text/javascript">
if(self == top) {
var antiClickjack = document.getElementById("antiClickjack");
antiClickjack.parentNode.removeChild(antiClickjack);
} else {
top.location = self.location;
}
</script>
</body>
</html>
you need to provide cookies now so I had to edit the script headers to include those. you can get those by requesting the main page.
ill update this thread when I work on this later.
Hello @MarcDAFrame , did you find a solution ? I've tried to use the main page cookie and it's still the same problem... but maybe I've try with the wrong way :)
Same here.
@y-so @st3r30byt3
headers = {
"User-Agent": "Mozilla/5.0",
# "Content-Type": "application/json",
"Accept": "application/json, text/plain, */*",
"Accept-Encoding": "gzip, deflate, br",
"accept-language": "en_US",
"Connection": "keep-alive",
"Content-Length": "111",
"Content-Type": "application/json; charset=UTF-8",
"Cookie": "XSRF-TOKEN=02c121d8-59f4-4a0a-9830-84eebd8c84cf; JSESSIONID=6DF158339C8426DFD7CF45E99F1414CF",
"Host": "sitereview.bluecoat.com",
"Origin": "https://sitereview.bluecoat.com",
"Referer": "https://sitereview.bluecoat.com/",
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36",
"X-XSRF-TOKEN": "02c121d8-59f4-4a0a-9830-84eebd8c84cf",
}
def get_url():
return base_url%"https://sitereview.bluecoat.com/resource/lookup"
payload = {"url": "calendar.google.com", "captcha":""}
req = requests.post(
get_url(),
headers=headers,
data=json.dumps(payload)
)
Can any one help to fix this!
I took a crack at it, but it appears they increased security on it.
If I ever have a need for this API again I'll take another look at it and update this thread