Firewall rules/access control to "whitelist" my office in Shenzhen, mainland china , my office ISP priovide dynamic DNS , I just need my office in shenzhen,china access my website ,then BLOCK all the mainland china ttraffic!

firewall rules/access control to “whitelist” my office in Shenzhen, mainland china , my office ISP priovide dynamic DNS , I just need my office in shenzhen,china access my website ,then BLOCK all the mainland china ttraffic !

1 Like

Hopefully your IP address doesn’t change often, so you won’t have to keep updating your Firewall Rule. This rule says if the visitor is in China, but NOT from your IP address, then block them.

2 Likes

That was exactly what I did
But
As I said :
My ISP provide dynamic DNS change IP pretty offen
Of which is the pain in the ■■■
Do I have to add random IP to the whitelist once a day ?:sob:

Any best solutions, please ? Even if I need to pay for the enterprise plan , worth it ! But tell me how it works ,please !

Plus :
I don’t want buy static IP address from my ISP !

You’re certainly welcome to write a local script to update that firewall rule as often as you want with your current IP address:

2 Likes

My current IP address changes pretty often ,
I am confused !

sdayman via Cloudflare Community <[email protected]> 于 2020年9月17日周四 03:38写道:

I don’t understand why you are willing to pay for an Enterprise plan that costs thousands of dollars every month, but do not want to pay for a static IP address.

If you don’t want to pay for a static IP address, you will need to find a developer who knows how to write scripts on your computer using the API information in my link above.

1 Like

I’ll write my script

sdayman via Cloudflare Community <[email protected]> 于 2020年9月17日周四 08:50写道:

Is there a demo code inmy case for “write scripts on your computer using the API information in my link above.” , Please ?

sdayman via Cloudflare Community <[email protected]> 于 2020年9月17日周四 08:50写道:

1 Like

THIS IS FROM ME TO MY HOSTING COMPANY:
Since you have told me after using SG
optimizer :curl shown image are in webp filetype instead of png or jpg .

Why is it that :

1.ANAMYZING MY WEBSITE :
gtmetrix
AND


2.BOTH OF GTMETRIX and
GOOLGE PAGESPEED INSIGHTS RECOMEND THE FOLLOWING :
Serve scaled images (GTMETRIX)
Serve images in next-gen formats(GOOLGE PAGESPEED INSIGHTS)
Please ?:

THIS IS FROM MY HOSTING COMPANY TO ME:
Evgeni Zagorov

Sep 21, 2020 NaN:14

Thank you for your reply.

The issue appears to be caused by Cloudflare, you can test that the images are shown with webp with hosts file as shown in this guide: https://www.siteground.com/kb/how_to_use_the_hosts_file/#:~:text=The%20hosts%20file%20is%20used,the%20domain%20is%20resolved%20worldwide.

If there are other questions or issues you are welcome to reach us again.

Best Regards,

Evgeni Zagorov
Technical Support Team

MY QUESTION IS:
SHOULD I CHAGE DNS FROM CLOUDFALRE TO SITEGROUND
IN ORDER TO MAKE WEBP IMAGES TAKEN INTO EFFECTION ?