A few days ago, you needed to verify a feature of iptables in the high Linux kernel because of your work needs. So I built an experimental environment using Ubuntu16.04 (the kernel version is 4.13.0). Previous use of CentOS6.5 more (kernel version is 2.6.35), Ubuntu used less. When the environment was set up, a strange spot was found immediately.
root@ubuntu:/home/liu# IPTABLES-NVL
Chain INPUT (policy ACCEPT 228 packets, 23310 bytes)
pkts bytes target p Rot opt in out source
.
Copy Code code as follows:
Rewritecond%{http_referer}!^$
Rewritecond%{http_referer}!^http://(www\.)? jb51\.net/[NC]
Rewriterule \. (gif|jpg|png) $–[f]
If the {http_referer} value is not empty, or if it is not from your own domain name, this rule uses [F]flag to block URLs ending with gif|jpg|png
If you are adamant about this hotlinking, you can also change the image so that users visiting the Hotlinking site know that the site is stealing your pictures.
Copy Code c
Suppose you are the manager of a supermarket, you will want to understand the customer's shopping habits. You'll want to know what customers might buy at one time in the shopping, so you can arrange the shelves to make a bigger profit. This is the Association Rules (Association Rule). Its manifestations are as follows:bread⇒milk[support=10%;confidence=60%] Bread\rightarrow milk [support=10\%; confidence=60\%]
The Support degree (support) and Confid
Tags: Methods sql from MYS rules laravel user Raw sortThere are times when data collation needs to be specified for its own rules, such as 1>3>2>0, so you need to specify the collation when fetching data, as follows:SELECT ' user ' from the user WHERE ' User_status ' in (0,1,2,3) ORDER by FIELD (' User_status ', 1,0,2,3);This allows the extracted data to be sorted in 1>0>2>3 order.When using the PHP framewo
Character Set issues:Basic concepts? A character (Character) is the smallest of the ideographic symbols in a human language. such as ' A ', ' B ' and so on;? Given a series of characters, each character is given a numeric value that represents the corresponding character, which is the encoding of the character (Encoding). For example, we give the character ' a ' a value of 0, give the character ' B ' a value of 1, then 0 is the encoding of the character ' a ';? Given a series of characters and g
Tags: PL/sql1. Naming rules for identifiers When you use identifiers in PL/SQL to define variables, constants, the identifier name must begin with a character and cannot exceed 30 characters in length. In addition, to improve the readability of the program, Oracle recommends that users define various identifiers according to the following rules:(1) When defining variables, it is recommended to use v_ as a p
Set maillists related rules 1. Edit the maillists configuration file # vi/etc/maillists In the spam whitelist. confs Definitely Not Spam =/etc/mailstores/rules/whitelist. the format of the rules rule file is as follows: # vi/etc/mailrule/rules/whitelist. rules # Add the addr
Install the boot iptables in Rhel 7.0:yuminstalliptables-services #安装iptablessystemctl maskfirewalld.service #屏蔽firewalld服务systemctl enableiptables.service# Set Boot systemctlenableip6tables.service #设置开机启动systemctl stopfirewalld.service #停止firewalld服务systemctl startiptables.service #开启iptables服务systemctl start ip6tables.service# Open Ip6tables ServiceIn general, Iptables is already included in the Linux distribution, and you can run the iptables--version command to see if the system has ipt
Common rules for IF statements1. Each "If statement" must contain an else;2. If this else should never be executed, because it has no meaning in itself, then you must use a function called die after the Else statement to print out the error message and show it to you, which is similar to the one in the previous section, so you can find a lot of errors.3. "If statement" should not be nested more than 2 layers, it is best to keep only 1 layers. This mea
is the language used to write computer programs.A language is based on a set of tokens and a set of rules.The whole of the notation string based on the rules is language.In programming languages, these tokens are programs.The programming language contains three aspects, namely grammar, semantics and pragmatics.The syntax represents the structure or form of a program, that is, the combination of rules that r
The following pseudo-static rules apply to the server for the Windows System IIS ISAPI rewrite version 2.0 for the perfect resolution of the Tipask2.5 version of the pseudo static rule. nbsp; rules such as, full-text replication can be, if there are other rules, please check whether there will be conflicts caused some of the rule invalidation, as far as possible
Novice often suffer no master hands-on teaching, now the opportunity to, today @anyforweb_udc students for everyone to prepare the Web UI Design 10 Practical rules, case-wide, method of praise, very suitable for the novice who is learning progress, to rise posture bar.
A subjective very want to learn a lot of design novice in the work of the most common situation should be ... No one wants to teach! PS: The traditional thought tells us "teaches the d
Microsoft Windows Presentation Foundation (WPF) has a rich data-binding system. In addition to being a key driver for loosely coupling UI definitions from support logic and data through the Model-view-viewmodel (MVVM) model, the data-binding system provides strong and flexible support for business data validation scenarios. The data binding mechanism in WPF includes several options for evaluating the validity of input data when creating an editable view. In addition, you can easily customize the
in Python, the underline naming rules tend to make beginners quite doubts: Single underline, double underline, double underline also points before and after ... What is the difference between their role and the use of the scene ? Let's talk about this topic today. 1. Single Underline (_) Typically, a single underscore (_) is used in the following 3 scenarios: 1.1 in the interpreter: in this case, "_" represents the result of the statement execute
, italic, etc.
As an example:
Block-level elements
The display results are as follows:OneBoth
In-line elements
The display results are as follows:Onetwo
Block-level elements and inline elements are not immutable, and we can change their features through CSS.
Display:inline; In-line elements
Display:block; Block-level elements
Although there are a lot of HTML tags and we can create the page with unlimited nesting, but ne
Source: http://www.ido321.com/1063.htmlFirst, let's show you an example of CSS precedence: http://www.ido321.com/76.htmlI. Basic PRIORITY rulesCompares the number of the same level, the number of high priority, if the same is compared to the next level of the number, as to the level of priority is as follows:important > Inline > ID > class > tags | pseudo-Class | attribute selection > Pseudo-object > Wildcard > InheritanceSecond, the CSS weight rule As mentioned in the modular design in page re
Formatting can be done by using string. The format method is executed directly or by using the Xx.tostring ("") method. Formatting rules are not too good to remember, this article through Simple CI, can help you remember these rules 1. Number formatThe rules are simple. The type of the format can be optionally followed by a number to indicate the number of decima
Objective
A deep sea of Android, I believe many Android developers are aware of the fragmentation of the Android version, the diversity of Android hardware devices, and the uncertainties of third-party Rom. Now it's not easy to develop a qualified commercial App. First of all, the application of compatibility is a technology and patience of the double test, to perfect the situation can be said to be impossible, is often in the human and adaptation ratio between the balance, today to say drawabl
Micro-Credit Transfer input box rules (may not be full)
1. Two digits after the decimal point
2, the beginning of the decimal point, showing 0.
3, delete to the first position is the decimal point, the first position is 0, to avoid the occurrence of the decimal point in the first position of the situation
Modify the rules of this friend to come, his rules in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.