Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Setting Squid successful anti-hotlinking     - Linux process management related content (Linux)

- OpenCV 3.0 + Python 2.7 installation and testing under Ubuntu 14.04 (Linux)

- Linux commands to access the cheat sheet (Linux)

- init level settings for Linux / etc / inittab file into six (restart) or does not support the level of solution (Linux)

- Based kubernetes Construction Docker Cluster Management Comments (Server)

- Linux system network security tools sudo Introduction (Linux)

- SUSE Linux network configuration and firewall configuration (Linux)

- RPM package management under Linux (Linux)

- Implement firewall function on a closed Linux machine (Linux)

- Java application server WildFly (Server)

- iTerm - let your command line can also be colorful (Linux)

- Android Dynamic efficiency articles: a brilliant Loading Analysis and Implementation (Programming)

- Installation and deployment of Hadoop 2.7.1 on Ubuntu 14.04 LTS (Server)

- Ubuntu 14.04 LTS compiler installation R Source Code (Linux)

- Will Laravel become the most successful PHP framework? (Programming)

- Linux under HAProxy + Keepalived dual-availability program (Server)

- Hibernate Search 5.5 in the search results sorted (Linux)

- VirtualBox 4.3 Can not open a new task for a virtual computer solution (Linux)

- Oracle Sql Loader tool has shown signs (Database)

- Ubuntu modify locale problem solving (Linux)

  Setting Squid successful anti-hotlinking
  Add Date : 2018-11-21      
  Squid is a software used for data buffering Internet. This is accomplished by its function, to accept requests from people you need to download the target (object) and appropriately handle these requests. In other words, if one wants to download a web page, he made his request Squid this page. Squid subsequently connect to the remote server (for example: http: //squid.nlanr.net/) to request this page. Then, Squid explicitly aggregated data to the client machine, and at the same time a copy. The next time someone needs the same page, Squid can simply read it from disk, as data is transferred immediately to the client. Current Squid can handle HTTP, FTP, GOPHER, SSL, and WAIS and other agreements. But it can not handle, such as POP, NNTP, RealAudio and other types of things.

acl yhballow referer_regex ^ http: // [a-zA-Z0-9] * \ wwwaaa \ .com ^ http:.. //www.test.com ^ http: // localhost ^ http: //

acl picurl url_regex -i .bmp $ .png $ .jpg $ .gif $ .jpeg $ .rar $ .wmv $ .mp3 $ .rm $ .avi $ .asf $ .mpg $ .mpeg $ .rmvb $ .wma $

http_access deny! yhballow picurl

And allows only the domain name and www.test.com and localhost access contains wwwaaa.com of.

Note: To comment about the statement, whether self-setting does not take effect. Because this statement has allowed all of the. Or the following sentence to the following anti above statement.

#http_access allow all

If the setting does not work you can view your statements in order http_access. Must be placed in front of http_access deny all http_access allow all or statement.
- About redis in Replication (Database)
- Keepalived + Nginx Installation and Configuration (Server)
- Docker Build a Java compiler environment (Linux)
- C # DateTime structure common method (Programming)
- Puppet 3.x installed on Debian 7 (Server)
- The bulk batch multiple rows of data collect (Database)
- Windows and Ubuntu dual system, repair of two ways UEFI boot (Linux)
- Single-node Hadoop installation notes distributed pseudo & (Server)
- C # function (Programming)
- Mac OS X system setup Google Go language development environment configuration tool Sublime Text 2 (Linux)
- CentOS ClamAV antivirus package updates (Linux)
- Struts2 dynamic call DMI and error Solution (Programming)
- C ++ 11 feature: auto keyword (Programming)
- Installation JDK 1.8 under CentOS7 (Linux)
- The YUM package management under Linux (Linux)
- Eight kinds of techniques to solve hard problems Linux (Linux)
- MySQL query performance comparison of a single truth (Database)
- Ubuntu users to install voice switch instructs the applet (Linux)
- Merge Sort (Programming)
- ASM learning overview (Database)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.