-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloudflare blocks me when trying to include jQuery #518
Comments
I was blocked when trying to import a script from GitCDN. Sounds like CloudFlare's blocking anything with a |
+1 |
I am having this same issue. Makes JSPerf unusable for my purposes. |
+1 |
1 similar comment
+1 |
Same here -- tried to edit an existing test, could not save. Had to remove the script tag, then was able to save. This is a BIG problem. |
I've been away on holiday vacation but figured it was important to weigh-in on why this likely won't get fixed and explain why. Disclaimer: This is my own personal opinion, and so I will let @mathiasbynens and @maxbeatty weigh in on their own opinion.
I hope that makes sense. We should be using the core performance data found here to see how browsers are performing with very specific operations and operations that can be COMPARED. Once you have that information, you can use it to create high-performance code. Edit: To be clear, a lot of basic scripts still work with Cloudflare. Especially jQuery. However, the ability to arbitrarily add a script from any source is a much bigger issue |
One more update. It looks like existing tests like https://jsperf.com/jquery-html-vs-empty-append-test/1/ cannot be edited even with the same jQuery import. This is probably confusing for users visiting a test directly and attempting to edit. |
@asilluron That would be fundamental change to the functionality of jsperf. Currently there are buttons to add the script tag to include jQuery, Prototype, MooTools, YUI, Dojo, Ext Core, My Library There is a reason for this, a lot of performance testing has to do with proposed Vanilla JS solutions vs established libraries to see which is faster or if there is enough performance difference to make a case for using the proposed solution. |
Maybe you're misunderstanding me, I am not in favor of banning libraries, I am simply in favor of having Cloudflare not allowing any arbitrary library. Yes, it's useful to test jQuery core functionality vs vanilla js, but what if a user is using
However, we need to make sure Cloudflare is not blocking too much and it seems that might be the case. |
Thanks for the thoughtful response, @asilluron. I agree that Cloudflare is responsible for these blocked requests and this won't get fixed because we don't control a majority of the rules by Cloudflare. (I do not have access to them.) Even if we were to relax some rules, I'm guessing we'd let 10-100 bad requests through for every innocent one. Spam sucks 😿 |
What about completely disables Cloudflare WAF? Cloudflare WAF could be disabled through "Firewall - Settings - Security Level": |
The question is, do you have the ability relax the rules? If so, wouldn't add an extra captcha of some sorts for this kind of submissions help? |
I can edit my test normally, as long as I don't add a script tag. When I add it (using the jQuery button) under preparation code, I can no longer save my test case, instead I get blocked by Cloudflare.
The text was updated successfully, but these errors were encountered: