Closed madcurious closed 8 years ago
Sounds like cloudflare is preventing ddos attacks by ensuring requests are made by a human.
Not sure why an api is behind cloudflare.
On Mon, 12 Sep 2016, 6:20 PM Matt Quiros notifications@github.com wrote:
I'm trying out the Giphy API for our app and it worked before the weekend. Now it's throwing a CAPTCHA request at me and I verified that it does that too when done from the browser. This is what I'm getting:
<!--[if gt IE 8]><!--> <!--<![endif]--> Attention Required! | CloudFlare body{margin:0;padding:0} <!--[if gte IE 10]><!--><!--<![endif]--> Please enable cookies. One more step Please complete the security check to access api.giphy.com <!-- /.header --> <div class="cf-section cf-highlight cf-captcha-container"> <div class="cf-wrapper"> <div class="cf-columns two"> <div class="cf-column"> <div class="cf-highlight-inverse cf-form-stacked"> <form class="challenge-form" id="challenge-form" action="/cdn-cgi/l/chk_captcha" method="get">
</div> </div> <div class="cf-column"> <div class="cf-screenshot-container"> <span class="cf-no-screenshot"></span> </div> </div>
</div><!-- /.captcha-container -->
<div class="cf-section cf-wrapper">
<div class="cf-columns two">
<div class="cf-column">
<h2 data-translate="why_captcha_headline">Why do I have to complete a CAPTCHA?</h2>
<p data-translate="why_captcha_detail">Completing the CAPTCHA proves you are a human and gives you temporary access to the web property.</p>
If you are on a personal connection, like at home, you can run an anti-virus scan on your device to make sure it is not infected with malware.
If you are at an office or shared network, you can ask the network administrator to run a scan across the network looking for misconfigured or infected devices.
</div><!-- /.section -->
<div class="cf-error-footer cf-wrapper">
CloudFlare Ray ID: _2e11e617bc3053ea_
•
Your IP: XXX.XX.XX.XXX
•
Performance & security by CloudFlare
<!-- /.error-footer -->
</div><!-- /#cf-error-details -->
<!-- /#cf-wrapper -->
I've already enabled cookies on the code side just to be sure:
static let session: NSURLSession = {
let configuration = NSURLSessionConfiguration.defaultSessionConfiguration()
configuration.timeoutIntervalForRequest = 15
configuration.HTTPCookieAcceptPolicy = .Always
let session = NSURLSession(configuration: configuration)
return session
}()
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Giphy/GiphyAPI/issues/99, or mute the thread
https://github.com/notifications/unsubscribe-auth/AGk_7fip6uMKtxD3wjYak2TiFwD0MjcNks5qpQtBgaJpZM4J6VsJ
.
As of this comment time, the API is working again without the CAPTCHA request.
This should be resolved. Sorry for the inconvenience!
I'm trying out the Giphy API for our app and it worked before the weekend. Now it's throwing a CAPTCHA request at me and I verified that it does that too when done from the browser. This is what I'm getting:
I've already enabled cookies on the code side just to be sure: