[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #7740 [Flashproxy]: flashproxy badge works just like a web bug



#7740: flashproxy badge works just like a web bug
------------------------+---------------------------------------------------
 Reporter:  arma        |          Owner:  dcf         
     Type:  defect      |         Status:  needs_review
 Priority:  normal      |      Milestone:              
Component:  Flashproxy  |        Version:              
 Keywords:              |         Parent:              
   Points:              |   Actualpoints:              
------------------------+---------------------------------------------------
Changes (by saint):

  * status:  new => needs_review


Comment:

 Because of spammers abusing empty referrers, this is a bit of an arms race
 in and of itself. And what works forÂFireFoxÂmight not work for Chrome,
 etc.

 Right now there is at least one way to keep the referring site from being
 sent to the server no matter which browser the user is using:

 Option 1: PHP header redirect

 Blog => iframe.php (redirects to) => embed.html

 {{{
 <?''php ''header('Location:
 http://crypto.stanford.edu/flashproxy/embed.html'); ?>
 }}}
 Option 2: Create the iframe using javascript (probably a nesting iframe
 situation)

 {{{
 {{{
 ''//doesn't block the load event'''''function''' createIframe() {
 '''var''' i '''=''' document.createElement("iframe");ÂÂÂÂi.src '''='''
 "//crypto.stanford.edu/flashproxy/embed.html";ÂÂÂÂi.scrolling '''='''
 "none";ÂÂÂÂi.frameborder '''=''' "0";ÂÂÂÂi.width '''=''' "80px";
 i.height '''=''' "15px";
 document.getElementById("bridge").appendChild(i);};''// Check for browser
 support of event handling capability'''''if''' (window.addEventListener)
 window.addEventListener("load", createIframe, '''false''');'''else'''
 '''if''' (window.attachEvent) window.attachEvent("onload",
 createIframe);'''else''' window.onload '''=''' createIframe;
 }}}

 }}}


 {{{
 <div id="bridge"></div>
 }}}
 Option 3: Set parent.location for the iframe (doesn't work inÂFireFox)

 {{{
 <iframe
 src="javascript:parent.location='//crypto.stanford.edu/flashproxy/embed.html'"></iframe>
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7740#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs