ASCII Random Infinito

Introducción

En mi antiguo blog empece a tener mucho spam, particularmente tenía bots que entraban a la pagina y posteaban random. Eso me molestaba bastante, así que trate de idear una manera creativa de detenerlos, y no solo detenerlos sino también entretenerlos, infinitamente… Lo que se me ocurrió fue regalarles ascii infinito en vez de mi pagina, de esa manera el bot se mantendría de manera indefinida esperando a que la pagina terminara de cargar, pero jamas lo haría, por que es ASCII infinito : ).

Demo

Para no desperdiciar bandwidth con bots, silenciosamente los redirigía a esta dirección:
http://emiliobool.110mb.com/ (recomiendo entrar usando firefox)

Como funciona

Es un script en php que revisa un folder con archivos en .txt y escoge uno al azar y lo abre. Entonces cada 9000uS envía una nueva letra de ese archivo hasta llegar al final. Una vez que llega al final abre otro archivo al azar y continua con el mismo ciclo. De esa manera gasta pocos recursos del server y te mantiene entretenido esperando a recibir la siguiente letra.

Compatibilidad

Browsers

Lo probé en firefox, opera, chrome e incluso IE y funcionó en todos, sin embargo en opera y chrome solo envía una linea completa a la vez, a diferencia de firefox e IE que envían letra por letra. Si vas a probarlo recomiendo firefox, el feeling es mejor. Particularmente uso Chrome, así que lastima por esa limitación. Quizás se puede sobrepasar si con cada carácter envías un tag html, como un <span> o similar, eso forzaría al browser a mostrar lo que lleva, pero gastaría mas bandwidth.

Edit: Hice una versión alternativa compatible con chrome http://emiliobool.110mb.com/chrome.php pero gasta más bandwidth (5 veces mas).

Servers

Particularmente funciona en local y en 110mb, pero en el server en el que tengo este blog no funciona. Las razones pueden ser muchas pero como no planeaba usarlo en este server nunca las investigue. Puede ser que envié la información comprimida o algo similar y ocupe configurar bien el php.ini o un archivo .htaccess. Debería funcionar en tu server, y sino, es cuestión de configuración.

Código

<?
//may or may not be needed depending on your server
@apache_setenv('no-gzip', 1);
@ini_set('zlib.output_compression', 0);
@ini_set('implicit_flush', 1);
header("Cache-Control: private, no-cache, must-revalidate");

//uncomment this if the script outputs timeout error
//set_time_limit(0);

echo str_repeat(" ", 256)."<pre>"; flush();ob_flush();
echo '<pre>';

flush();
ob_flush();

$dir = 'ascii';//folder
$files = array();

if($handle = opendir($dir)){

	//get file names
    while(false !== ($file = readdir($handle))){
        if(is_dir($file) || $file == '..') continue;

		$files[] = $file;

	}

	closedir($handle);

	//main loop
	while(1){

		$size = sizeof($files);
		if($size == 0) break;
		$n = rand()%$size;
		$file = $files[$n];
		$fh = fopen("$dir/$file", 'r');

		if($fh){
			while(!feof($fh)) {
				$buffer = fgets($fh);
				$len = strlen($buffer);

				for($i=0;$i<$len;$i++){
					echo $buffer{$i};
					if($buffer{$i} != ' '){//no wait for white spaces

						flush();
						ob_flush();
						usleep(9000);//wait 9000uS

					}
				}
				echo "<span />";//forces flush on chrome, opera and IE

			}
			fclose($fh);
		}

	}

}
?>

Download

ASCII Loader Source

Instalar

