We cut banners and popup'? on free-of-charge hostings

Chat.ru


The name of it khostera already for a long time became nominal and it basically conformably to a phrase « the Hosting worse than ever … ». However many sajtovladel`cy do not hurry to change it{him} for something more decent. It and is understandable - what for to change sewed on a soap. Now concerning a code which causes popup. He is very similar to a code used JAndex'om on People, coincides literally everything, unless names of caused Java-scripts different. Interestingly, who of it{him} at whom skommunizdil?:)


For his{its} neutralization it is necessary to add the next lines in the end of page:



<noscript> <noscript>

<plaintext> <plaintext>


One more possible{probable} and too fine working variant of neutralization of a similar code looks so (to place too in the end of page). Very quite good, it would be desirable to notice, application of the advanced development in CSS:



<div style = " position: absolute; top:0; left:0; width:0; height:0; overflow: scroll; "> <xmp>



Fatal.ru


Interesting enough project, only the limit of traffic and self-advertisement from which it is possible to choose a built in banner and so unloved popup meanwhile afflicts. And all this is caused so:



<! - Ad by Fatal.Ru->

<script language = "JavaScript">

function popup (r) {

w = 120; h = 400;

t = (screen.height-h-20)/2; l = (self.screen.width-w) *9/10;

wd = window.open ('http://fatal.ru/ad/ad.cgi?1121', 'w949273581', ' location=no, scrollbars=no, status=no, menubar =

no, resizable=no, top = ' + t + ', left = ' + l + ', width = ' + w + ', height = ' + h);

return false;

}

var coo = self.document.cookie;

var ref = document.referrer;

if (ref.indexOf ('hoha.ru') <0 ** ref.indexOf ('fatal.ru') <0 ** coo.indexOf ('browsing=1') <0)

popup (ref);

document.cookie = " browsing=1; path = / ";

</script>

<! --------->

<html>

<head>

<title> Titan World </title>


Among all this variety of a code of us the next line interests: wd = window.open ('http://fatal.ru/ad/ad.cgi?1121', 'w949273581'). Completely, by the way, a silly fragment, taking into account that the identifier wd is not required to us. More correctly, he is not required in the given code. To us this oversight just on a hand. We write in the beginning of page:



<script language = "JavaScript">

wd.close ();

</script>


The window let does not vanish absolutely, but is even closed right after the opening …



By.ru


Last time we did not manage to deceive popup this project. And today it was not possible. Unfortunately, though the code also is similar to code Fatal and there is in him a same flaw, the above described reception does not work. However, as it can be useful to someone, I spread operating time. We shall consider a code. This is inserted into the beginning of each page:



<! - a line of advertising by.ru->

<script language = "JavaScript" type = "text/javascript" src = " http: // more.by.ru/up/up.js? 1116711296 "> </script>

<html>


Figures in parameter can be others, but it does not change essence. All this causes such (or, besides, similar) an external script:



function pup949273581 () {

w = 120; h = 400;

t = (screen.height-h-20)/2; l = (self.screen.width-w) *9/10;

wd = window.open ('http://by.ru/up?by.ru', 'w949273581', ' location=no, scrollbars=no, status=no, menubar=no, resizable =

no, top = ' + t + ', left = ' + l + ', width = ' + w + ', height = ' + h);

// if (wd) wd.focus ();

return false;

}


var coo = self.document.cookie;

var ref = self.document.referrer;


if (ref.indexOf ('by.ru') <0 ** coo.indexOf ('browsing=1') <0)

pup949273581 ();


document.cookie = " browsing=1; path = / ";



The conclusion


To tell the truth, very much it would be desirable to sleep, but I shall write still a pair of lines. I shall answer two enough widespread{distributed} a question. The first - that to you for it will be? The answer: if can competently arrange all, for example, to a script to give functionality, and a code at the end of page ostensibly to forget at carry from other file to you most likely will simply make the prevention{warning}. Can, naturally, and to remove. But it and so can - in fact you on a free-of-charge hosting, and nothing is eternal under the moon. - what for to you it is necessary to the second? That did not irritate visitors of your site, did not remind them once again, that your child is still located on a free-of-charge hosting.


And yes spiteful administrators spiteful khostera do not learn{find out} about your tricks:).