You can be from any pages from the referer

  Abstract: you can be from what pages from the referer 

  </ Td> </ tr> <tr> <td height="35" valign="top" class="ArticleTeitle"> <table width = "100%" border = "0" cellspacing = "0" cellpadding = " 0 "> <tr> <td width="194" height="86" align="center" valign="top"> </ td> <td width="490" valign="top"> 

  In the development of web procedures, and sometimes we need to be from what users are connected over the pages, which uses referer.    It is http protocol, and therefore, any web to develop the language can be achieved, for example, jsp is: 

  Request.getHeader ( "referer"); 

  _ Php is $ SERVER [ 'HTTP_REFERER']. 

  The other I do not, for example the (in fact, will not other languages).    That it used to do?    I will cite two examples: 

  1, even prevent bootlegging 

  For example, I am a software download site, the download page in the first, I used to judge Previous referer face is not their own sites, if not, that it was stolen even download your address. 

  2, the security of e-commerce sites 

  I submit important information such as credit card use referer pages is not to judge their previous site, if not, hackers could use their writing is a form to submit, in order to skip you in the Back javascript verification purposes. 

  Use referer attention: 

  If I were in the browser directly in the importation of referer pages, and return is null (jsp), that is to say referer only from other pages link to click on this page will have content. 

  I did an experiment, for example, in my referer a.jsp code, it is the Back-b.htm, is a c.htm with iframe pages, and it embedded in the a.jsp in the iframe .    I b.htm input in the browser address, and then click the link to c.htm, it is revealed that the results of b.htm, if I directly in the browser, the input is c.htm that shows the c.htm. 

  </ Td> </ tr> <tr> <td height="20" colspan="2"> 

  </ Td> </ tr> </ table> </ td> </ tr> <tr> 

  ↑ Back 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • DotNetKicks
  • DZone
  • Netvouz
  • Propeller

Recommend Articles

Comments

Leave a Reply