Hongmu Notes
Home Summary of pitfalls

Summary of pitfalls

A summary of common mistakes encountered when building websites... This list isn't exhaustive; it merely records the issues I faced during my own development projects.

What impact might timestamp-based防盗链机制 have on CDN caching performance?

What impact might timestamp-based防盗链机制 have on CDN caching performance? Summary of pitfalls

Timestamp-based防盗链机制 may impact CDN caching performance in the following ways: Reduced cache hit rate: Since each request generates a new URL, requests for the same resource URL at different times are effectively distinct; this can prevent the CDN cache from finding a cached entry, thereby reducing the cache hit rate. Increased cache capacity: Because each timestamp corresponds to a unique URL, the timestamp-based防盗link mechanism increases the number of URLs in the CDN cache, from...
👁 170
Which is better: the Return Source Authentication feature or timestamp-based anti-link劫持 mechanism?

Which is better: the Return Source Authentication feature or timestamp-based anti-link劫持 mechanism? Summary of pitfalls

Origin-based authentication and timestamp-based anti-spoofing are both common technical measures used to protect resources against unauthorized access; each has its own advantages and disadvantages, and the appropriate solution can be selected based on specific requirements. Origin-based authentication: Advantages: This method determines whether to allow access to the original content on the source server by verifying the authentication information contained in the request. It offers relatively high flexibility, as different authentication rules can be configured according to specific requirements, enabling more granular access control. Disadvantages: Origin-based...
👁 210
What exactly is the Huiyuan Authentication Function for?

What exactly is the Huiyuan Authentication Function for? Summary of pitfalls

Origin Authorization is a feature used within Content Delivery Networks (CDNs) to verify whether a request has the proper authorization to access the original content on the source server. When a user requests a particular resource, the CDN first checks whether this request requires Origin Authorization. The primary purpose of Origin Authorization is to prevent unauthorized users from directly accessing resources on the source server. It helps safeguard the source server against activities such as unauthorized linking, malicious downloading, and illegal distribution, thereby enhancing the security and integrity of the source server's content...
👁 273
What does outbound traffic to the external network mean in Object Storage?

What does outbound traffic to the external network mean in Object Storage? Summary of pitfalls

In object storage, external outbound traffic refers to the volume of data transmitted from the data center within the object storage service to the public internet. External outbound traffic is generated whenever a user downloads or accesses an object stored in the object storage service. The calculation of external outbound traffic is typically based on the total amount of data transferred, measured in bytes. This includes the amount of data transmitted to users over protocols such as HTTP, HTTPS, FTP, and others. The generation of external outbound traffic is primarily...
👁 476
What does "CDN return traffic" mean?

What does "CDN return traffic" mean? Summary of pitfalls

CDN origin traffic refers to the data transfer volume that occurs when a user requests content hosted on a CDN node; if the requested content is not cached at that node or if the cached content has expired, the CDN will send a request to the origin server to retrieve the original content, then transmit that content back to the CDN node over the network, and finally deliver it to the user. The amount of data transferred during this process is known as origin traffic. The primary purpose of a CDN is to cache content at nodes located as close as possible to the end users...
👁 341
Qiniu Cloud – Are there any ways to prevent unauthorized transactions on my object storage account?

Qiniu Cloud – Are there any ways to prevent unauthorized transactions on my object storage account? Summary of pitfalls

The CDN supports various防盗链配置 options; different防盗链 mechanisms are suitable for different application scenarios. It is recommended to configure the following in the "CDN> Domain Name Management> Configuration> Access Control" section: 1. Referer-based防盗链: Only HTTP requests that include the corresponding Referer HTTP header can access the resource. However, from a technical perspective, the Referer header can be forged...
👁 375
After enabling the Private Space feature in Qiniu Cloud Object Storage and subsequently activating the Timestamp-based Anti-Link Hijacking feature, how can you retrieve a download link using PHP?

After enabling the Private Space feature in Qiniu Cloud Object Storage and subsequently activating the Timestamp-based Anti-Link Hijacking feature, how can you retrieve a download link using PHP? Summary of pitfalls

This tool is really handy! After enabling the private space feature in Qiniu Cloud Object Storage, the timestamp-based防盗 linking feature was also activated. How can you obtain a download link? When the timestamp verification feature is enabled for your Qiniu Cloud Object Storage private space, you need to include a timestamp parameter when generating a temporary download link. Here are the specific steps: To obtain the download domain name for your private space: In the Qiniu Cloud backend, select the corresponding storage space, navigate to the "Domain Name Settings" page, and locate the section for the private space...
👁 212
How can I download files from my private storage using Qiniu Cloud Object Storage with PHP?

How can I download files from my private storage using Qiniu Cloud Object Storage with PHP? Summary of pitfalls

To download a file from a Qiniu Cloud Private Space, you first need to obtain its download link. You can follow these steps to do so: 1. Obtain the download domain name for your private space: -In the Qiniu Cloud backend, select the corresponding storage space. -Navigate to the "Domain Settings" page. -Locate the download domain name for your private space (e.g., http://<domain>); note this address for later use. 2. Generate a download link: Use the Qiniu Cloud PHP SDK...
👁 179
Qiniu Cloud Object Storage enables simple PHP file uploads.

Qiniu Cloud Object Storage enables simple PHP file uploads. Summary of pitfalls

Qiniu Cloud Object Storage supports simple file uploads; the official documentation also provides upload code examples. The following code can be used to test file uploads—simply replace the placeholders with your own access key and storage bucket name. <?php require 'vendor/autoload.php'; use Qiniu\Auth; // Import the upload class use Qiniu\Storage\Uploa...
👁 192
How to upload files using Qiniu Cloud Object Storage with PHP? How to compress images during file upload?

How to upload files using Qiniu Cloud Object Storage with PHP? How to compress images during file upload? Summary of pitfalls

Recently, I came across an image-sharing platform and, out of necessity, decided to use Object Storage. After reviewing the official documentation, I finally managed to implement the functionality I needed – so, here's a summary! How do you upload files to Qiniu Cloud Object Storage? First, include the official SDK file in your project. Then, in PHP, simply write the code; due to the confidentiality requirements of my business, I will only share the code for the file-upload portion! <?php require'./vendor/a...
👁 173
1 2 3 4 5 6 14