#CloudFlare Worker
Explore tagged Tumblr posts
Text
เพิ่มความเร็วเว็บไชต์ด้วย CloudFlare Worker
หลายๆคนที่ใช้ CloudFlare อยู่ก็คนจะได้ใช้หลายๆฟังชั่นของ CloudFlare แล้ว แต่ก็ยังมีอีกหลายๆคนที่อาจจะยังไม่เคยใช้ CloudFlare Worker ชึ่งสามารถเอามาประยุคใช้งานได้หลายอย่าง ไม่ว่าจะเป็นการ สั่งให้ทำอะไรบางอย่างก็ส่งข้อมูลจริงออกไป หรือแม้แต่เอามาทำ Cache ด้วย Worker (Server Cache) ด้วย Code ต่อไปนี้ วิธีนี้เหมาะกับ Server ต่างประเทศที่โหลดช้ามากๆ เว็บไชต์ประเภท Static Page เว็บไชต์หรือ API…
View On WordPress
0 notes
Text
0 notes
Text
if anyone sees this and has worked with Cloudflare Workers pretty please explain to me how the fuck I need to configure Vite to get my React Router v7 project to build T-T I'm losing my mind, yes I'm aware that Node APIs don't exist on Workers but for the love of God how do I get RR7 to stop trying to use them 🥲🔫
#coding brain#the curse#programming#god i fucking hate when the docs are behind#like fucking come on the Workers API hasn't changed in a hot minute how are you behind T-T#rosie rants#rosie rambles
14 notes
·
View notes
Text
you can train and run LLMs and image generation models on a laptop. data center electricity usage is due to it being a data center, not having “AI” deployed—it would be like looking at the electricity usage of cloudflare and all of its clients and deciding “this is all AI usage”
copyright is fake and even if you are worried about that, you can use license models from giant media companies like Adobe or Getty that own 100% of their training data.
the only genuine complaint about “AI” is that it can displace workers in media industries, but any new technology has the potential to do that and lobbying for banning technology has never really worked. only thing you can really do and should do is adapt and unionize
like yeah it is annoying that every company is pushing “AI” and that it is inescapable, but how is that the fault of the technology? a software that can predict things based on given data is valuable to science and to art. the company that tries to sell you $10/month subscription to use software you can download onto your own computer for free is the stupid part.
7 notes
·
View notes
Text
A free image hosting solution for AO3 and elsewhere - A Tutorial (mobile-friendly!)
See the demo site made from this template IN ACTION: https://hotlink-archive-template.pages.dev/
This guide is for an easy, mobile-friendly way to host files for hotlinking on AO3 or elsewhere, using github and cloudflare pages.
I've encountered far too many dead links in fanfics and forums simply because a hosting service decided to dump older files, or they decided to change their TOS to no longer allow hotlinking or certain kinds of content (nsfw, fictional graphic content). See Optional Steps for even more options.
This is an easy, barebones way to permanently host images that you don't want deleted unexpectedly or that you can't host elsewhere. (Emphasis on barebones. This will not be a nice portfolio style site. Unless you decide to code that yourself!) You can follow the link above for an example of this type of site.
It is also EASY to upload and use on mobile devices after initial setup!
Tools you will need:
Cloudflare Pages/Workers is a free to use static site hosting service. This will publish your files and make them available online. This will publish your files and make them available online. There is a limit to the amount of data you can upload for free, but you can pay for proper hosting if you want to exceed it.
Github is a code sharing/storage platform. Your files will go here first before being published on Pages. You can edit and upload files through your browser at github.com, or through Github Desktop, a program you install on your computer. There are limits to Github repositories, but they are also generous (suggested 1GB to 5GB per repo).
Basic Setup
1. Create a github account
2. Copy this template repository hotlink-archive-template
Your website will be contained in a repository, a place where all the files and the revision history for your project are stored.
This template repository uses an "Action" (using python) to automatically create a "home" page with an Index of all the files in your repository every time it is updated.
NOTE: I recommend you set your repository to Private. Github's history feature is extensive, so if you have sensitive content or think you might want to delete something later, it will be hard to get rid of it completely once it's been committed and publicly available.
3. Enable Action permissions
In order for the Action script to work, you need to give Actions permission to read and write in your repository.
Within your repository, go to the tab Settings > Actions > General > Workflow Permissions
4. Create a Cloudflare account
5. Create a Pages (or Workers) project and link it to your Github repository
Your Pages project will create the front end of the site where the images will be displayed. You will be able to link those images to other platforms like AO3.
You can create either a Workers or Pages project by going to Add > Pages (or Workers). Name your project WISELY! This name will be your site's URL.
Workers vs. Pages
Workers is subsuming Pages on Cloudflare and now has all the same static hosting capabilities, in addition to its original server-side processing services. If you'd like to, read more about this.
While Workers has similar capabilities, I recommend Pages for this project. Pages has the added bonus of a cleaner URL if you do not have your own domain: “MySite.pages.dev” in Pages vs Workers' “MySite.username.workers.dev”
You will be prompted to import an existing Git repository. You will need to give it access to your Github to do this.
Select the repository on your Github you made for your project, then hit "Begin Setup".
Name your project WISELY! This name will be your site's URL.
You do not need to change any settings on the next page, so hit "Save and Deploy". Your image hosting site will now be live!
The URL will be "https://ProjectName.pages.dev". It may take a few minutes to become accessible.
Now you're done with the basic setup!
How to Add files
You can add any files you want to link to on AO3/elsewhere through mobile, desktop browser, or the Github desktop program!
Here is how to do it on Github.com:
Open up the repository that you made (it can be found at github.com/username/repositoryname). You will see a list of folders and files that are in that repository.
Click into the folder "fan-stuff".
In the top right, go Add file > Upload files and drag in the images you want added. You will need to name the images BEFORE you upload them, as there is not an easy renaming feature within Github's browser interface.
In the Commit changes box, choose a title for what action you are doing. This will help you backtrack uploads if needed.
For example, it could be "Uploaded Batman Art". Make sure it's set to "commit directly to the main branch", then commit those changes. This will upload the files.
Now, if you visit your site, you will see your uploaded image under the "fan-stuff" folder!
To embed/link your image, navigate to your file on your Pages site and copy the URL in the address bar. This URL is what you will use to embed your photo (using HTML or "add image as URL" tools some sites have).
Continue onto More Setup to customize your site and implement more advanced settings. See Tips/Troubleshooting if you're running into problems.
More Setup
Perform site customization/advanced setup with Github Desktop on your PC
Github’s web UI is great, but it has major limitations. I highly recommend that you use Github Desktop during the initial setup, as well as when you want to make major organizational changes to your files/site. Once you have everything set, though, you can use Github in your browser to upload whatever files you want to hotlink at the moment.
Download Github Desktop and “clone” (download a copy of) the repository you made.
This is the best time to rename/rearrange folders + files, etc.
There are other methods in the Troubleshooting section if you need, but Github Desktop is by far the easiest way
see Adding/Renaming Folders for important info on how to properly rename/add folders
see About the Index Page for how to customize your Index pages
Once you’re done editing, “push” (upload) all the changes you made to your online Github repository.
Having some sort of text editor like Notepad++ is useful for editing any code, the automatic color-coding is very helpful. You can edit in plain old Notepad as well, it just won’t look as nice.
About the Index Page
The template repository uses a python Action to automatically create an HTML "home" page with an Index of ALL the files in the folder every time it is updated.
This is particularly convenient for mobile use, as you can upload a file, and the python action automatically updates the Index page.
If you don’t want this, just disable the “create-index” Action and delete the .py files. You can just type in the file locations to get to each file, or you can manually maintain an home/Index page yourself, which isn't hard if you know some basic HTML and can remember to do it consistently.
Also note that if you wish to change any of the content on your Index pages, you must edit the "index.py" file, not the "index.html" file. The "index.html" file gets re-written every time the "create-index" Action is run in order to keep the file index up to date.
Adding/Renaming/Deleting Folders
Disclaimer: This is a bit convoluted because I am extremely unqualified to be working with python OR HTML. There’s probably an easy way to do this, but I don’t have the skill to do it, and most of the stuff here is copied from stuff I found around. If you know a better way to do things, please let me know, it’d make my life easier too!
Adding or renaming folders involves some extra steps.
1. The "index.py" file inside the folder needs to be edited to match the parent folder name.
The place you need to do this is found near the top of the file (highlighted below)
2. Then the outer-most "create-index.py" file needs to be updated to match the new name as well. If you’ve added a new folder, duplicate and adjust the code to match.
The place you need to do this is found at the bottom (highlighted below)
If you don’t need any folders at all, great! Just delete them and their contents! No need to edit any files. (Don’t delete “index.html” or “create-index.py” or “.github/workflows”!)
If you would like to have these folders for later use, leave them as-is and simply edit the index files.
The relevant lines of code at the bottom of "create-index.py" like in the previous step for renaming folders. You may delete this code, or comment it out (using # at the beginning of a line will make it “invisible” to the computer)
Then, add the folder’s name to the “exclusions” list at the top of the "create-index.py" file so that it doesn’t show up on your Index page (highlighted below)
You can also use this same concept to create "invisible" files/folders. Any files/folders included in the "exclusions" list in "(create-)index.py" will not be listed on the Index page, however they can still be found through the direct URL to the file.
On the flipside, this means simply hiding the file/folder from the Index page does not get rid of the file from your site. Anyone who has the URL will be able to find that file unless you remove it, or move its location to change the URL
Tips/Troubleshooting
(Re)name your files before uploading
It’s not possible to rename image/media files on Github’s web UI (it is possible with the local Git program). The "create-index" Action lists out the names of your files exactly, so you will end up with ugly strings of numbers and letters on your Index page if you don't rename them, which is terrible to look at and also plain old CONFUSING to navigate.
So if you're uploading on mobile or through Github on browser, name your files with easy to remember and distinctive filenames before you go ahead and upload them. This makes everything much easier, and it makes your Index page look nice :)
My website isn’t updating when I edit my Github repository!
Check to see if your Pages is retrieving from the correct branch, and if it has automatic deployments enabled.
Can’t see your Github repository when trying to link it on Cloudflare?
Check your Github applications Repository Access settings. Go to your ACCOUNT Settings > Integrations - Applications > Cloudflare > Repository Access
Index action is failing!
Go back to step 3 in Basic Setup and check if you’ve given Actions permission to read and write. If that’s not the issue, check to see if you’ve set up your "index.py" files correctly. The folder names should correspond to the parent folders, and the "create-index.py" file in the outer-most folder should have the correct folder names at the VERY BOTTOM.
How do I rename a folder (or move a file) in Github’s web UI?
It isn’t possible to directly rename a folder in Github’s web UI, doing it using Git on your computer is the most foolproof way to do it. But there is a way (except for media files).
Go into the folder you want to rename and select a file such as “index.html” and enter the “edit” mode.
Go to the file name and backspace until you can edit the parent folder name as well. This will create a new folder with the new name.
You’ll have to do this to every file in the folder until they’re all in the new folder.
Unfortunately, you can’t do this with media files like png/jpg/etc, because entering the “edit” mode on a photo “breaks” it somehow, and bye-bye image :’) (Don’t worry if this happens, just don’t commit the change or roll it back in your history).
Optional Steps
Make deployment (semi-)Manual
You can play with cloudflare and github to make deployment of your site a manual step you have to trigger, instead of automatic with each commit (default setting). This is a safeguard in case you accidentally make a change or delete something from your github, it won't affect your website.
Deploy w/ Branches
You could do a semi-automatic deployment with a "Production" branch on your github that is separate from the branch you edit. This creates an extra step before anything is published on Cloudflare. A safeguard against accidental changes/deletion of sorts :)
Go to Settings > Build tab > Branch Control
Choose your Production Branch (MAIN or CLOUDFLARE) and enable (or disable) automatic deployments
If you choose MAIN, every change you commit to MAIN will be published to Pages
If you choose CLOUDFLARE, any changes you make to MAIN will not show up on your Pages site until you Pull from MAIN to CLOUDFLARE
To Pull changes from MAIN to CLOUDFLARE, go to your github repository
Above your files on the Left, you will see a toggle to choose which branch you are on.
Choose Cloudflare. There will be a message like "This branch is 7 commits ahead of, 2 commits behind main." Click "2 commits behind"
Click "Create a Pull Request". Then click "Merge Pull Request". If everything is correct, this should trigger a build on your Cloudflare
Deploy w/ Github Actions
Or you can create a manual command that you have to enter on github to trigger a deployment on cloudflare. If you're paranoid about anything happening to your site due to a mishap on the Github side, this is a safe choice. Unless you manually trigger the command, your Pages site will be completely untouched no matter if something happens to your repo.
This can be done in many ways, I think the most straightforward is with Deploy Hooks (maybe in conjunction with Actions if you want to make it mobile-friendly), and might be a bit complicated, but not too hard to figure out with some Google-fu.
Here’s some links I think will be useful (note: I don’t use this method, so these haven’t been tested)
Manual trigger action tutorial
How to configure Github webooks
Storing Locally instead of on Github
Although this guide is written with Cloudflare's Github integration in mind, particularly for easy online/mobile access, you can also keep your files locally on your PC and directly upload your assets onto your Pages project. This gives you full control over what happens to your files. (Keeping backups is a good idea. You can still use Github Desktop to do this, just keep your repository on your PC.)
Simply clone/download the repository as it is, customize it as you like, and create a NEW Pages project on Cloudflare, using "Direct Upload" to upload your files
Once you have connected a Pages project with Github, there is no way to change the deployment method to Direct Upload or vice versa. Direct Upload is also not available for Workers.
One thing that will NOT work the same is the "create-index" Action that only works on Github.
I have made a "create-index.exe" that will execute the "create-index.py" files in the exact same way as they would work with the Action. You do not have to install python for this to work (if I did everything right). Simply run "create-index.exe" whenever you make a change and want to update the "index.html" files
Remember, this is EXACTLY THE SAME as the "create-index" Action, meaning you have to edit each "index.py" file when you rename folders, add a folder, want to exclude a file from the Index page, etc. (See Adding/Renaming Folders for how to do this)
Find me on Bluesky. Or if you have a problem, open an Issue on this project :)
I'll try to answer your questions as best I can! But really, I am the most amateur of amateurs and figured this all out using Google, so I might not be of much help ^^;
I also recommend Squidge Images (an offshoot of Squidge.org) as a fairly trustworthy alternative. However, Squidge Images does have some additional rules that Squidge does not, and what crosses the line is at their discretion.
I also posted this over on AO3!
5 notes
·
View notes
Text
UAC-0125 Abuses Cloudflare Workers to Distribute Malware Disguised as Army+ App
Source: https://thehackernews.com/2024/12/uac-0125-abuses-cloudflare-workers-to.html
3 notes
·
View notes
Video
youtube
【永久免费】搭建 V2ray!通过Cloudflare Worker部署免费的VLESS节点,cloudflare 优选ip,4K高速,解锁Ne...
2 notes
·
View notes
Text
What is Generative Artificial Intelligence-All in AI tools
Generative Artificial Intelligence (AI) is a type of deep learning model that can generate text, images, computer code, and audiovisual content based on prompts.
These models are trained on a large amount of raw data, typically of the same type as the data they are designed to generate. They learn to form responses given any input, which are statistically likely to be related to that input. For example, some generative AI models are trained on large amounts of text to respond to written prompts in seemingly creative and original ways.
In essence, generative AI can respond to requests like human artists or writers, but faster. Whether the content they generate can be considered "new" or "original" is debatable, but in many cases, they can rival, or even surpass, some human creative abilities.
Popular generative AI models include ChatGPT for text generation and DALL-E for image generation. Many organizations also develop their own models.
How Does Generative AI Work?
Generative AI is a type of machine learning that relies on mathematical analysis to find relevant concepts, images, or patterns, and then uses this analysis to generate content related to the given prompts.
Generative AI depends on deep learning models, which use a computational architecture called neural networks. Neural networks consist of multiple nodes that pass data between them, similar to how the human brain transmits data through neurons. Neural networks can perform complex and intricate tasks.
To process large blocks of text and context, modern generative AI models use a special type of neural network called a Transformer. They use a self-attention mechanism to detect how elements in a sequence are related.
Training Data
Generative AI models require a large amount of data to perform well. For example, large language models like ChatGPT are trained on millions of documents. This data is stored in vector databases, where data points are stored as vectors, allowing the model to associate and understand the context of words, images, sounds, or any other type of content.
Once a generative AI model reaches a certain level of fine-tuning, it does not need as much data to generate results. For example, a speech-generating AI model may be trained on thousands of hours of speech recordings but may only need a few seconds of sample recordings to realistically mimic someone's voice.
Advantages and Disadvantages of Generative AI
Generative AI models have many potential advantages, including helping content creators brainstorm ideas, providing better chatbots, enhancing research, improving search results, and providing entertainment.
However, generative AI also has its drawbacks, such as illusions and other inaccuracies, data leaks, unintentional plagiarism or misuse of intellectual property, malicious response manipulation, and biases.
What is a Large Language Model (LLM)?
A Large Language Model (LLM) is a type of generative AI model that handles language and can generate text, including human speech and programming languages. Popular LLMs include ChatGPT, Llama, Bard, Copilot, and Bing Chat.
What is an AI Image Generator?
An AI image generator works similarly to LLMs but focuses on generating images instead of text. DALL-E and Midjourney are examples of popular AI image generators.
Does Cloudflare Support Generative AI Development?
Cloudflare allows developers and businesses to build their own generative AI models and provides tools and platform support for this purpose. Its services, Vectorize and Cloudflare Workers AI, help developers generate and store embeddings on the global network and run generative AI tasks on a global GPU network.
Explorer all Generator AI Tools
Reference
what is chatGPT
What is Generative Artificial Intelligence - All in AI Tools
2 notes
·
View notes
Text
10 Mind-Blowing Ways Cloudflare is Transforming the Tech Industry
It is crucial to ensure your website has strong security and optimal performance in the ever-changing IT world. Here's where Cloudflare becomes a revolutionary solution. Here we will explore Cloudflare, its many uses, how it is revolutionizing the tech industry, and how you can use its features to improve your online visibility.
The Background of Cloudflare-
The goal behind starting Cloudflare was to assist website owners in improving the speed and security of their sites. When it first started, its primary function was to use its content delivery network (CDN) to speed up websites and defend them from cyber threats. To put it simply, Cloudflare is a leading provider of performance and security solutions.
What is Cloudflare?
Cloudflare is the leader in CDN solutions that make connections to your website safe, private, and quick. It is a provider of online architecture and website security services. In its most basic definition, a content delivery network (CDN) is a collection of servers located all over the world. Their primary purpose is to collaborate in order to accelerate the transmission of web content.
In modern times, websites and web applications are widespread. We can find a website or web application to accomplish a variety of tasks. The majority of these websites and web applications are designed to be private and safe, but many small firms and non-techies have restricted access to their security guidelines. These kinds of websites benefit from Cloudflare's performance and security enhancements. Enhancing the security, performance, and dependability of anything linked to the Internet is the goal of Cloudflare, an Internet organization company. The majority of Cloudflare's essential capabilities are available for free, and it has an easy-to-use installation process. Cloudflare offers both UI and API for administering your website.
How Cloudflare is revolutionizing the tech sector-
IT and security teams will have to deal with emerging technology, risks, laws, and growing expenses in 2024. Organizations cannot afford to ignore AI in particular. Those who can't immediately and drastically change will find themselves falling behind their rivals. However, given that 39% of IT and security decision-makers feel that their companies need more control over their digital environments, it is more difficult to innovate swiftly.
How can you regain control and guarantee that your company has the efficiency and agility required to develop while maintaining security? A connection cloud is an all-in-one platform that links all of your domains and gathers resources to help you take back control, cut expenses, and lessen the risks associated with protecting a larger network environment.
Cloudflare is the top and best cloud hosting provider for connection. It enables businesses to lower complexity and costs while enabling workers, apps, and networks to operate quicker and more securely everywhere. With the most feature-rich, unified platform of cloud-native products and developer tools available, Cloudflare's connection cloud gives every organization the power to operate, grow, and expedite its business.
How does Cloudflare work?
Cloudflare improves website speed and security. It offers a content delivery network (CDN), DDoS defence, and firewall services. It safeguards websites against online dangers such as viruses and DDoS assaults. In short, Cloudflare protects websites from internet threats and improves their performance. Additionally, because of its global network, Cloudflare can efficiently handle online traffic and maintain site security.
How to Use Cloudflare?
Website owners must create an account and add their websites to the Cloudflare dashboard in order to use Cloudflare. In addition to automatically configuring its CDN and security capabilities, Cloudflare will check the website for DNS (Data Name Server) records. Website owners can use the dashboard to monitor and modify Cloudflare's settings after they have been set up.
What Makes Cloudflare Useful?
Cloudflare ensures that your website is always accessible, minimises malicious traffic, and speeds it up. Sites maintained using this are more dependable, quick, and safe. Using technologies like SSL (Secure Sockets Layer) and firewalls also simplifies handling DNS (Data Name Server) and security related to websites. It is accessible to all users, regardless of the size of the business. Your website will remain safe, load swiftly, and function flawlessly, thereby ensuring that users are satisfied with uncommon moments of inactivity.
It is a valuable tool for individuals and businesses, is a smart investment for website owners. It enhances the speed, dependability, and security of websites, all at a reasonable cost. This cost-effectiveness ensures that website owners, regardless of their technical proficiency, can feel financially secure and smart.
Benefits of Cloudflare:
The primary benefit is that it offers performance and security at no cost on a bigger scale.
Most of its essential functions are available on a free account.
It functions as a CDN to speed up the speed at which websites load.
It prevents DDoS attacks and harmful bots.
It offered short TTL-managed DNS (Data Name Server).
It offers a free SSL (Secure Sockets Layer) certificate that is updated yearly and is fully maintained.
It offers serverless features and forwarding rules.
Different independent add-ons for different services are available on it.
It offers services for registering domains.
Offers an API to control the majority of the services.
HTTP/2 Protocol: Utilize Parallel Loading to Accelerate Your Website
The outdated HTTP/1.1 standard is replaced by the faster and more modern HTTP/2 protocol. Because it can load page elements concurrently, your website will load more quickly. Because Cloudflare supports HTTP/2, you may benefit from this cutting-edge technology without having to perform any extra effort.
2. Free SSL (Secure Sockets Layer) Certifications
To ensure safe data transfer between your website and users, Cloudflare provides a free SSL certificate. Because search engines give priority to particular websites, this safeguards important information and improves your website ranks.
3. DNS Security: Boost Domain Protection with DNSSEC DNS Security Extensions
DNSSEC confer an additional degree of protection to your domain by authenticating DNS answers. The DNSSEC functionality from Cloudflare is simple to set up and guards against cache poisoning and DNS (Data Name Server) spoofing attacks on your website.
4. Limiting Rates to Prevent DDoS Attacks
A security measure known as rate limitation restricts the quantity of queries visitors can make to your website in a certain amount of time. Because of Cloudflare's rate-limiting feature, your website is shielded from unwanted traffic and DDoS attacks, making the internet a safer place.
5. Image Optimization: Utilizing Compressed Images for Quicker Loading
With Cloudflare's image optimization tool, your website will load faster by resizing and compressing photos. It reduces bandwidth utilization and enhances user experience, which lowers hosting expenses.
6. Page Rules: Edit Specific Pages' Settings
You can adjust caching, security, and other configurations for specific pages on your website using Cloudflare's page rules feature. You may customize the performance and security of your website with this level of control.
7. Browser Caching: Quicken Page Loading
Through browser caching, you can speed up subsequent visits to your website by saving its content on the user's device. The browser caching function from Cloudflare dynamically adjusts cache settings to guarantee peak performance.
8. Network Routing Optimization
Data is transferred effectively across Cloudflare's global network thanks to its improved network routing technology. This leads to enhanced website performance and quicker load times.
9. Minimization: Simplify Your Files to Allow for Quicker Loading
To minimize file size and speed up load times, minimization eliminates superfluous characters from files, like whitespace and comments. By supporting HTML, CSS, and JavaScript files, Cloudflare's minimization functionality makes sure your website functions properly.
10. WebSockets: Allow for Real-Time Interaction
With the help of web sockets, your website's server and browsers may communicate in real time, providing functions like live chat and notifications. WebSockets can be easily implemented on your website using Cloudflare's support for them.
11. AMP Genuine URL: Present Source URLs in Google AMP Search Results
Although they may show a different URL in search results, Google's Accelerated Mobile Pages (AMP) can enhance your site's performance on mobile devices. Maintaining your brand identification and search engine rankings is made easier with Cloudflare's AMP Real URL functionality, which makes sure that your original URL is displayed.
12. Cloud WAF: Protect Your Website from Common Attacks
Web Application Firewalls (WAFs) defend your website against DDoS attacks, cross-site scripting, and SQL injection, among other major online dangers. Strong defence against these attacks is offered by Cloudflare's Cloud WAF, guaranteeing the security of your website.
13. Load Balancing: Allocating Traffic to Ensure Maximum Efficiency
To ensure steady performance, load balancing divides traffic among several servers. Your website will always be quick and responsive, even during spikes in traffic, thanks to Cloudflare's load-balancing technology, which helps avoid server overload.
Conclusion-
You can protect yourself from online threats and gain technologies like Content Delivery Network (CDN) and (Secure Sockets Layer) SSL/TLS encryption with Cloudflare. It keeps your website safe and quick, and it's simple to use. But if you want to get the most out of your website, don't wait to start using Cloudflare right now. You can be sure that your website is secure and operating efficiently using Cloudflare.
With a free plan for essential functions, Cloudflare provides reasonable price options. For small businesses who require website security and Search Engine Optimization (SEO) but want to save money, this makes it the perfect option. Plus, compared to other CDN providers on the market, its premium plans are fairly priced.
Janet Watson
MyResellerHome MyResellerhome.com We offer experienced web hosting services that are customized to your specific requirements. Facebook Twitter YouTube Instagram
2 notes
·
View notes
Text
Tip: Cloudflare Workers don't save logs, so you can only access them in real time... unless you make a Discord webhook out of a muted channel in your personal server and send them over there!
Edit: Oh, and I had to switch to "types": ["@cloudflare/workers-types/experimental"] in tsconfig.json to get this to typecheck. A regular fetch seemed to work fine too, but navigator.sendBeacon seemed more semantic.
2 notes
·
View notes
Text
This Week in Rust 510
Hello and welcome to another issue of This Week in Rust! Rust is a programming language empowering everyone to build reliable and efficient software. This is a weekly summary of its progress and community. Want something mentioned? Tag us at @ThisWeekInRust on Twitter or @ThisWeekinRust on mastodon.social, or send us a pull request. Want to get involved? We love contributions.
This Week in Rust is openly developed on GitHub and archives can be viewed at this-week-in-rust.org. If you find any errors in this week's issue, please submit a PR.
Updates from Rust Community
Official
Announcing Rust 1.72.0
Change in Guidance on Committing Lockfiles
Cargo changes how arrays in config are merged
Seeking help for initial Leadership Council initiatives
Leadership Council Membership Changes
Newsletters
This Week in Ars Militaris VIII
Project/Tooling Updates
rust-analyzer changelog #196
The First Stable Release of a Memory Safe sudo Implementation
We're open-sourcing the library that powers 1Password's ability to log in with a passkey
ratatui 0.23.0 is released! (official successor of tui-rs)
Zellij 0.38.0: session-manager, plugin infra, and no more offensive session names
Observations/Thoughts
The fastest WebSocket implementation
Rust Malware Staged on Crates.io
ESP32 Standard Library Embedded Rust: SPI with the MAX7219 LED Dot Matrix
A JVM in Rust part 5 - Executing instructions
Compiling Rust for .NET, using only tea and stubbornness!
Ad-hoc polymorphism erodes type-safety
How to speed up the Rust compiler in August 2023
This isn't the way to speed up Rust compile times
Rust Cryptography Should be Written in Rust
Dependency injection in Axum handlers. A quick tour
Best Rust Web Frameworks to Use in 2023
From tui-rs to Ratatui: 6 Months of Cooking Up Rust TUIs
[video] Rust 1.72.0
[video] Rust 1.72 Release Train
Rust Walkthroughs
[series] Distributed Tracing in Rust, Episode 3: tracing basics
Use Rust in shell scripts
A Simple CRUD API in Rust with Cloudflare Workers, Cloudflare KV, and the Rust Router
[video] base64 crate: code walkthrough
Miscellaneous
Interview with Rust and operating system Developer Andy Python
Leveraging Rust in our high-performance Java database
Rust error message to fix a typo
[video] The Builder Pattern and Typestate Programming - Stefan Baumgartner - Rust Linz January 2023
[video] CI with Rust and Gitlab Selfhosting - Stefan Schindler - Rust Linz July 2023
Crate of the Week
This week's crate is dprint, a fast code formatter that formats Markdown, TypeScript, JavaScript, JSON, TOML and many other types natively via Wasm plugins.
Thanks to Martin Geisler for the suggestion!
Please submit your suggestions and votes for next week!
Call for Participation
Always wanted to contribute to open-source projects but did not know where to start? Every week we highlight some tasks from the Rust community for you to pick and get started!
Some of these tasks may also have mentors available, visit the task page for more information.
Hyperswitch - add domain type for client secret
Hyperswitch - deserialization error exposes sensitive values in the logs
Hyperswitch - move redis key creation to a common module
mdbook-i18n-helpers - Write tool which can convert translated files back to PO
mdbook-i18n-helpers - Package a language selector
mdbook-i18n-helpers - Add links between translations
Comprehensive Rust - Link to correct line when editing a translation
Comprehensive Rust - Track the number of times the redirect pages are visited
RustQuant - Jacobian and Hessian matrices support.
RustQuant - improve Graphviz plotting of autodiff computational graphs.
RustQuant - bond pricing implementation.
RustQuant - implement cap/floor pricers.
RustQuant - Implement Asian option pricers.
RustQuant - Implement American option pricers.
release-plz - add ability to mark Gitea/GitHub release as draft
zerocopy - CI step "Set toolchain version" is flaky due to network timeouts
zerocopy - Implement traits for tuple types (and maybe other container types?)
zerocopy - Prevent panics statically
zerocopy - Add positive and negative trait impl tests for SIMD types
zerocopy - Inline many trait methods (in zerocopy and in derive-generated code)
datatest-stable - Fix quadratic performance with nextest
Ockam - Use a user-friendly name for the shared services to show it in the tray menu
Ockam - Rename the Port to Address and support such format
Ockam - Ockam CLI should gracefully handle invalid state when initializing
css-inline - Update cssparser & selectors
css-inline - Non-blocking stylesheet resolving
css-inline - Optionally remove all class attributes
If you are a Rust project owner and are looking for contributors, please submit tasks here.
Updates from the Rust Project
366 pull requests were merged in the last week
reassign sparc-unknown-none-elf to tier 3
wasi: round up the size for aligned_alloc
allow MaybeUninit in input and output of inline assembly
allow explicit #[repr(Rust)]
fix CFI: f32 and f64 are encoded incorrectly for cross-language CFI
add suggestion for some #[deprecated] items
add an (perma-)unstable option to disable vtable vptr
add comment to the push_trailing function
add note when matching on tuples/ADTs containing non-exhaustive types
add support for ptr::writes for the invalid_reference_casting lint
allow overwriting ExpnId for concurrent decoding
avoid duplicate large_assignments lints
contents of reachable statics is reachable
do not emit invalid suggestion in E0191 when spans overlap
do not forget to pass DWARF fragment information to LLVM
ensure that THIR unsafety check is done before stealing it
emit a proper diagnostic message for unstable lints passed from CLI
fix races conditions with SyntaxContext decoding
fix waiting on a query that panicked
improve note for the invalid_reference_casting lint
include compiler flags when you break rust;
load include_bytes! directly into an Lrc
make Sharded an enum and specialize it for the single thread case
make rustc_on_unimplemented std-agnostic for alloc::rc
more precisely detect cycle errors from type_of on opaque
point at type parameter that introduced unmet bound instead of full HIR node
record allocation spans inside force_allocation
suggest mutable borrow on read only for-loop that should be mutable
tweak output of to_pretty_impl_header involving only anon lifetimes
use the same DISubprogram for each instance of the same inlined function within a caller
walk through full path in point_at_path_if_possible
warn on elided lifetimes in associated constants (ELIDED_LIFETIMES_IN_ASSOCIATED_CONSTANT)
make RPITITs capture all in-scope lifetimes
add stable for Constant in smir
add generics_of to smir
add smir predicates_of
treat StatementKind::Coverage as completely opaque for SMIR purposes
do not convert copies of packed projections to moves
don't do intra-pass validation on MIR shims
MIR validation: reject in-place argument/return for packed fields
disable MIR SROA optimization by default
miri: automatically start and stop josh in rustc-pull/push
miri: fix some bad regex capture group references in test normalization
stop emitting non-power-of-two vectors in (non-portable-SIMD) codegen
resolve: stop creating NameBindings on every use, create them once per definition instead
fix a pthread_t handle leak
when terminating during unwinding, show the reason why
avoid triple-backtrace due to panic-during-cleanup
add additional float constants
add ability to spawn Windows process with Proc Thread Attributes | Take 2
fix implementation of Duration::checked_div
hashbrown: allow serializing HashMaps that use a custom allocator
hashbrown: change & to &mut where applicable
hashbrown: simplify Clone by removing redundant guards
regex-automata: fix incorrect use of Aho-Corasick's "standard" semantics
cargo: Very preliminary MSRV resolver support
cargo: Use a more compact relative-time format
cargo: Improve TOML parse errors
cargo: add support for target.'cfg(..)'.linker
cargo: config: merge lists in precedence order
cargo: create dedicated unstable flag for asymmetric-token
cargo: set MSRV for internal packages
cargo: improve deserialization errors of untagged enums
cargo: improve resolver version mismatch warning
cargo: stabilize --keep-going
cargo: support dependencies from registries for artifact dependencies, take 2
cargo: use AND search when having multiple terms
rustdoc: add unstable --no-html-source flag
rustdoc: rename typedef to type alias
rustdoc: use unicode-aware checks for redundant explicit link fastpath
clippy: new lint: implied_bounds_in_impls
clippy: new lint: reserve_after_initialization
clippy: arithmetic_side_effects: detect division by zero for Wrapping and Saturating
clippy: if_then_some_else_none: look into local initializers for early returns
clippy: iter_overeager_cloned: detect .cloned().all() and .cloned().any()
clippy: unnecessary_unwrap: lint on .as_ref().unwrap()
clippy: allow trait alias DefIds in implements_trait_with_env_from_iter
clippy: fix "derivable_impls: attributes are ignored"
clippy: fix tuple_array_conversions lint on nightly
clippy: skip float_cmp check if lhs is a custom type
rust-analyzer: diagnostics for 'while let' loop with label in condition
rust-analyzer: respect #[allow(unused_braces)]
Rust Compiler Performance Triage
A fairly quiet week, with improvements exceeding a small scattering of regressions. Memory usage and artifact size held fairly steady across the week, with no regressions or improvements.
Triage done by @simulacrum. Revision range: d4a881e..cedbe5c
2 Regressions, 3 Improvements, 2 Mixed; 0 of them in rollups 108 artifact comparisons made in total
Full report here
Approved RFCs
Changes to Rust follow the Rust RFC (request for comments) process. These are the RFCs that were approved for implementation this week:
Create a Testing sub-team
Final Comment Period
Every week, the team announces the 'final comment period' for RFCs and key PRs which are reaching a decision. Express your opinions now.
RFCs
No RFCs entered Final Comment Period this week.
Tracking Issues & PRs
[disposition: merge] Stabilize PATH option for --print KIND=PATH
[disposition: merge] Add alignment to the NPO guarantee
New and Updated RFCs
[new] Special-cased performance improvement for Iterator::sum on Range<u*> and RangeInclusive<u*>
[new] Cargo Check T-lang Policy
Call for Testing
An important step for RFC implementation is for people to experiment with the implementation and give feedback, especially before stabilization. The following RFCs would benefit from user testing before moving forward:
No RFCs issued a call for testing this week.
If you are a feature implementer and would like your RFC to appear on the above list, add the new call-for-testing label to your RFC along with a comment providing testing instructions and/or guidance on which aspect(s) of the feature need testing.
Upcoming Events
Rusty Events between 2023-08-30 - 2023-09-27 🦀
Virtual
2023-09-05 | Virtual (Buffalo, NY, US) | Buffalo Rust Meetup
Buffalo Rust User Group, First Tuesdays
2023-09-05 | Virtual (Munich, DE) | Rust Munich
Rust Munich 2023 / 4 - hybrid
2023-09-06 | Virtual (Indianapolis, IN, US) | Indy Rust
Indy.rs - with Social Distancing
2023-09-12 - 2023-09-15 | Virtual (Albuquerque, NM, US) | RustConf
RustConf 2023
2023-09-12 | Virtual (Dallas, TX, US) | Dallas Rust
Second Tuesday
2023-09-13 | Virtual (Boulder, CO, US) | Boulder Elixir and Rust
Monthly Meetup
2023-09-13 | Virtual (Cardiff, UK)| Rust and C++ Cardiff
The unreasonable power of combinator APIs
2023-09-14 | Virtual (Nuremberg, DE) | Rust Nuremberg
Rust Nürnberg online
2023-09-20 | Virtual (Vancouver, BC, CA) | Vancouver Rust
Rust Study/Hack/Hang-out
2023-09-21 | Virtual (Charlottesville, NC, US) | Charlottesville Rust Meetup
Crafting Interpreters in Rust Collaboratively
2023-09-21 | Lehi, UT, US | Utah Rust
Real Time Multiplayer Game Server in Rust
2023-09-21 | Virtual (Linz, AT) | Rust Linz
Rust Meetup Linz - 33rd Edition
2023-09-25 | Virtual (Dublin, IE) | Rust Dublin
How we built the SurrealDB Python client in Rust.
Asia
2023-09-06 | Tel Aviv, IL | Rust TLV
RustTLV @ Final - September Edition
Europe
2023-08-30 | Copenhagen, DK | Copenhagen Rust Community
Rust metup #39 sponsored by Fermyon
2023-08-31 | Augsburg, DE | Rust Meetup Augsburg
Augsburg Rust Meetup #2
2023-09-05 | Munich, DE + Virtual | Rust Munich
Rust Munich 2023 / 4 - hybrid
2023-09-14 | Reading, UK | Reading Rust Workshop
Reading Rust Meetup at Browns
2023-09-19 | Augsburg, DE | Rust - Modern Systems Programming in Leipzig
Logging and tracing in Rust
2023-09-20 | Aarhus, DK | Rust Aarhus
Rust Aarhus - Rust and Talk at Concordium
2023-09-21 | Bern, CH | Rust Bern
Third Rust Bern Meetup
North America
2023-09-05 | Chicago, IL, US | Deep Dish Rust
Rust Happy Hour
2023-09-06 | Bellevue, WA, US | The Linux Foundation
Rust Global
2023-09-12 - 2023-09-15 | Albuquerque, NM, US + Virtual | RustConf
RustConf 2023
2023-09-12 | New York, NY, US | Rust NYC
A Panel Discussion on Thriving in a Rust-Driven Workplace
2023-09-12 | Minneapolis, MN, US | Minneapolis Rust Meetup
Minneapolis Rust Meetup Happy Hour
2023-09-14 | Seattle, WA, US | Seattle Rust User Group Meetup
Seattle Rust User Group - August Meetup
2023-09-19 | San Francisco, CA, US | San Francisco Rust Study Group
Rust Hacking in Person
2023-09-21 | Nashville, TN, US | Music City Rust Developers
Rust on the web! Get started with Leptos
2023-09-26 | Pasadena, CA, US | Pasadena Thursday Go/Rust
Monthly Rust group
2023-09-27 | Austin, TX, US | Rust ATX
Rust Lunch - Fareground
Oceania
2023-09-13 | Perth, WA, AU | Rust Perth
Rust Meetup 2: Lunch & Learn
2023-09-19 | Christchurch, NZ | Christchurch Rust Meetup Group
Christchurch Rust meetup meeting
2023-09-26 | Canberra, ACT, AU | Rust Canberra
September Meetup
If you are running a Rust event please add it to the calendar to get it mentioned here. Please remember to add a link to the event too. Email the Rust Community Team for access.
Jobs
Please see the latest Who's Hiring thread on r/rust
Quote of the Week
In [other languages], I could end up chasing silly bugs and waste time debugging and tracing to find that I made a typo or ran into a language quirk that gave me an unexpected nil pointer. That situation is almost non-existent in Rust, it's just me and the problem. Rust is honest and upfront about its quirks and will yell at you about it before you have a hard to find bug in production.
– dannersy on Hacker News
Thanks to Kyle Strand for the suggestion!
Please submit quotes and vote for next week!
This Week in Rust is edited by: nellshamrell, llogiq, cdmistman, ericseppanen, extrawurst, andrewpollack, U007D, kolharsam, joelmarcey, mariannegoldin, bennyvasquez.
Email list hosting is sponsored by The Rust Foundation
Discuss on r/rust
0 notes
Text
Hướng dẫn tạo và sử dụng Cloudflare Worker
Hướng dẫn tạo và sử dụng Cloudflare Worker #CloudflareWorker #Serverless #JavaScript #CloudComputing #WebDevelopment Cloudflare Workers là một nền tảng serverless cho phép bạn chạy mã JavaScript gần với người dùng hơn bao giờ hết. Điều này dẫn đến thời gian tải trang nhanh hơn, khả năng mở rộng tốt hơn và chi phí thấp hơn so với các giải pháp truyền thống. Hướng dẫn này sẽ giúp bạn bắt đầu với…
0 notes
Text
Cloudflare Worker & KV
Cloudflare Worker and KV binding have been integrated to enable faster edge-level automation, efficient key-value storage, and seamless performance across decentralized systems.
1 note
·
View note
Text
Edge Computing for Web Developers: How to Speed Up Your Apps
In today’s digital race, milliseconds matter.
Whether you’re building a real-time dashboard, an e-commerce platform, or a SaaS product, users expect one thing — speed. But traditional cloud setups, while powerful, aren’t always fast enough when data has to travel halfway across the globe.
Enter: Edge Computing — a game-changing strategy that moves computing closer to users and supercharges web performance.
What Is Edge Computing (And Why Should You Care)?
Imagine you’re ordering pizza. Would you rather get it from a kitchen next door or one 500 miles away?
That’s the difference between centralized cloud and edge computing.
Edge computing is about processing data as close to the user as possible — often on local servers or network nodes instead of a distant data center. For web developers, this means fewer delays, faster responses, and smoother user experiences.
And in an age where a one-second delay can drop conversions by 7%, that’s a big deal.
How Does It Actually Work?
Here’s the simple version:
You deploy some parts of your app (like APIs, static files, and authentication logic) to a central server and across multiple edge locations worldwide.
When a user in New York accesses your app, it loads from a nearby edge server, not from a main server in Singapore.
Result? Lower latency, less server load, and faster load times.
What Can Web Developers Use Edge Computing For?
Edge computing isn’t just for heavy tech infrastructure — it’s now developer-friendly and API-driven. Here’s how you can use it:
1. Deliver Static Assets Faster
CDNs (Content Delivery Networks) like Cloudflare, Vercel, or Netlify already do this — they serve your HTML, CSS, JS, and images from edge locations.
Bonus Tip: Combine with image optimization at the edge to slash load times.
2. Run Serverless Functions at the Edge
Think dynamic actions like form submissions, authentication, or geolocation-based content. Platforms like Cloudflare Workers, Vercel Edge Functions, and AWS Lambda@Edge let you run logic closer to your users.
Example: Show region-specific content without needing the user to wait for a central server to decide.
3. Improve API Response Times
You can cache API responses or compute lightweight operations at the edge to reduce back-and-forth trips to the origin server.
Imagine: A travel app loading nearby attractions instantly by computing distance at the edge, not centrally.
4. Secure Your App Better
Edge networks can block threats before they ever reach your main server, including bots, DDoS attacks, and suspicious traffic.
It’s like having a security guard posted on every street corner, not just your front door.
But… Does Every App Need Edge Computing?
Not necessarily. If your app is local, low-traffic, or non-latency-sensitive, traditional cloud might be enough.
But if you’re scaling globally, working with real-time data, or want lightning-fast load speeds, edge computing is your secret weapon.
Real-World Impact: Numbers Don’t Lie
Vercel reported a 50% performance boost for apps deployed with edge functions.
Retailers using edge caching see a 20–30% decrease in bounce rates.
Streaming platforms improved video start times by up to 60% with edge delivery.
These aren’t just nice-to-haves — they’re competitive advantages.
Getting Started: Tools You Should Know
Here are a few platforms and tools that make edge computing accessible for developers:
Cloudflare Workers — Write JavaScript functions that run at the edge.
Vercel — Perfect for Next.js and frontend teams, with edge function support.
Netlify Edge Functions — Simplified edge logic built into your CI/CD.
AWS Lambda@Edge — Enterprise-grade, with tight AWS integration.
Pro tip: If you’re already using frameworks like Next.js, Nuxt, or SvelteKit, edge-ready deployments are often just one setting away.
Final Thoughts: Why This Matters to You
For developers: Edge computing lets you build faster, more responsive apps without reinventing your stack.
For business owners: It means happier users, lower customer loss, and more conversions.
In a world where speed = success, edge computing isn’t the future — it’s the edge you need today.
0 notes
Text
New Tricks in the Phishing Playbook: Cloudflare Workers, HTML Smuggling, GenAI

Source: https://thehackernews.com/2024/05/new-tricks-in-phishing-playbook.html
More info: https://www.netskope.com/blog/phishing-with-cloudflare-workers-transparent-phishing-and-html-smuggling
3 notes
·
View notes
Text
Cloudlflare builds OAuth with Claude and publishes all the prompts
https://github.com/cloudflare/workers-oauth-provider/commits/main/
0 notes