Anyway to prevent my website using cloudfare https prevent some bot traffics like whenever I go to my site and checked if the edited layout works fine or okay to me is it won’t get a traffic? I’m scared of getting the CPU Limit :<
Hello there,
The InfinityFree security system and Cloudflare already have some functionalities that prevent unauthorized bots from entering your site especially Cloudflare with their complex and robust system but of course it is not 100% guaranteed that all bots will be blocked, there are some bots that might be able to slip in, still unauthorized bots will likely to get blocked.
To learn more on how you can minimize the possibility of hitting the CPU limit you may want to refer to this Knowledge Base article:
Thank you sir but could you explain this for me? I don’t actually have a scripts for now, but I’m planning to add like 6 or 10 php codes, maybe it will cost more cpu usage.
This one, Thanks!
- Use caching in your website. Data caching in your website can reduce code execution by reusing the results of other requests.
- Splitting scripts and website to other accounts. If you have multiple domains on the same account, you could move those domains to separate accounts to spread the server load.
Basically like your browser stores cache to the websites you’ve visited and next time you want to visit that website it will load much faster.
You can search on Google for more information like this one:
https://www.imperva.com/learn/performance/cache-control/
For example on your other domain you will host your php files and on the other domain you will host your js files meaning both are executed seperately so that you will spread the server load.
Hope you understand since I’m not that good with explaining things in English.
I love this one, but I don’t really know how to host the php files from my other domain and run it into my domain hehe, maybe I should just search on google or stacks or could you help me, just simple explaination.
About this one, does Cloudfare caching could help, you know there’s an option and maybe it could help.
Thank you so much, I’m really sorry for this question, hope you will get what I mean hehe. Thanks!
On your main domain you should host your php files and on your other domain you should host your js or anystuff you want and link/include it to your php file.
Example:
<script type="text/javascript" src="yourjsfile.js"></script>
Yep it can, Cloudflare’s caching system is very nice and I also suggest you to turn on/enable Cloudflare’s “Always Online” feature, if your site goes down Cloudflare will show a snapshot of what your site looks like before it went down instead of showing an error that your site is down.
On your main domain you should host your php files and on your other domain you should host your js or anystuff you want and link/include it to your php file.
I’ll try this one after my layout editing, I’m still at editing my site, headers and sidebar etc…
Thank you, and can I also ask you or help me about this question in the future like if I’m starting to make this one?
For now I got 1 domain myname.ml then 2 sub-domain. js.mysite.ml, php.mysite.ml. Maybe it could help?.
Yep it can, Cloudflare’s caching system is very nice and I also suggest you to turn on/enable Cloudflare’s “Always Online” feature, if your site goes down Cloudflare will show a snapshot of what your site looks like before it went down instead of showing an error that your site is down.
And Thanks for this, I always doing this whenever I view my site after editing. Purge Everything.
Thank you so much, I’ll just ask you next time maybe if I need help regarding to this kind of problem. Thank you!
If you want to block all bot traffic, I would highly recommend against enabling Cloudflare. Our own bot protection system is much more aggressive than the one by Cloudflare, even on the “High” security level. Only the “I’m under attack” security level from Cloudflare works as well as what we do by default.
Cloudflare’s own system is designed to allow for good bots and API traffic too, which harms the effectiveness of their system. Our system doesn’t allow that, and so works much better.
If you intend on loading resources from a extennal domain you need to remember about CORS.
is CORS is basic? you Know, Thanks!
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.