Solo descomprime los archivos, subelo a un server y abrelo en un browser.

  • I’m not sure exactly why but this web site is loading extremely slow for me. Is anyone else having this issue or is it a problem on my end? I’ll check back later and see if the problem still exists.

  • I am really enjoying the theme/design of your blog. Do you ever run into any internet browser compatibility problems? A small number of my blog visitors have complained about my blog not operating correctly in Explorer but looks great in Opera. Do you have any advice to help fix this problem?

  • I must admit that your post is really interesting. I have spent a lot of my spare time reading your content. Thank you a lot!

  • Hi there! Would you mind if I share your blog with my facebook group? There’s a lot of people that I think would really enjoy your content. Please let me know. Many thanks

  • I would also like to add that if you do not actually have an insurance policy or else you do not take part in any group insurance, you will well reap the benefits of seeking the help of a health agent. Self-employed or those with medical conditions usually seek the help of an health insurance brokerage service. Thanks for your text.

  • Hi, i read your blog from time to time and i own a similar one
    and i was just curious if you get a lot of spam responses?

    If so how do you prevent it, any plugin or anything you can suggest?
    I get so much lately it’s driving me insane so any help is very much appreciated.

  • What i’m thus, very happy want. Definitely distinctive line of instruct that is gifted do that your current pet falsehoods that’s generally to the second websites. Truly appreciate that expression the following biggest file.

  • cialis without a doctors prescription is also handy in 2 other forms. Other forms are cialis over the counter at costco. They both hold back changeless ingredient i.e. cialis without a doctor’s prescription. Though they are fully excessive in the pricing but they hold promiscuous action cialis canada property.

  • 113165 priligy 671766 canadian viagra ylrihh canadian viagra nguqlk viagra generic 242607 [url=http://ecanadianonlinerx.com/]viagra generic[/url]

  • Nitrates: You should not crook viagra online if you are fetching nitrates. These are immediate in some viagra ohne rezept aus deutschland to probe inexorable healthfulness conditions, outstandingly ones within the cardiovascular system. Alpha-blockers: if you are charming canadian online pharmacy repayment for hypertension, frame true there at least a six hour break between fetching them and captivating viagra without a doctor prescription.

  • cialis without a doctor’s prescription is also at one’s fingertips in 2 other forms. Other forms are cialis over the counter at walmart. They both hold back changeless ingredient i.e. cialis without a doctor’s prescription. Though they are fully heinous in the pricing but they have connected effectiveness cialis coupon property.

  • [url=http://advairhfa.science/]advair without prescription[/url] [url=http://buy-cephalexin.trade/]cephalexin[/url] [url=http://atarax.pro/]atarax 25[/url] [url=http://buyarimidex.download/]arimidex[/url] [url=http://ataraxonline.cricket/]atarax online[/url]

  • [url=http://kamagraoraljelly.top/]kamagra[/url] [url=http://buy-ampicillin.top/]ampicillin[/url] [url=http://clindamycin.loan/]clindamycin[/url]

  • [url=http://torsemide.top/]torsemide 40 mg[/url] [url=http://buy-amitriptyline.trade/]amitriptyline[/url] [url=http://lasixwaterpill.eu/]lasix water pill[/url]

  • [url=http://buy-propranolol.top/]propranolol order online[/url] [url=http://lisinopril.pro/]lisinopril[/url] [url=http://buy-amitriptyline.date/]amitriptyline[/url] [url=http://buy-albendazole.webcam/]buy albendazole[/url] [url=http://buy-azithromycin.trade/]where can i buy azithromycin online[/url]

  • Si eres un apasionado de los Comics Porno este es tu sitio sin duda,
    ya que puedes ver comic porno totalmente gratis.

  • [url=http://genericadvair.date/]generic advair[/url] [url=http://buyserevent.trade/]serevent diskus 50 mcg[/url] [url=http://buyzyban.trade/]zyban[/url] [url=http://buy-zofran.bid/]buy zofran[/url] [url=http://celebrex-online.party/]celebrex[/url] [url=http://buy-lipitor.stream/]lipitor 40[/url] [url=http://namenda.top/]namenda[/url]

  • [url=http://buy-zofran.cricket/]zofran[/url] [url=http://viagra-online-canadian-pharmacy.top/]viagra[/url] [url=http://seroquel-generic.gdn/]seroquel 25mg[/url] [url=http://buytadacip.stream/]tadacip[/url] [url=http://buy-clonidine.kim/]clonidine[/url] [url=http://azithromycin-250-mg.webcam/]azithromycin 250 mg[/url] [url=http://buy-acyclovir.trade/]buy acyclovir with no prescription[/url]

  • [url=http://cafergotonline.bid/]cafergot online[/url] [url=http://lasixwaterpill.in.net/]lasix[/url] [url=http://rogaine-for-men.top/]rogaine[/url]

  • [url=http://buycolchicine.com/]gout treatment colchicine[/url]

  • [url=http://furosemideonline.cricket/]furosemide[/url] [url=http://buyrevatio.trade/]buy revatio[/url] [url=http://phenerganonline.eu/]phenergan[/url]

  • [url=http://buy-vermox.bid/]vermox[/url] [url=http://buy-albendazole.faith/]buy albendazole[/url] [url=http://cymbalta-online.top/]buy cymbalta online[/url] [url=http://arimidex-online.cricket/]click[/url] [url=http://amitriptylinehydrochloride.party/]amitriptyline hydrochloride[/url]

  • [url=http://prilosec.top/]prilosec[/url] [url=http://amitriptylinehydrochloride.eu/]amitriptyline[/url] [url=http://lisinopril20mg.gdn/]found here[/url] [url=http://cialiscostperpill.webcam/]cialis cost per pill[/url] [url=http://cialisforsale.cricket/]cheap cialis for sale[/url] [url=http://seroquel-sleep.eu/]seroquel sleep[/url] [url=http://otc-viagra.top/]viagra[/url]

  • [url=http://furosemide-20-mg-tab.xyz/]resource[/url] [url=http://buyavodart.red/]generic for avodart medication[/url] [url=http://singulairgeneric.science/]singulair generic[/url]

  • [url=http://buyglucophage.pro/]buy glucophage[/url] [url=http://stratteraonline.webcam/]generic strattera[/url] [url=http://buy-nolvadex.red/]nolvadex purchase[/url] [url=http://rogaineformen.eu/]rogaine 4 month supply[/url] [url=http://lasixwaterpill.top/]lasix[/url] [url=http://metforminer.party/]metformin[/url]

  • [url=http://baclofen-10mg.webcam/]baclofen 10mg[/url] [url=http://ciprofloxacn.party/]cipro[/url] [url=http://prednisoloneacetate.bid/]prednisolone 40mg[/url] [url=http://genericprozac.gdn/]generic prozac[/url]

  • [url=http://buy-cephalexin.faith/]cephalexin[/url] [url=http://genericretina.gdn/]retin-a[/url] [url=http://viagranoprescription.trade/]viagra no prescription[/url] [url=http://neurontin.red/]buy neurontin[/url] [url=http://buyclomid.stream/]buy clomid online[/url]

  • [url=http://trazodone-100-mg.cricket/]trazodone[/url] [url=http://genericlipitor.top/]generic lipitor prices[/url] [url=http://buy-tadacip.red/]tadacip 20[/url] [url=http://alli.online/]alli diet pill[/url] [url=http://citalopram10mg.bid/]citalopram[/url] [url=http://buyatarax.red/]atarax[/url] [url=http://amoxicillin.pro/]amoxicillin[/url]

  • eTVoa1 smtesglviyss, [url=http://xoiznolzxaod.com/]xoiznolzxaod[/url], [link=http://sxgettcbnbba.com/]sxgettcbnbba[/link], http://odnicztoqksv.com/

  • lasix 284328 buy bactrim mars91 z pack 837131 levitra faz14m4189

  • инструкция по охране труда при работе на копировально-фрезерном станке, бланки и образцы по строевой части мо рф, [url=http://161k.ru/05/1625-a-a-kibrik-grammaticheskij-slovar]http://161k.ru/05/1625-a-a-kibrik-grammaticheskij-slovar[/url], образец заявления согласно приказа 369 для единовременной выплаты, схемы вязанных коконов для новорожденных, ачф [url=http://1cprofile.ru/14/417/aciklovir-moskva-akri-tabletki-instrukciya]ацикловир москва акри таблетки инструкция[/url], контрольная работа на тему страхование грузов, Silver fox f906 инструкция, бикомплекс лекарство инструкция [url=http://1orel.ru/1247/%d0%b1%d0%b8%d0%ba%d0%be%d0%bc%d0%bf%d0%bb%d0%b5%d0%ba%d1%81-%d0%bb%d0%b5%d0%ba%d0%b0%d1%80%d1%81%d1%82%d0%b2%d0%be-%d0%b8%d0%bd%d1%81%d1%82%d1%80%d1%83%d0%ba%d1%86%d0%b8%d1%8f]здесь[/url], руководство бт торговые решения

  • Hp lj m3035 сервис мануал, образец приказа о создании комиссии на списание и уничтожение испорченных бланков аттестатов, типовая инструкция по охране труда для работников вуза [url=http://milanfurs.ru/%d0%b1%d0%b5%d0%b7-%d1%80%d1%83%d0%b1%d1%80%d0%b8%d0%ba%d0%b8/1523-tipovaya-instrukciya-po-oxrane-truda-dlya-rabotnikov-vuza]скачать[/url], образец рекламный буклет про библиотеку, инструкция по получению свободной энергии.mp4, ачф [url=http://mineral-swp.ru/2016/07/29/%d1%81%d1%85%d0%b5%d0%bc%d0%b0-%d0%b2%d0%be%d0%b7%d0%b4%d1%83%d1%88%d0%bd%d0%be%d0%b3%d0%be-%d0%be%d1%85%d0%bb%d0%b0%d0%b6%d0%b4%d0%b5%d0%bd%d0%b8%d0%b5-%d0%b1%d0%bb%d0%be%d0%ba%d0%b0-%d0%ba%d0%be]http://mineral-swp.ru/2016/07/29/%d1%81%d1%85%d0%b5%d0%bc%d0%b0-%d0%b2%d0%be%d0%b7%d0%b4%d1%83%d1%88%d0%bd%d0%be%d0%b3%d0%be-%d0%be%d1%85%d0%bb%d0%b0%d0%b6%d0%b4%d0%b5%d0%bd%d0%b8%d0%b5-%d0%b1%d0%bb%d0%be%d0%ba%d0%b0-%d0%ba%d0%be[/url], пошаговая инструкция photorec, должностная инструкция ответственного за организацию внутриучрежденческого контроля, [url=http://mir-ekonomiki.ru/?p=5343]http://mir-ekonomiki.ru/?p=5343[/url], онлайн учебники по маркетингу

  • [url=http://buy-provera.link/]provera[/url] [url=http://viagrageneric.cricket/]viagra[/url] [url=http://azithromycin250mg.trade/]azithromycin[/url] [url=http://prednisone5mg.trade/]prednisone 5mg tablets[/url] [url=http://triphala.trade/]triphala powder[/url]

  • инструкция по прошивке нокиа е63, тошиба сателлит а200 сервис мануал, шаблон artisteer создать позицию [url=http://agewars.ru/2016/08/05/5285/shablon-artisteer-sozdat-poziciyu]http://agewars.ru/2016/08/05/5285/shablon-artisteer-sozdat-poziciyu[/url], заява розрахунок виплат з фонду в д нещасного випадку на виробництв бланк, как удалить вирус с планшета инструкция, ачф ноут асер инструкция по неисправностяь [url=http://aliavto.ru/nout-aser-instrukciya-po-neispravnostya]подробнее по ссылке[/url], инструкция автосигнализации супер, образец жалобы на собаку соседей, инструкция браслетов из резинок [url=http://allbri.top/08/instrukciya-brasletov-iz-rezinok]http://allbri.top/08/instrukciya-brasletov-iz-rezinok[/url], бланк відповідей учасника конкурсу колосок

  • [url=http://cymbalta-generic.party/]cymbalta[/url] [url=http://cephalexinonline.top/]generic cephalexin online[/url] [url=http://tamoxifencitrate.top/]nolvadex tamoxifen citrate[/url]

  • [url=http://buycitalopram.stream/]buy citalopram 20 mg[/url] [url=http://retin-a-online.cricket/]retin-a[/url] [url=http://buysingulair.link/]where to buy singulair[/url] [url=http://coreg.top/]coreg cr 10mg[/url] [url=http://erythromycin-500-mg.science/]erythromycin cream[/url] [url=http://buy-indocin.review/]learn more[/url]

  • [url=http://buy-serpina.stream/]serpina[/url] [url=http://buynexium.link/]buy nexium[/url] [url=http://lipitor.red/]lipitor[/url] [url=http://pfizerviagra100mg.webcam/]pfizer viagra 100mg[/url]

  • [url=http://tetracyclineantibiotics.bid/]tetracycline antibiotic[/url] [url=http://zoloft.club/]zoloft[/url] [url=http://zofran.club/]buy zofran online[/url] [url=http://bupropiononline.trade/]bupropion online[/url] [url=http://buy-amitriptyline.link/]buy amitriptyline[/url] [url=http://viagraforsale.cricket/]viagra[/url]

  • образец регламента по трансфертному ценообразованию, реферат на тему секс спид и безопасность, [url=http://nasheschaste.ru/2016/07/04/%d0%ba%d0%be%d0%bd%d0%b4%d0%b8%d1%86%d0%b8%d0%be%d0%bd%d0%b5%d1%80%d1%8b-%d0%bc%d0%b8%d0%b4%d0%b5%d0%b0-%d0%b8%d0%bd%d1%81%d1%82%d1%80%d1%83%d0%ba%d1%86%d0%b8%d1%8f-r07-bge]http://nasheschaste.ru/2016/07/04/%d0%ba%d0%be%d0%bd%d0%b4%d0%b8%d1%86%d0%b8%d0%be%d0%bd%d0%b5%d1%80%d1%8b-%d0%bc%d0%b8%d0%b4%d0%b5%d0%b0-%d0%b8%d0%bd%d1%81%d1%82%d1%80%d1%83%d0%ba%d1%86%d0%b8%d1%8f-r07-bge[/url], образец регистра налогового учета по ндфл за 2012 год, державна реестрацийна служба укра ни бланк на випыску, ачф [url=http://nevelir.ru/953-%d0%b4%d0%b5%d0%b7%d0%b8%d0%bd%d1%84%d0%b8%d1%86%d0%b8%d1%80%d1%83%d1%8e%d1%89%d0%b8%d0%b5-%d1%81%d1%80%d0%b5%d0%b4%d1%81%d1%82%d0%b2%d0%b0-%d0%b2-%d0%b2%d0%b5%d1%82%d0%b5%d1%80%d0%b8%d0%bd%d0%b0]http://nevelir.ru/953-%d0%b4%d0%b5%d0%b7%d0%b8%d0%bd%d1%84%d0%b8%d1%86%d0%b8%d1%80%d1%83%d1%8e%d1%89%d0%b8%d0%b5-%d1%81%d1%80%d0%b5%d0%b4%d1%81%d1%82%d0%b2%d0%b0-%d0%b2-%d0%b2%d0%b5%d1%82%d0%b5%d1%80%d0%b8%d0%bd%d0%b0[/url], образец письма об ошибке в счете, пояснительное письмо о задолженности по ндфл 2 образец, [url=http://new-obojka.ru/2016/08/13/5155/prezentaciya-na-temu-prazdnik-ivana-kupala]http://new-obojka.ru/2016/08/13/5155/prezentaciya-na-temu-prazdnik-ivana-kupala[/url], инструкция самсунгуе40н6400 на русском

  • [url=http://buybuspar.online/]buy buspar[/url] [url=http://azithromycin500mg.science/]azithromycin[/url] [url=http://amitriptyline-online.gdn/]amitriptyline online[/url] [url=http://buy-cafergot.kim/]buy cafergot[/url]

  • Construct your answer in a positive manner and make sure it is a work-skill related Example: "I tend to overfocus on tasks and sometimes lose track of other things going on in the When working on I make sure to set benchmarks to get up, check out what else may need my attention, and address anything before I return to my primary

  • many thanks

  • I see you don’t monetize your website, don’t waste your traffic, you can earn additional bucks every month
    because you’ve got hi quality content. If you want to know how to make extra bucks, search for: best adsense alternative Dracko’s tricks

You can follow any responses to this entry through the RSS 2.0 feed.