⬆️ ⬇️

Hidden redirect to ER.RU

ER.RU --- 76-82.RU



During testing Brief.ly API opened a small incident on the site of United Russia.



If you try to insert the ER.RU website into the iframe , then the Java Script will transfer you to the website “ 76-82. Encyclopedia of our childhood .

')

This HTML code of United Russia is to blame for everything:



<script type= "text/javascript" ><br/> var redirect_to= 'http://76-82.ru/' ;<br/> if ( window != top){<br/> top.location.replace(redirect_to);<br/> }<br/> var bad_ref_array=[ "http://\u043f\u0430\u0440\u0442\u0438\u044f-\u0436\u0443\u043b\u0438\u043a\u043e\u0432-\u0438-\u0432\u043e\u0440\u043e\u0432.\u0440\u0444/" ];<br/> var pos= 0 ;<br/> for ( var i= 0 ;i<bad_ref_array.length; i++){<br/> pos=document.referrer.indexOf(bad_ref_array[i]);<br/> if (pos>- 1 ){<br/> window.location.replace(redirect_to);<br/> }<br/> }<br/></script> <br/>




I wonder what this redirection is for? After this publication, however, I think to correct this mistake until the morning.



PS [2011-12-23] a week has passed, and the redirect is in place.

Source: https://habr.com/ru/post/134636/



All Articles