The webpage loading method of browser
[technical field]
The present invention relates to network technology, particularly relate to a kind of webpage loading method of browser.
[background technology]
Browser (Browser) is a kind of general designation of client-side program, and by this client-side program, the user can by http protocol, download the file of html format, and display in the mode of picture and text from the webserver.Simultaneously also can send user's feedback back to server, realize the interactive operation between user and server.Common browser program has the Firefox of Internet Explorer (be called for short IE), Mozilla foundation of Microsoft and the Chrome of Google company etc.Hypertext (HTML, Hyper Text Markup Language) be a kind of descriptive language for webpage, text outside the label that it surrounds by angle brackets (Tag) and label is described the structured message of document jointly, also can describe part of semantic and appearance style.It is the standard of the document format on present network (Internet).At present all browsers are all supported this standard, and mostly in html document<TITLE the text of label is as the caption text of window.
Web page address (URL) is a kind of format string that W3C alliance defines in RFC1738, is used for giving a unique address to each resource on Internet.It roughly is comprised of agreement, station address, path, document name and parameter, generally be presented as following form " agreement: // server address/path/resource name? parameter 1﹠amp; Parameter 2﹠amp; ... ﹠amp; Parameter N ".
Browser (Browser) all has an address field usually, i.e. a text box on browser is used for the web page address of input or display navigation device current accessed document.
Present browser all is presented at the top, interface with address field as an important content, but more and more universal along with network, the user has expanded to vast ruck from the intelligentsia, a pure English and complicated address format, do not have any special significance for them, a lot of users fail to understand, and can not tell truth from falsehood, and this is also the major reason that why much can go smoothly based on the fishing webpage of address forgery.
[summary of the invention]
Based on this, be necessary to provide a kind of webpage loading method of safer browser.
A kind of webpage loading method of browser comprises the steps:
Step S101, the URL address information that analyzing web page information obtains;
Step S102, the presupposed information source beyond corresponding website, described URL address, inquiry obtains web site name corresponding to described URL address, and in described information source, typing has a plurality of URL address and the described web site name corresponding with it;
Step S103 shows described web site name.
In a preferred embodiment of the present invention, described step S102 comprises the steps:
First described URL address is decomposed, extract the server address of described URL address;
Inquiry obtains web site name corresponding to described server address from described presupposed information source again.
In a preferred embodiment of the present invention, described step S102 comprises the steps:
First described URL address being decomposed, extract server address and the path of described URL address, and described server address is decomposed into Main Domain and subdomain name, is the catalogue part with described path decomposing;
Then web site name corresponding to the described Main Domain of coupling from described presupposed information source, in the situation that described Main Domain the match is successful, then mate described subdomain name;
The match is successful for last in the situation that described server address, mates successively described path.
In a preferred embodiment of the present invention, described web site name is presented on webpage label in the browser of multiple web pages label.
In a preferred embodiment of the present invention, described web site name is presented at the position of the original address field of browser.
In a preferred embodiment of the present invention, described web site name and described URL address Alternation Display.
In a preferred embodiment of the present invention, when described browser address bar being detected and lose focus, in the described web site name of the position display of described browser address bar; When described browser address bar receives the user and activates, in the described URL of the position display of described browser address bar address.
In a preferred embodiment of the present invention, described web site name is the Chinese website title.
In a preferred embodiment of the present invention, the URL address change that the webpage loading method of described browser also comprises the steps: address field in described browser being detected is sent prompting message when being not same website with current URL address.
In a preferred embodiment of the present invention, described is not that same website is Main Domain identical the obtaining whether by URL address before and after relatively.
In the webpage loading method of above-mentioned browser, because this web site name is to obtain from a default information source, after the user enters fishing website, due to search in information source less than the web site name (or finding the web site name not identical with true website) of correspondence, web site name can't show, user's this moment very fast can enhancing your vigilance just, prevent cheated, thereby improved security.
[description of drawings]
Fig. 1 is the webpage loading method flow chart of steps of the browser of an embodiment;
Fig. 2 is the effect schematic diagram of the browser address bar of an embodiment when showing the URL address;
Fig. 3 is the effect schematic diagram of the browser address bar of an embodiment when showing web site name.
[embodiment]
In order to solve that existing URL address is difficult to identify concerning domestic consumer and the problem of easily being cheated by fishing website, a kind of webpage loading method of safer browser has been proposed.
See also Fig. 1, the webpage loading method of the browser of an embodiment comprises the steps:
Step S101, the URL address information that analyzing web page information obtains.
Step S102, the presupposed information source beyond corresponding website, described URL address, inquiry obtains web site name corresponding to described URL address, and in described information source, typing has a plurality of URL address and the described web site name corresponding with it.
Described information source comprises the corresponding relation of URL address, website commonly used and its web site name, even can also comprise dangerous URL address and corresponding caution slogan thereof, and namely web site name corresponding to dangerous URL address is a caution slogan.This information source content can be administered and maintained by certain company or certain supervision department.This information source can be downloaded on the terminal that leaves the user in, also can leave on the webserver.Set up the purpose of this information source to be: for a succession of corresponding web site name that public users can be familiar with in URL address that is formed by letter, numbers and symbols, for Chinese user, can this web site name be set to Chinese.
Step S103 shows described web site name.
As: the web site name corresponding to URL address of China Merchants Bank is " China Merchants Bank "; The web site name corresponding to URL address of Taobao is " Taobao "; The web site name corresponding to URL address in store, Jingdone district is " store, Jingdone district ".The user easily just can identify the source, website by the web site name that shows, particularly, because this web site name is to obtain from a default information source, rather than get on to obtain from website corresponding to each URL, at this moment, after the user enters fishing website, due to the web site name of searching in information source less than correspondence, so fishing website just can not show its web site name, the web site name that perhaps finds is a caution slogan.Like this, the user is very fast can enhancing your vigilance just, prevents cheated.,, just perhaps showing caution slogans such as " unknown websites ", the not demonstration of its web site name enhances your vigilance with reminding user with the very similar URL address (fishing website) of China Merchants Bank's web page address as some.
In one embodiment, described step S102 comprises the steps:
First the URL address is decomposed, extract the server address of URL address.
Inquiry obtains web site name corresponding to described server address from described presupposed information source again.
Such as: be the webpage of http://www.cmbchina.com/personal/reg/intro.html for the URL address, the server address of extraction is www.cmbchina.com.
In another embodiment, described step S102 comprises the steps:
First the URL address being decomposed, extract server address and the path of URL address, and server address is decomposed into Main Domain and subdomain name, is the catalogue part with path decomposing.
Then web site name corresponding to coupling Main Domain from described presupposed information source, in the situation that Main Domain the match is successful, then mate subdomain name.
The match is successful for last in the situation that server address, mates successively the path.
Such as: be the webpage of http://www.cmbchina.com/personal/reg/intro.html for the URL address, extract Main Domain cmbchina.com, subdomain name www, path personal and reg.Step S103 shows the web site name that the match is successful at last
The display mode of web site name described in above-mentioned steps S103 can have a variety of, shows or the captions mode that flows shows as the pop-up window mode.
In a preferred embodiment of the present invention, described web site name is presented on webpage label in the browser of multiple web pages label.(title on traditional webpage label is obtained from current web page information, has unsafe factor, also can show " China Merchants Bank " printed words as the webpage label hurdle of the website of non-China Merchants Bank.)
In another preferred embodiment of the present invention, described web site name is presented at the position of the original address field of browser, and with URL address Alternation Display.As shown in Figures 2 and 3, it is respectively when showing the URL address and the address field display effect schematic diagram when showing web site name.In Fig. 2, the address field of browser shows the URL address 202 of website with the form of text box.In Fig. 3, the address field of browser shows described web site name.In the present embodiment, when the address field that browser detected loses focus, when namely the user does not activate address field, in the described web site name 302 of the position display of described browser address bar (shown in Figure 3).When the address field of described browser receives the user and activates by mouse or keyboard shortcut, show URL address 202 (shown in Figure 2) with the text box form, be convenient to the user and check and revise.
In the webpage loading method of above-mentioned browser, demonstration and the shared same display position of original URL address field due to web site name, so can not take the visible space of user's browsing page information, and reached simultaneously and provide an easily address information (web site name) of identification for the user, be convenient to the user and distinguish fishing website, promote the user and use safety.
In another preferred embodiment of the present invention, the webpage loading method of described browser also comprises the steps:
The URL address change of address field when being not same website with current URL address, when namely Main Domain changes, is sent prompting message in browser being detected.Alerting pattern can be sound, image or dialog box etc., further improves the user and uses safety.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.Should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.