Search for class site records && proxy servers

Source: Internet
Author: User
Tags hasownproperty

Tip 1: Use site

We in the search, in fact, do not rely on the search engine is also possible, for example, we want to search for a "China", you can enter in the search box

China site:www.baidu.com

Then we get all the information from Baidu, and there is no information, this is very useful

Note: it must be in English after the site: and cannot have spaces before and after:.

2. Go directly to Baidu's Advanced search page.

Https://www.baidu.com/gaoji/advanced.html

3. http://www.3bsou.com

3b Search

Actually fell in love with it, look at its interface bar.

As you can see, on search engines, Google and Bing can give me what I want.

4. wikipedia

It's better to go through Google, and the benefits of Wikipedia are more comprehensive and authoritative, and I think they do a good job of handling information (such as catalogs, sources, etc.), and don't worry about it being in English, because the Wikipedia on the top left lets us choose the language as follows:

Click directly on the Han , or the mainland simplified . Very convenient, especially in the explanation of various sorts, is also easy to understand. Recommended.

1. Search Baidu Plate. There are many things that can be conveniently found, such as cracking PS amtlib.dll files, faststonecapture tools (Learn more about this tool) and so on.

2. Know. Many problems can be found in high-quality answers.

3.github. What source code can be very convenient to find. Another FQ artifact lantern is from this.

4. Google search . Search more professional things with Google, search the domestic fragmented things can be used Baidu. But because of our Google is sometimes unstable at home, so in my opinion, Bing search is also a very good search engine, it is recommended.

5.fanqiang

In general, we may have some problems when using lantern, the cause of the problem is often due to proxy server Setup problems, for example, after we turned on, and did not automatically log on the blue light, and then found that QQ can log in, and the browser cannot log in, This is because the proxy server is turned on in the proxy settings in the advanced settings of the browser, and the blue light does not really open, look first:

That is, at this time, the use of the blue light 4219 port number, but lantern no real link success, so can not browse the site, the solution is very simple, one is to open the lantern, it is also possible to FQ, the other is to remove the proxy server, This is completely impossible to FQ. Can be successful in solving this kind of problem.

In addition, when we use small aircraft fq (Lantern also in the open state), then you can see the automatic configuration is also open state, this configuration option will automatically overwrite the following proxy server, This means using lantern and small aircraft at the same time FQ, the final use of the small aircraft.

, when we open the small plane, the following is shown in the proxy settings of the network settings:

Even with setup script, the address is http://.

Of course, if we close it, we won't show it. And if we open the lantern, the following is displayed:

Both use the proxy server, but the small aircraft set is automatic proxy, and lantern is manually set.

So what is the real difference between the two? In fact, the two are proxy Internet, one is the script online, and essentially both use proxy server to the Internet.

Only, the former needs to manually configure the proxy's address and port number, as shown in. The latter does not need to manually configure the address and port number, only need to fill the script file in the automatic configuration of the script. If we enter the address of the script proxy of the small plane, we can find the prompt to download a script file, the code of this script file is as follows (JS code)

Generated by gfwlist2pac//Https://github.com/clowwindy/gfwlist2pacvar domains = {  "gimpshop.com": 1,   " Directcreative.com ": 1,   //Omit 2000 line configuration code};var proxy =" proxy 127.0.0.1:1080; "; var direct = ' direct; '; var hasownproperty = object.hasownproperty;function FindProxyForURL (URL, host) {    var suffix;    var pos = Host.lastindexof ('. ');    pos = Host.lastindexof ('. ', pos-1);    while (1) {        if (pos <= 0) {            if (Hasownproperty.call (domains, host)) {                return proxy;            } else {                Retu RN direct;            }        }        suffix = host.substring (pos + 1);        if (Hasownproperty.call (domains, suffix)) {            return proxy;        }        pos = Host.lastindexof ('. ', pos-1);    }}

We can go to GitHub to view the source code.

As you can see, in this configuration file, the first is a domains object, which is configured around 2000 rows. Then a proxy string, a direct string, a hasOwnProperty method, a function that needs to be called locally findproxyforurl, accepts a URL parameter and a host parameter, Then, determine if there are two hosts in the host. If not, check if there is a host property in the domains, then return to proxy, or direct, Then if there are two., just look at the back to share there is no suffix, if there is, use the agent, otherwise it has been circulating.

Domains is a lot of host name, and are not www, that is, if there is only one point, then judge the use of proxy or direct, if there are two points, we have to get back, see if there is, as long as a point is enough, if there is, use, if there is, do not have , let the Pos minus 1 to continue the loop judgment.

He will be automatically called by the browser, here the article describes

In Firefox, we can also make proxy settings, as follows:

That is, the default option is to use the system proxy settings, that is, what we are setting up in the network, the use of the form here, there is an automatic proxy configuration (PAC) option, is to add the automatic configuration of the PAC file, since the PAC is a JS file, it must be the browser to invoke. And we can choose not to use proxies.

That is, the system itself is a global setting, we can also be further configured in the browser, there is a double-layer protection feeling.

Alternatively, we can look at the setup options for the small aircraft:

That is, the first is whether to use the system proxy, tick the next we can Fanqiang, the second is the mode is divided into PAC and the global mode, PAC mode is the above we see the PAC script file under the Domains object of some domain name, if the global mode will proxy all traffic. Just like lantern, we can choose the following:

That is, you can proxy all the traffic by checking the proxy all traffic, of course, this is not recommended, because lantern and small aircraft are limited by the traffic, so we still hope for some unnecessary places do not apply proxy server, to reduce waste.

Next up is servers (this servers of course is the proxy server):

The TRY01 server is selected here. And when we get the port number, we generally go to edit servers to configure the server option.

Here is the PAC option setting:

That is, when I use the local PAC, that is, using the native PAC configuration file, of course, you can use the online PAC, but obviously, the use of local faster, because the browser does not need to call the request, we can also directly edit, so that we can enter the PAC configuration file, You can also update the latest PAC file from the Web.

We can also choose whether to start the boot, as for availibility statics, it is not clear what it means.

Finally, the logs, we can see through the log to understand the series of operations we have done.

5. Search path to find the problem

    • Official documents
    • StackOverflow (Segmentfault)
    • Nanyi && Zhang Xin Xu
    • Blog Park look for (according to the recommendation book search)

6. Google's support for the original---Google Baidu to stand up to see

  

Search for class site records && proxy servers

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.