Thread Starter
hamoon
(@graphirancom)
pls help this is a bad situation….
Which country are you in, and do you know of any content delivery networks that aren’t blocked in your country?
Hey, jsDelivr team here.
We are not aware of being blocked in any countries. But we do get some reports of people using misconfigured firewalls in their networks that accidentally block cdn.jsdelivr.net.
They always fix the issue and continuing using us without problems.
I would appreciate more information about this issue.
What country are you in. What is the output when pinging cdn.jsdelivr.net. What is the output when doing dig cdn.jsdelivr.net
Thanks
Thread Starter
hamoon
(@graphirancom)
hi
i live in iran
i can not open https://www.jsdelivr.com/ . its not blocked but stucks in loading with no page view.
look this is my post edit in wordpress :
http://s6.picofile.com/file/8384892368/Untitled_1.jpg
alomst 99% times it get stuck in cdn.jsdeivr.net … then i have to use vpn.
some websites are not blocked in iran but we can not open it cause of some sources like this.
Thread Starter
hamoon
(@graphirancom)
and i use just windows defender firewall like always nothing changed.
I assume you use windows? Can you open your command line and do the following?
ping cdn.jsdelivr.net
nslookup cdn.jsdelivr.net
And send me the output. Thank you
Thread Starter
hamoon
(@graphirancom)
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 129ms, Maximum = 184ms, Average = 144ms
C:\Users\Hamoon>nslookup cdn.jsdelivr.net
Server: UnKnown
Address: 192.168.1.1
Non-authoritative answer:
Name: cdn.jsdelivr.net.cdn.cloudflare.net
Addresses: 2606:4700::6810:5714
2606:4700::6810:5814
2606:4700::6810:5614
2606:4700::6810:5914
2606:4700::6810:5514
104.16.89.20
104.16.85.20
104.16.87.20
104.16.86.20
104.16.88.20
Aliases: cdn.jsdelivr.net
jsdelivr.a7e454.flexbalancer.net
i think ping is ok buf 90% of times i have to use vpn to open wp post edit
and look sometimes i can open post edit without vpn when cdn.jsdelvr.net failing at loading
http://s6.picofile.com/file/8385104134/Untitled_1.jpg
Based on the output it seems like the service is working fine and its not banned.
The screenshot is very small but it looks like the problem is not even jsDelivr? Could you press on that failed request and screenshot the whole thing with the details it offers as well?
In the meanwhile, I’ve gone ahead and written a small documentation page on how you can dynamically change the CDN source address – https://semperplugins.com/documentation/using-a-different-cdn-for-script-enqueuing/
If you add that code snippet to your theme’s function.php file, then it should solve the issue (unless Cloudflare is also blocked).
Thread Starter
hamoon
(@graphirancom)
wp-login will be broken when i add this code to function…
In what way does that code break wp-login? Works fine on my end.
Thread Starter
hamoon
(@graphirancom)
my mistake.
code is working fine but all images will disappear from website !
look :
http://s6.picofile.com/file/8385770592/eeee.jpg
red lines is images that disappeared
when remove the code images will appear again
but code solves cdn.jsdelvr problem perfectly