create account

CloudFlare Rule Checker by justyy

View this thread on: hive.blogpeakd.comecency.com
· @justyy · (edited)
$68.04
CloudFlare Rule Checker
The PHP Page Rule Checker of CloudFlare is implemented in [PHP](https://helloacm.com/how-to-whitelist-the-cloudflare-ips/), based on the CloudFlare API. 
```
$ ./rulechecker.php https://codingforspeed.com/archives-of-pagesposts/
Page Rules for https://codingforspeed.com/archives-of-pagesposts/:
1:  https://*codingforspeed.com/archives-of-pagespost*
```

The core idea of this [rule checker](https://helloacm.com/the-php-page-rule-checker-of-cloudflare/) is to fetch the list of the page rules for that zone (e.g. domain, parsed from the given URL). The page rules are checked one by one with the widechar replaced by (.*), which matches any single character in regular expressions.

The full PHP source code of PHP [CloudFlare Rule Checker](https://helloacm.com/php7-shortens-the-google-page-crawling-time/) can be found at github: https://github.com/DoctorLai/CloudFlare

# Proof of Work
`doctorlai` is my github ID and you can see my steemit profile URL listed at: https://github.com/DoctorLai

# Repost to Blog
[https://helloacm.com/the-php-page-rule-checker-of-cloudflare/](https://helloacm.com/the-php-page-rule-checker-of-cloudflare/)

<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@justyy/cloudflare-rule-checker">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorjustyy
permlinkcloudflare-rule-checker
categoryutopian-io
json_metadata"{"community":"utopian","app":"steemit/0.1","format":"markdown","repository":{"id":84647741,"name":"CloudFlare","full_name":"DoctorLai/CloudFlare","owner":{"login":"DoctorLai","id":1764434,"avatar_url":"https://avatars3.githubusercontent.com/u/1764434?v=4","gravatar_id":"","url":"https://api.github.com/users/DoctorLai","html_url":"https://github.com/DoctorLai","followers_url":"https://api.github.com/users/DoctorLai/followers","following_url":"https://api.github.com/users/DoctorLai/following{/other_user}","gists_url":"https://api.github.com/users/DoctorLai/gists{/gist_id}","starred_url":"https://api.github.com/users/DoctorLai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoctorLai/subscriptions","organizations_url":"https://api.github.com/users/DoctorLai/orgs","repos_url":"https://api.github.com/users/DoctorLai/repos","events_url":"https://api.github.com/users/DoctorLai/events{/privacy}","received_events_url":"https://api.github.com/users/DoctorLai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DoctorLai/CloudFlare","description":"CloudFlare Rule Checker","fork":false,"url":"https://api.github.com/repos/DoctorLai/CloudFlare","forks_url":"https://api.github.com/repos/DoctorLai/CloudFlare/forks","keys_url":"https://api.github.com/repos/DoctorLai/CloudFlare/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoctorLai/CloudFlare/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoctorLai/CloudFlare/teams","hooks_url":"https://api.github.com/repos/DoctorLai/CloudFlare/hooks","issue_events_url":"https://api.github.com/repos/DoctorLai/CloudFlare/issues/events{/number}","events_url":"https://api.github.com/repos/DoctorLai/CloudFlare/events","assignees_url":"https://api.github.com/repos/DoctorLai/CloudFlare/assignees{/user}","branches_url":"https://api.github.com/repos/DoctorLai/CloudFlare/branches{/branch}","tags_url":"https://api.github.com/repos/DoctorLai/CloudFlare/tags","blobs_url":"https://api.github.com/repos/DoctorLai/CloudFlare/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoctorLai/CloudFlare/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoctorLai/CloudFlare/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoctorLai/CloudFlare/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoctorLai/CloudFlare/statuses/{sha}","languages_url":"https://api.github.com/repos/DoctorLai/CloudFlare/languages","stargazers_url":"https://api.github.com/repos/DoctorLai/CloudFlare/stargazers","contributors_url":"https://api.github.com/repos/DoctorLai/CloudFlare/contributors","subscribers_url":"https://api.github.com/repos/DoctorLai/CloudFlare/subscribers","subscription_url":"https://api.github.com/repos/DoctorLai/CloudFlare/subscription","commits_url":"https://api.github.com/repos/DoctorLai/CloudFlare/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoctorLai/CloudFlare/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoctorLai/CloudFlare/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoctorLai/CloudFlare/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoctorLai/CloudFlare/contents/{+path}","compare_url":"https://api.github.com/repos/DoctorLai/CloudFlare/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoctorLai/CloudFlare/merges","archive_url":"https://api.github.com/repos/DoctorLai/CloudFlare/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoctorLai/CloudFlare/downloads","issues_url":"https://api.github.com/repos/DoctorLai/CloudFlare/issues{/number}","pulls_url":"https://api.github.com/repos/DoctorLai/CloudFlare/pulls{/number}","milestones_url":"https://api.github.com/repos/DoctorLai/CloudFlare/milestones{/number}","notifications_url":"https://api.github.com/repos/DoctorLai/CloudFlare/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoctorLai/CloudFlare/labels{/name}","releases_url":"https://api.github.com/repos/DoctorLai/CloudFlare/releases{/id}","deployments_url":"https://api.github.com/repos/DoctorLai/CloudFlare/deployments","created_at":"2017-03-11T12:15:46Z","updated_at":"2017-12-12T21:25:39Z","pushed_at":"2017-12-12T21:27:07Z","git_url":"git://github.com/DoctorLai/CloudFlare.git","ssh_url":"git@github.com:DoctorLai/CloudFlare.git","clone_url":"https://github.com/DoctorLai/CloudFlare.git","svn_url":"https://github.com/DoctorLai/CloudFlare","homepage":"https://helloacm.com/the-php-page-rule-checker-of-cloudflare/","size":4,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master","score":14.380587},"pullRequests":[],"platform":"github","type":"development","tags":["utopian-io","cloudflare","rule-checker","php-checker"],"links":["https://helloacm.com/how-to-whitelist-the-cloudflare-ips/","https://helloacm.com/the-php-page-rule-checker-of-cloudflare/","https://helloacm.com/php7-shortens-the-google-page-crawling-time/","https://github.com/DoctorLai/CloudFlare","https://github.com/DoctorLai","https://utopian.io/utopian-io/@justyy/cloudflare-rule-checker"]}"
created2017-12-12 21:30:00
last_update2017-12-15 17:13:54
depth0
children7
last_payout2017-12-19 21:30:00
cashout_time1969-12-31 23:59:59
total_payout_value50.956 HBD
curator_payout_value17.082 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,303
author_reputation280,616,224,641,976
root_title"CloudFlare Rule Checker"
beneficiaries
0.
accountcnts
weight10
1.
accountdamla
weight23
2.
accountfreedom
weight658
3.
accountnetuoso
weight6
4.
accountsimnrodrguez
weight22
5.
accounttransisto
weight70
6.
accountutopian-io
weight536
7.
accountxeldal
weight27
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,288,825
net_rshares15,491,077,584,930
author_curate_reward""
vote details (45)
@codingdefined ·
Thank you for the contribution. It has been approved.

You can contact us on [Discord](https://discord.gg/UCvqCsx).
**[[utopian-moderator]](https://utopian.io/moderators)**
properties (22)
authorcodingdefined
permlinkre-justyy-cloudflare-rule-checker-20171213t042644869z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"busy","app":"busy/1.0.0"}
created2017-12-13 04:26:45
last_update2017-12-13 04:26:45
depth1
children1
last_payout2017-12-20 04:26:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length172
author_reputation526,172,032,176,921
root_title"CloudFlare Rule Checker"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,319,667
net_rshares0
@justyy ·
$0.28
Thank you, 谢谢您
👍  
properties (23)
authorjustyy
permlinkre-codingdefined-re-justyy-cloudflare-rule-checker-20171213t111854786z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2017-12-13 11:19:00
last_update2017-12-13 11:19:00
depth2
children0
last_payout2017-12-20 11:19:00
cashout_time1969-12-31 23:59:59
total_payout_value0.208 HBD
curator_payout_value0.067 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length14
author_reputation280,616,224,641,976
root_title"CloudFlare Rule Checker"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,352,934
net_rshares53,118,110,313
author_curate_reward""
vote details (1)
@jout ·
$0.51
This post has received gratitude of 0.95 % from @jout thanks to: @justyy.
👍  
properties (23)
authorjout
permlinkre-justyy-cloudflare-rule-checker-20171212t213811822z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["jout","justyy"],"app":"steemit/0.1"}
created2017-12-12 21:38:09
last_update2017-12-12 21:38:09
depth1
children1
last_payout2017-12-19 21:38:09
cashout_time1969-12-31 23:59:59
total_payout_value0.386 HBD
curator_payout_value0.126 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length73
author_reputation29,033,735,920,223
root_title"CloudFlare Rule Checker"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,289,510
net_rshares104,759,973,642
author_curate_reward""
vote details (1)
@postpromoter ·
re-jout-re-justyy-cloudflare-rule-checker-20171212t213811822z-20171218t001918284z
You got a 0.07% upvote from @postpromoter courtesy of @jout!
properties (22)
authorpostpromoter
permlinkre-jout-re-justyy-cloudflare-rule-checker-20171212t213811822z-20171218t001918284z
categoryutopian-io
json_metadata{"app":"postpromoter/1.6.0"}
created2017-12-18 00:19:18
last_update2017-12-18 00:19:18
depth2
children0
last_payout2017-12-25 00:19:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length60
author_reputation12,722,616,650,811
root_title"CloudFlare Rule Checker"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,946,955
net_rshares0
@utopian-io ·
### Hey @justyy I am @utopian-io. I have just upvoted you!
#### Achievements
- Seems like you contribute quite often. AMAZING!
#### Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. <a href="https://discord.gg/zTrEMqB">Participate on Discord</a>. Lets GROW TOGETHER!
- <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness With SteemConnect</a>
- <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy vote to Utopian Witness with SteemConnect</a>
- Or vote/proxy on <a href="https://steemit.com/~witnesses">Steemit Witnesses</a>

[![mooncryption-utopian-witness-gif](https://steemitimages.com/DQmYPUuQRptAqNBCQRwQjKWAqWU3zJkL3RXVUtEKVury8up/mooncryption-s-utopian-io-witness-gif.gif)](https://steemit.com/~witnesses)

**Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x**
properties (22)
authorutopian-io
permlinkre-justyy-cloudflare-rule-checker-20171214t024336335z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2017-12-14 02:43:36
last_update2017-12-14 02:43:36
depth1
children0
last_payout2017-12-21 02:43:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,004
author_reputation152,955,367,999,756
root_title"CloudFlare Rule Checker"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,440,401
net_rshares0
@victory622 ·
你那能查看前面堵塞的没点赞的文章全都点完了吗?这两天点的百分比好少。
properties (22)
authorvictory622
permlinkre-justyy-cloudflare-rule-checker-20171212t232445732z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2017-12-12 23:24:45
last_update2017-12-12 23:24:45
depth1
children1
last_payout2017-12-19 23:24:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length34
author_reputation132,772,573,652,848
root_title"CloudFlare Rule Checker"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,297,549
net_rshares0
@justyy ·
$0.30
查不到。。
是的,这两天普遍偏低,因为帖子多了,所以平均的低。
👍  ,
properties (23)
authorjustyy
permlinkre-victory622-re-justyy-cloudflare-rule-checker-20171213t111520692z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2017-12-13 11:15:27
last_update2017-12-13 11:15:27
depth2
children0
last_payout2017-12-20 11:15:27
cashout_time1969-12-31 23:59:59
total_payout_value0.244 HBD
curator_payout_value0.051 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length31
author_reputation280,616,224,641,976
root_title"CloudFlare Rule Checker"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,352,591
net_rshares57,040,172,099
author_curate_reward""
vote details (2)