WebHosting带宽-简介

tech2024-06-11  10

When choosing a host, the amount of bandwidth you purchase can be crucial to the success of your site. Generally speaking, the more bandwidth you have, the more traffic your site will be able to handle at one time.

选择主机时,购买的带宽量对于站点的成功至关重要。 一般来说,您拥有的带宽越多,您的站点一次就能处理的流量就越大。

我需要多少带宽? (How much bandwidth do I need?)

To determine how much bandwidth you’ll need, you must first:

要确定所需的带宽,您必须首先:

estimate how big each page on your site is, and

估计您网站上每个页面的大小,以及 how many people are going to view it.

有多少人要查看它。

To do this, add up the size of every image on the page and the size of the page’s HTML files. Then multiply this figure by the number of views you expect for that page per month.

为此,将页面上每个图像的大小与页面HTML文件的大小相加。 然后将此数字乘以您每月对该页面的期望观看次数。

For example, if you had three 10k images on your page and a 2k HTML file, you would have 32k of data on that page. Multiply that by your expected page views (let’s say 100,000 per month), and you get 3.2G of data to be transferred that month for that page.

例如,如果页面上有3个10k图像和2k HTML文件,则该页面上将有32k数据。 将其乘以预期的页面浏览量(假设每月100,000次),就可以得到当月该页面要传输的3.2G数据。

Now recalculate this number for each page, and you’ll know approximately how much bandwidth your entire site requires.

现在,为每个页面重新计算该数字,您将大致了解整个站点需要多少带宽。

如何节省带宽? (How can I save bandwidth?)

There are three key ways to optimize your bandwidth usage:

有三种优化带宽使用率的关键方法:

1. Keep your pages as small as possible. This means tight HTML programming to reduce file size, and compacting your pictures and graphics to reduce image size (NetMechanic has a free, easy-to-use file compression utility). Use the JPEG image format for your photos and the GIF format for graphics – their compression abilities are second to none.

1.使页面尽可能小。 这意味着要进行紧凑HTML编程以减小文件大小,并压缩图片和图形以减小图像大小( NetMechanic具有免费的,易于使用的文件压缩实用程序)。 将JPEG图像格式用于照片,将GIF格式用于图形–它们的压缩能力是首屈一指的。

Dr. HTML’s site has useful tools that will analyze your site’s image sizes, transfer amounts, table structure and more.

HTML博士的网站具有有用的工具,可以分析您网站的图像大小,转移金额,表格结构等。

2. Use images that aren’t stored on your site. You can do this by replacing the file name in your <IMG SRC> tag with a URL that gives the location of the image you want to use. Before doing this, however, make sure you have the permission of the site you are linking to. Otherwise, you’re stealing bandwidth, which is considered pirating and is therefore illegal (for more information, see “How can I prevent bandwidth theft?” below).

2.使用未存储在您网站上的图像。 您可以通过用一个URL替换<IMG SRC>标记中的文件名来实现此目的,该URL给出了要使用的图像的位置。 但是,在执行此操作之前,请确保您具有要链接的站点的权限。 否则,您将窃取被认为是盗版的非法带宽,因此是非法的(有关更多信息,请参见下面的“如何防止带宽被盗?”)。

3. Use Cascading Style Sheets (CSS). Another effective way to save bandwidth is to use CSS. Designed to reduce HTML file size, CSS attribute values for any HTML element/command at the beginning of the document, rather than repeating them throughout.

3.使用级联样式表(CSS)。 节省带宽的另一种有效方法是使用CSS。 旨在减小HTML文件的大小,在文档开始时为任何HTML元素/命令提供CSS属性值,而不是在整个过程中重复它们。

For more information on CSS and other resources related to bandwidth conservation, visit Infohiway or the SitePoint CSS Tutorial.

有关CSS和其他与带宽节省相关的资源的详细信息,请访问Infohiway或SitePoint CSS教程。

如何防止带宽被盗? (How can I prevent bandwidth theft?)

To use another site’s images by linking to them through your <IMG SRC> tags without permission is a form of double piracy: you’re pirating both the site’s image and its bandwidth. As unethical as it may be, it’s a reality many webmasters have to deal with on a daily basis.

通过未经许可通过您的<IMG SRC>标记链接到另一个站点的图像来使用它是一种双重盗版形式:您正在盗版该站点的图像及其带宽。 尽管这可能是不道德的,但这是许多网站管理员必须每天处理的现实。

Policing The most basic method of preventing theft of your bandwidth is policing. Analyze search engines, logs, and other sites to find out who’s using your images (and your bandwidth) without permission.

管制防止带宽被盗的最基本方法是管制。 分析搜索引擎,日志和其他站点,以找出未经许可使用谁在使用您的图像(和带宽)。

Once you’ve identified the offenders, you can contact them and order them to stop linking to your site (and if they try to feed you a story about everything on the Internet being in the "public domain," don’t buy it). Unfortunately, policing sites yourself is a time-consuming task.

一旦确定了犯罪者,就可以与他们联系并命令他们停止链接到您的网站(如果他们试图向您提供有关Internet上属于“公共领域”的所有内容的故事,请不要购买) 。 不幸的是,自己管理网站是一项耗时的工作。

Commercial Software A more costly but time-efficient way to protect your bandwidth is to take advantage of the software packages that are currently available.

商业软件保护带宽的一种更昂贵但省时的方法是利用当前可用的软件包。

A standard log analysis program like WebTrends can help track bandwidth thieves, as most software suites like this will identify the most popular referrers and visitors to your site. Armed with that information, you can work backward to find out if any sites are hitching a ride on your connection. Most Web hosts offer some sort of log analysis program as a standard feature of their hosting package.

像WebTrends这样的标准日志分析程序可以帮助跟踪带宽窃贼,因为大多数类似这样的软件套件都可以识别出您网站上最受欢迎的引荐来源和访问者。 有了这些信息,您就可以向后进行研究,以了解是否有任何站点正在您的连接上搭便车。 大多数Web主机都将某种日志分析程序作为其主机包的标准功能。

If you’re looking for something a bit more automated, Artistscope offers a number of utilities that can protect your images through encryption, secure Web hosting, and other methods. Protection plans start as low as $US10 per 100 page views.

如果您正在寻找自动化程度更高的产品, Artistscope提供了许多实用程序,这些实用程序可以通过加密,安全的Web托管和其他方法来保护您的图像。 保护计划的起价为每100页浏览量10美元。

Or, for an extremely secure, high-end solution, Digimarc has developed patented digital technology that embeds a "watermark" on all files, providing copyright protection and tracking for your electronic property.

或者,对于一种极其安全的高端解决方案, Digimarc已开发了获得专利的数字技术,该技术在所有文件上都嵌入了“水印”,从而为您的电子财产提供版权保护和跟踪。

在哪里可以找到更多? (Where can I find out more?)

For further details on bandwidth, take a look at Bandwidth.com, a site that matches users with bandwidth providers. About.com recently launched a bandwidth-specific Web site that’s chock-full of bandwidth-related news and information. And be sure to visit MSN’s message board community, where you’ll find an entire section dedicated to connectivity.

有关带宽的更多详细信息,请访问Bandwidth.com ,该站点将用户与带宽提供者匹配。 About.com最近推出了一个特定于带宽的网站,其中充斥着与带宽有关的新闻和信息。 并且一定要访问MSN的留言板社区 ,您将在其中找到有关连接的完整部分。

翻译自: https://www.sitepoint.com/bandwidth-introduction/

相关资源:jdk-8u281-windows-x64.exe
最新回复(0)