How To Block Site Downloads

Table of contents:

How To Block Site Downloads
How To Block Site Downloads

Video: How To Block Site Downloads

Video: How To Block Site Downloads
Video: How To Block Websites on Google Chrome! 2024, December
Anonim

Many site authors are seriously afraid that the fruits of their labor can be stolen by competitors or ordinary users of the resource. A good web programmer has a responsibility to protect his site from unwanted downloads. There are many ways to accomplish this task.

How to block site downloads
How to block site downloads

Instructions

Step 1

Protect your site with native Apache tools using built-in security. You do not need to have special qualifications for this. Apply the required site visitor name and password. Only if they exist in the system, the user will have access to the directory protected by this resource.

Step 2

The above method cannot be used if you need strict protection of business information. In such a situation, use digest authentication, which Apache also supports. Here, the name and password are transmitted as a code, so they cannot be intercepted by hackers. However, this type of protection is not supported by all browsers.

Step 3

Create a limit for the user on the pages viewed over a certain period of time. Those who exceed the limit can be deprived of some rights (banned) for a few minutes. Be sure to warn the site visitor about those actions, the violation of which will entail a ban on use. Such an agreement is usually encouraged to read and accept.

Step 4

Apply the hidden link blocking method from downloading files from your site. Make it on a page where another user cannot go. When viewing a hidden page, the IP address is blocked for three minutes. Please note that search robots are also blocked at this moment. In this case, downloading can be prohibited not immediately after the request, but after the start of the direct download of information or images.

Step 5

Take advantage of JavaScript capabilities so that you can block copying or selection of text and graphic elements on the site page. This is a fairly affordable way for various servers to save material from downloading.

Step 6

Translate each element of the page into 16-digit ASCII code, which is encoded in ISO Latin-1. With such a page saved, you can create a custom script that decodes the start code (ASCII) and saves it to disk for reading.

Recommended: