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

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?

The CDN supports various防盗链 configuration options; different防盗链 methods are suitable for different application scenarios. It is recommended to configure them accordingly. fusecdn => domain name supervising => configure => access control Set up

1: Referer防盗链机制: Only HTTP requests that include the appropriate Referer HTTP header can access resources; however, from a technical perspective, the Referer header can be forged, which poses certain security risks.

2: Timestamp-based防盗链机制 – the URL is accessed using the `e` and `token` parameters; `e` represents the expiration time. However, as long as the URL is captured, the resource can be accessed; this method is suitable for scenarios where the resource should only be accessed a limited number of times.

3: Origin Authentication – You can try this approach: every time a request is made to a CDN image, the request will include custom authentication parameters sent to your own server for verification. Only if the server successfully authenticates the request and returns an HTTP status code of 200 will the image resource be made available to the user; otherwise, the image will not be served.

4: IP allowlist/denylist – This feature is suitable for managing IP access within a specific network segment but is not recommended for use on official websites; only users listed in the IP allowlist can access your images.

https://developer.qiniu.com/fusion/4960/access-control-configuration

☆ It is recommended to use the third type of source authentication and the fourth type of IP allowlist/denylist for access control.

微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

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
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 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
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
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
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

Recommended reading

Responsive Smart Robot Website Template 0224

Responsive Smart Robot Website Template 0224 Practical Collection Yiyou template

An EyouCMS responsive website template designed specifically for the smart robotics industry. Its cutting-edge design style effectively showcases smart robotics products, AI technologies, application scenarios, and brand strength. This template helps robotics technology companies present their innovative products online, attracting both investment and customers. Template Overview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Common Questions About EyouCMS Installation...
👁 40
(PC+WAP) Blue Cable Tray Website – PbootCMS Template; Cable, Steel Structure, Hardware, and Machinery Website Source Code Download – 0112

(PC+WAP) Blue Cable Tray Website – PbootCMS Template; Cable, Steel Structure, Hardware, and Machinery Website Source Code Download – 0112 Practical Collection pbootcms Template

A PbootCMS universal template designed for the cable tray and steel structure hardware machinery industries, featuring a blue color scheme and supporting access via both PC and WAP devices. Its clear and practical design is ideal for showcasing products such as cable trays and bus ducts. This template helps cable tray manufacturing enterprises create professional branded official websites and product display platforms online. Template Display | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin
👁 37
Responsive interior design brand website template – 0893

Responsive interior design brand website template – 0893 Practical Collection Yiyou template

An eYouCMS responsive website template designed for interior decoration, renovation, and brand design projects. Its creative, high-end design style is ideal for showcasing interior design case studies, brand strategy initiatives, spatial planning solutions, and design concepts – helping premium design firms attract high-quality clients online. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for eYouCMS | eYouCMS...
👁 55
(Adaptive mobile version) Responsive healthcare institution website template – PBootCMS; Download HTML5 medical clinic website source code – 0752

(Adaptive mobile version) Responsive healthcare institution website template – PBootCMS; Download HTML5 medical clinic website source code – 0752 Practical Collection pbootcms Template

A responsive PbootCMS website template designed for healthcare institutions and clinics, compatible with both PC and WAP devices. Its clean and professional design makes it ideal for private clinics and community hospitals to showcase their medical environment and services. This template helps healthcare organizations attract local patients online and build trust. Template Overview | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password: www.4s5.cn | Related Articles...
👁 47
Detailed explanation of efficiency considerations between `curl` and `file_get_contents`

Detailed explanation of efficiency considerations between `curl` and `file_get_contents` Language Notes PHP

Both `curl` and `file_get_contents` can be used to retrieve web page content, but their implementation approaches and efficiency differ slightly. `curl` is a powerful network request library that supports various protocols and authentication methods, and allows for the customization of request headers, request bodies, and other parameters. When fetching web page content, `curl` can simulate browser behavior by configuring parameters such as request headers, request bodies, and cookies, thereby...
👁 227
Corporate Website Development & Promotion Template – 0225

Corporate Website Development & Promotion Template – 0225 Practical Collection Yiyou template

This EyouCMS template is ideal for businesses operating in the website development and marketing sector. Its modern, tech-driven design effectively showcases website development services, marketing solutions, technical expertise, and client testimonials. It helps digital marketing agencies attract corporate clients seeking website development or marketing services online. Template Overview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | Eyou...
👁 37