![封面图](https://www.mhcf.net/content/uploadfile/202005/60ab1589506456.jpg) 自2019年10月18日起,梦幻辰风就开始针对这一个地方屏蔽了那一个地区的访问。 最初我是通过又拍云CDN来实现的,但是随着网站的备案号被注销后,又拍云CDN就暂停了我的接入。 随后呢,我采用了淘宝IP的API,但是发现有限制:每个用户的访问频率需小于1qps。作为一个文科生,我也不知道1qps是什么意思。随后,看着IPIP,发现那一家在线API也有限制——直接对梦幻辰风的IP返回429。 最后,在 @慕若曦 同学的帮助下,根据ipip的离线数据库搭建了自己用语验证的IP地址库。 在这里,我分享给大家的是 @羽忆江南 同学提供的API,如果您有需要,可以自己搭建。在微信搜索“梦幻辰风”,关注后回复“IP”即可下载程序(PHP脚本)。 至于如何使用?把以下代码放在网站的index.php头部即可。 作为一个菜鸡,只能用最详细的注释来保证自己不会忘记写的什么。如果这个能帮到你,十分荣幸。 <?php /* * Title :定点屏蔽一个位置的访问 * Author:姜辰 * Time :2020/03/17 * About :这是基于 @羽忆江南 的API搭建的。这个IP数据库来自ipip.net的离线数据,有需要自己搭建的可以关注梦幻辰风公众回复“IP”获取下载。(感谢 @慕若曦 帮忙写的代码。) */ header("Content-type:text/html; charset=utf-8");//确认好编码。 error_reporting(0);//屏蔽报错 if(empty($_COOKIE["UserCity"])){ //没有cookies,第一次来吧? $api="https://yyer.net/ipip/user.php?ip=".$_SERVER['REMOTE_ADDR'];//接口 $data=file_get_contents($api);//直接读取接口 wall($data);//对接口进行处理 } else{ //有cookies,不是新人 wall($_COOKIE["UserCity"]); } function wall($data){ //一个很辣鸡的函数 if($data=="台湾"){ //我们选择要屏蔽的省份 //拒绝访问的跳转地址 header("Location: /NoAccess.html"); } //如果不是我们要屏蔽访问的省份 //那就为它写入Cookies setcookie("UserCity",$data,time()+2592000);//保存用户cookies,减少对API的访问 } 这个在什么时候会用到呢? 比如,备案的时候你只想让你们管局无法访问? 比如,因为约谈的原因你需要拒绝一个地方的审查? 比如,你看姜辰不顺眼想屏蔽慕若曦所在的那个省份的访问? 假如,你想让某个地方少部分人可以访问呢? 给他们做一个APP客户端吧!然后在wall函数里,添加一个访问的参数,有那么参数直接写入可以访问的cookies。 最后,如果觉得有用,不如关注下“梦幻辰风”?
post_id | 86,008,198 |
---|---|
author | jiangchen |
permlink | 5vhzcg |
category | hive-180932 |
json_metadata | {"tags":["cn","cn-reader","cn-curation","whalepower","cn-stem","steemstem","cn-programming","palnet","zzan","dblog","diamondtoken","marlians","neoxian","lassecash","upfundme","actnearn"],"image":["https:\/\/www.mhcf.net\/content\/uploadfile\/202005\/60ab1589506456.jpg"],"app":"steemcoinpan\/0.1","format":"markdown"} |
created | 2020-05-15 01:38:42 |
last_update | 2020-05-15 01:38:42 |
depth | 0 |
children | 2 |
net_rshares | 2,367,619,640,010 |
last_payout | 2020-05-22 01:38:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.416 SBD |
curator_payout_value | 0.408 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 1,566 |
author_reputation | 30,823,992,397,451 |
root_title | 我是如何做到精准屏蔽一个省份用户的访问? |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
lemooljiang | 0 | 479,860,911,196 | 68% | ||
skysunny | 0 | 88,501,185 | 68% | ||
rivalhw | 0 | 465,169,793,614 | 100% | ||
justyy | 0 | 448,750,321,800 | 2.25% | ||
dapeng | 0 | 36,214,778,635 | 100% | ||
happyukgo | 0 | 91,214,590 | 2.25% | ||
nokeh | 0 | 0 | 2.25% | ||
timool | 0 | 877,355,444 | 68% | ||
lucknie | 0 | 13,896,168,366 | 68% | ||
dumping | 0 | 1,383,069,041 | 68% | ||
laodr | 0 | 2,654,180,561 | 100% | ||
shenchensucc | 0 | 518,204,533 | 0.3% | ||
whalepower | 0 | 8,996,510,305 | 25% | ||
robinlee | 0 | 0 | 2.25% | ||
pixelfan | 0 | 13,364,983,336 | 2.2% | ||
rainyapril | 0 | 0 | 2.25% | ||
kangnajiang | 0 | 0 | 2.25% | ||
kikima | 0 | 0 | 2.25% | ||
geass | 0 | 0 | 2.25% | ||
cn-reader | 0 | 5,744,324,241 | 50% | ||
kimzwarch | 0 | 14,984,071,274 | 8% | ||
davidke20 | 0 | 4,665,303,545 | 4% | ||
superbing | 0 | 354,698,906 | 2.25% | ||
dailyfortune | 0 | 130,282,621 | 2.25% | ||
xiaoshancun | 0 | 25,559,048,317 | 100% | ||
dailystats | 0 | 683,256,373 | 2.25% | ||
metten | 0 | 7,430,747,688 | 68% | ||
jianan | 0 | 1,031,557,209 | 2.25% | ||
cn-book | 0 | 761,162,389 | 68% | ||
halleyleow | 0 | 4,043,513,427 | 80% | ||
cnbuddy | 0 | 18,523,410,985 | 1% | ||
cn-movie | 0 | 75,293,689 | 68% | ||
daxiang | 0 | 0 | 2.25% | ||
anxin | 0 | 19,072,990 | 2.25% | ||
lebin | 0 | 650,326,105,855 | 100% | ||
vivia | 0 | 2,376,255,201 | 68% | ||
yikloongye | 0 | 0 | 4% | ||
johnhooi | 0 | 0 | 4% | ||
moobear | 0 | 0 | 2.25% | ||
maiyude | 0 | 6,152,775,455 | 2.3% | ||
xiaoli | 0 | 213,255,755 | 68% | ||
yumisee | 0 | 2,357,009 | 4% | ||
nean | 0 | 0 | 2.25% | ||
joeliew | 0 | 90,333,806 | 4% | ||
foodielifestyle | 0 | 0 | 2.25% | ||
woolfe19861008 | 0 | 10,424,429 | 2.25% | ||
hkit98 | 0 | 0 | 4% | ||
dailychina | 0 | 475,873,387 | 2.25% | ||
elvinmas001 | 0 | 0 | 4% | ||
watersoo | 0 | 81,308,808 | 4% | ||
vamos-amigo | 0 | 75,114,131 | 4% | ||
vincenthan | 0 | 0 | 2.25% | ||
yuxuan | 0 | 0 | 2.25% | ||
iipoh06 | 0 | 0 | 4% | ||
dongfengman | 0 | 244,652,821 | 2.25% | ||
serenazz | 0 | 0 | 2.25% | ||
annabellenoelle | 0 | 0 | 4% | ||
yedda | 0 | 0 | 2.25% | ||
zasilla | 0 | 0 | 2.25% | ||
fishaa | 0 | 80,053,418 | 2.25% | ||
yethui | 0 | 0 | 4% | ||
riczlook | 0 | 0 | 4% | ||
ethanlee | 0 | 40,269,291 | 2.25% | ||
andrewnoel | 0 | 0 | 4% | ||
twinsnicole | 0 | 0 | 2.25% | ||
deepthinking | 0 | 0 | 2.25% | ||
gogoabc | 0 | 80,299,812 | 2.25% | ||
fanso | 0 | 0 | 2.25% | ||
lilypang22 | 0 | 0 | 2.25% | ||
fishcc | 0 | 55,949,861 | 2.25% | ||
fishdd | 0 | 45,762,675 | 2.25% | ||
yuting | 0 | 80,808,437 | 2.25% | ||
lilyan | 0 | 81,992,731 | 2.25% | ||
zens | 0 | 0 | 2.25% | ||
andrewma | 0 | 63,728,497 | 0.45% | ||
steemitvip | 0 | 0 | 2.25% | ||
regals | 0 | 0 | 2.25% | ||
joelone | 0 | 0 | 2.25% | ||
archisteem | 0 | 4,715,310,918 | 7.5% | ||
sweet-jenny8 | 0 | 509,265,613 | 2.25% | ||
atinna | 0 | 56,311,142 | 2.25% | ||
cn-malaysia | 0 | 1,112,503,623 | 4% | ||
digital.mine | 0 | 27,796,344,363 | 1% | ||
moneybaby | 0 | 837,610,598 | 2.5% | ||
abcallen | 0 | 2,015,689,952 | 10% | ||
wanggang | 0 | 1,477,776,356 | 0.2% | ||
ffbank | 0 | 81,557,212 | 2.25% | ||
weicomenew | 0 | 69,155,413 | 2.25% | ||
laiyuehta | 0 | 57,481,304 | 2.25% | ||
turtlegraphics | 0 | 16,593,040 | 2.25% | ||
julian2013 | 0 | 7,058,430,589 | 5% | ||
witnesstools | 0 | 136,035,921 | 2.25% | ||
cherryzz | 0 | 1,459,138,281 | 0.5% | ||
sasaadrian | 0 | 32,243,585,652 | 20% | ||
ilovecoding | 0 | 125,194,270 | 2.25% | ||
cvn80 | 0 | 71,518,476 | 100% | ||
steemfuckeos | 0 | 36,760,851 | 2.25% | ||
morningshine | 0 | 30,548,067,713 | 8% | ||
bobdavids | 0 | 0 | 4% | ||
limka | 0 | 107,031,807 | 100% | ||
mia-cc | 0 | 5,492,474,150 | 100% | ||
cecilian | 0 | 8,658,355,201 | 99.62% | ||
blockcleaner | 0 | 491,044,728 | 2.25% | ||
aaronli.sct | 0 | 722,360,272 | 10% | ||
steem-drivers | 0 | 6,485,156,597 | 50% | ||
cplusplus | 0 | 123,857,558 | 2.25% | ||
justsoso | 0 | 0 | 2.25% | ||
longhash | 0 | 119,443,504 | 2.25% | ||
cnlifes | 0 | 79,090,220 | 2.25% | ||
cnfish | 0 | 79,455,297 | 2.25% | ||
llfestyle | 0 | 90,439,215 | 2.25% | ||
cnvote | 0 | 9,054,836,991 | 100% | ||
cnbuddy-reward | 0 | 6,951,267,877 | 1% | ||
starnote | 0 | 149,917,196 | 68% | ||
moochain.net | 0 | 151,198,955 | 68% | ||
lemool | 0 | 0 | 68% | ||
liebin | 0 | 0 | 68% | ||
dinggle | 0 | 0 | 68% | ||
coursechain | 0 | 0 | 68% | ||
erlcet | 0 | 56,978,024 | 2.25% | ||
steeemmonsters | 0 | 56,532,648 | 2.25% | ||
maiydue | 0 | 113,715,762 | 2.25% | ||
wongshiylng | 0 | 123,573,411 | 2.25% | ||
deepcrypti8 | 0 | 122,058,337 | 2.25% | ||
myiord1992 | 0 | 121,950,232 | 2.25% | ||
wilhb82 | 0 | 56,540,913 | 2.25% | ||
morningshlne | 0 | 56,428,317 | 2.25% | ||
leodec | 0 | 56,318,480 | 2.25% | ||
splinterislands | 0 | 122,868,818 | 2.25% | ||
keivinzhang | 0 | 122,168,533 | 2.25% | ||
sexybeach | 0 | 121,194,163 | 2.25% | ||
suckmydick | 0 | 36,503,162 | 2.25% | ||
chromebook | 0 | 36,795,673 | 2.25% | ||
ericandryan | 0 | 239,361,575 | 2.25% | ||
starchain | 0 | 0 | 68% | ||
steemipfs | 0 | 0 | 68% | ||
littleksroad | 0 | 547,333,468 | 50% |
Hi! Did you know that steemit.com is now censoring users and posts based on their opinions? All the posts of these users are gone! https://github.com/steemit/condenser/commit/3394af78127bdd8d037c2d49983b7b9491397296 Here's a list of some banned users: ```'roelandp', 'blocktrades', 'anyx', 'ausbitbank', 'gtg', 'themarkymark', 'lukestokes.mhth', 'netuoso', 'innerhive'``` See anyone you recognize? There could be more, they also have a remote IP ban list. Will you be censored next?
post_id | 86,008,199 |
---|---|
author | cheetah |
permlink | cheetah-re-jiangchen5vhzcg |
category | hive-180932 |
json_metadata | {} |
created | 2020-05-15 01:38:51 |
last_update | 2020-05-15 01:38:51 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2020-05-22 01:38:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 487 |
author_reputation | 750,854,098,279,735 |
root_title | 我是如何做到精准屏蔽一个省份用户的访问? |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
你今天过的开心吗?请支持中文区的见证人, @abit @bobdos @ety001 @justyy @oflyhigh @partiko (首字母顺序),全投,一个都不要漏。假如我的留言打扰到你,请回复“取消”。
post_id | 101,138,112 |
---|---|
author | cnbuddy |
permlink | re-jiangchen-5vhzcg-20220919t102219997z |
category | hive-180932 |
json_metadata | {} |
created | 2022-09-19 10:22:21 |
last_update | 2022-09-19 10:22:21 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2022-09-26 10:22:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 107 |
author_reputation | -1,405,328,253,928 |
root_title | 我是如何做到精准屏蔽一个省份用户的访问? |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |