cloudflare

Accessing webpage with Cloudflare protection

有些话、适合烂在心里 提交于 2019-12-08 02:45:30
问题 First of I wanted to apologize in case my question may not be provided with enough connect or anything of that matter, I'm typing this up on my phone right now. So I'm working on a project that requires me to automate tasks within a webpage and in order to do that, step one is to access the page in the first place, but I've reached an obstacle that I've tried searching and figuring out with no avail. The webpage I'm trying to reach had DDoS protection by CloudFlare, meaning before entering

How do I host a React app in Google Storage Bucket behind Cloudflare?

限于喜欢 提交于 2019-12-08 01:39:24
问题 I have a small static website in React that I want to deploy to Google Storage Bucket. I have a router.jsx similar to this <Route component={App}> <Route path="/" component={AuthenticationFirewall(AccessSecurity(MainPanel), Login)}> <IndexRoute component={Homepage} /> <Route path="/companies" component={Companies}> <IndexRoute component={CompaniesTable} /> <Route path="/companies/:id" component={CompaniesDetail} /> </Route> </Route> </Route> When I access the index page and I click through

Cloudflare and Firebase

雨燕双飞 提交于 2019-12-07 13:10:08
问题 Is it possible to use Cloudflare to reduce the stress on my firebase landing page? If so, how would I go about setting that up? This is a relatively new concept to me. 回答1: This is possible but not recommended. Firebase Hosting is already served via a global CDN and is built to take on enormous scale. By using CloudFlare acceleration (using it just for DNS is perfectly fine) in front of Firebase Hosting you are likely to slow down your site by adding an extra proxy layer between the client

In CloudFlare, present cached page only if cookie is not set

南笙酒味 提交于 2019-12-07 12:03:25
问题 I'm trying to prevent CloudFlare from hitting our servers if a user is not logged in, but instead to get the cached object if possible. We're setting a cookie ('email') if the user is logged in, and clearing it when the user is logged out. Is this possible? 回答1: In order to do this you can use a feature called "Bypass Cache on Cookie". This allows you to specify a Regex string of what type of cookie you want to Bypass: When used in conjunction with a Cache Everything Page Rule, you can use

How should I set the real IP address when using CloudFlare, Heroku, and RoR?

老子叫甜甜 提交于 2019-12-07 09:33:35
问题 I just recently started using CloudFlare and still have the lingering issue of getting CloudFlare's proxy IP addresses instead of my visitor's address. CloudFlare has many solutions for this, but I haven't seen any for Rails. I'm using Rails 3.2.17. It looks like if I initialize ActionDispatch::RemoteIp with the custom_proxies argument set to the proper regular expression that contains all of CloudFlare's IP ranges (along with all of the standard local and private ranges), it might solve my

How to use a variable in a CURL request with bash?

我只是一个虾纸丫 提交于 2019-12-07 05:28:16
问题 Goal: I'm using a bash CURL script to connect to the Cloudflare APIv4. The goal is to update an A-record. My script: # Get current public IP current_ip=curl --silent ipecho.net/plain; echo # Update A record curl -X PUT "https://api.cloudflare.com/client/v4/zones/ZONEIDHERE/dns_records/DNSRECORDHERE" \ -H "X-Auth-Email: EMAILHERE" \ -H "X-Auth-Key: AUTHKEYHERE" \ -H "Content-Type: application/json" \ --data '{"id":"ZONEIDHERE","type":"A","name":"example.com","content":"'"${current_ip}"'","zone

Use CloudFlare to CDN a Google Cloud Storage Bucket

笑着哭i 提交于 2019-12-07 04:37:42
问题 I've heard many good things about Cloudflare, and they have an excellent CDN product that features functionality not found on competitors (HTTP2, IPv6 etc). I have files in a Google Cloud Storage bucket. How to set these files as the origin for a Cloudflare CDN? (The Cloudflare control panel seems to just want a website on a root domain...?) 回答1: Maybe a bit late, but I put my answer just in case it is useful for someone else looking to do the same thing. I have a bucket in Google Cloud

Why do I get a malformed JSON in request body in this cURL call?

半世苍凉 提交于 2019-12-06 21:29:54
问题 I have been trying to call the CloudFlare API v4, using an example provided in their own documentation. This is the code of the example curl -X PUT "https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/dns_records/372e67954025e0ba6aaa6d586b9e0b59" \ -H "X-Auth-Email: user@example.com" \ -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \ -H "Content-Type: application/json" \ --data '{"id":"372e67954025e0ba6aaa6d586b9e0b59","type":"A","name":"example.com",

How to scrape a web site with sucuri protection

女生的网名这么多〃 提交于 2019-12-06 12:23:31
问题 According to Scrapy Documetions I want to crawl and scrape data from several sites, My codes works correctly with usual website,but when I want crawl a website with Sucuri I don't get any data, it seems sucuri firewall prevent me to access to websites markups. The target website is http://www.dwarozh.net/ and This is my spider snippet from scrapy import Spider from scrapy.selector import Selector import scrapy from Stack.items import StackItem from bs4 import BeautifulSoup from scrapy import

Cloudflare's Rocket Loader + Wordpress -> Ignore scripts?

此生再无相见时 提交于 2019-12-06 11:44:02
问题 I'm trying to make Cloudflare's Rocket Loader work on my WP site. Everything works fine except for the WP Visual Editor. I followed the advice here but it doesn't work: How do I add custom attributes to javascript tags in Wordpress? Cloudflare says that in order to make Rocket Loader ignore a javascript file I need to add the data-cfasync="false" tag before my script: <script data-cfasync="false" src="/javascript.js"></script> https://support.cloudflare.com/entries/22063443--How-can-I-have