Cloudflare API
It is necessary to write a script for PowerShell or CMD (Windows) or, as a last resort, PHP, considering that the script will take a very long time to execute and that on servers the execution time is limited, so the task should be broken down into batches.
The essence of the task
There are 10,000 domains scattered randomly across 30 cloud accounts.
For all cloud accounts, there are both global API keys and API tokens with open rights to edit the necessary data (screenshot 1).
Using the cloud API, the following task needs to be implemented:
1) Take a domain, check it against the list of tokens in search of the cloud account where the domain is located.
2) Check Redirect Rules. If there are any rules (regardless of what they are and what name they have), delete them first.
3) Next, create a new rule
{
"action": "redirect",
"action_parameters": {
"from_value": {
"preserve_query_string": false,
"status_code": 307,
"target_url": {
"value": ""
}
}
},
"description": "Redirect to goy",
"enabled": true,
"expression": "(ip.geoip.asnum ne 15169 and ip.src.asnum ne 15169 and ip.geoip.asnum ne 20940 and ip.src.asnum ne 20940 and ip.geoip.asnum ne 15180 and ip.src.asnum ne 15180 and ip.geoip.asnum ne 36040 and ip.src.asnum ne 36040 and ip.geoip.asnum ne 15192 and ip.src.asnum ne 15192 and not starts_with(http.request.uri.path, \"\"))",
"version": "8"
}
4) Provide the option to simply delete all rules without creating a new one.
Applications 2
-
3893 24 0 Good day,
I am ready to take on your project. I have experience working with PowerShell, CMD, and PHP to create scripts that run efficiently even with long execution times. I can develop a script that breaks the task into batches to optimize execution time.
To address your task of working with 10,000 domains and 30 cloud accounts, I can propose the following plan:
1) Checking the domain against the list of tokens in the cloud accounts.
2) Removing existing Redirect Rules and creating a new rule with the specified parameters.
3) The ability to delete all rules without creating a new one.
… My rate is $16 per hour. To start working, I will need a more detailed description of the project requirements.
Sincerely,
Maxim
-
8168 63 1 Good afternoon!
I am ready to help you with this project. I look forward to discussing all the details and starting work!
-
1671 11 0 I will create a cmd utility in Golang, the process can be split into different threads.
-
93540 1262 1 10 Hello. I am ready to implement the script in Python or Node.js. In what format are your tokens and domains currently stored? In json?
-
8867 60 0 1 Good afternoon, I am ready to implement your project. I write in Python and hold 3rd place on the platform. I have experience in implementing similar projects.
Portfolio:Freelancehunt
Write to me, we will discuss the details and I will start working.
Current freelance projects in the category PHP
Parser expireddomains.net
113 USD
A parser is needed for expireddomains.net. You need to log in to the site first; the problem is that it blocks the IP when trying to parse data. You need to parse thematic domains based on a list of keywords. If you are not confident in your abilities, please do not write. PHP, Web Programming ∙ 1 day 16 hours back ∙ 48 proposals |
Integration of payment service with Sales Force
70 USD
There is a payment system widget on the site that needs to be integrated with Salesforce so that all required parameters are visible on the Salesforce side. It needs to be done in such a way that all payments and subscriptions are controlled through Salesforce. PHP, Web Programming ∙ 1 day 20 hours back ∙ 40 proposals |
Intercom systems
90 USD
We are looking for an experienced BAS (1C 8.3) programmer to refine a custom configuration for the business processes of our company. What is needed: — Study the current custom BAS 8.3 configuration — Refine and adjust it to our processes — Accounting: clients, contracts,… PHP, Databases & SQL ∙ 4 days 19 hours back ∙ 13 proposals |
Exporting goods from 1C to prom.uaCreate and configure an API export module for products from 1C to the cabinet and to the site prom.ua, rozetka, or another marketplace of your choice, including stock, names, images from 1C, prices, automatic export, automatic updates. PHP, Databases & SQL ∙ 5 days 11 hours back ∙ 21 proposals |
Fix the WPML translation issueThe website has product translation set up through the Advanced Editor. The translations in the editor are correct, but the incorrect text is displayed on the site. If you go to the page editor (in the language we are translating to), that is exactly the text indicated (in… PHP, Web Programming ∙ 6 days 11 hours back ∙ 37 proposals |