timo-71

Рейтинг
63
Регистрация
19.09.2018
suffix:
Well, let's say cloudflare not take under the protection of a site with wildcard DNS

dns attack on a subdomain

When DNS-attack subdomains attacker sends a DNS-requests for a few random nonexistent subdomains of one site. The goal is to create a denial of service for an authoritative domain name server, which makes it impossible to search for a website with the name server. As a side effect ISP, serving the attacker may also be affected, because the cache will be loaded recursive resolver bad requests.

In general, not talking about it, because ns - cloudflare, ie indirectly protects. And yes * - gray, sayt.ru

png Asset1.png
suffix:
Не секурно (имхо).

ДНС атака на субдомены? Или еще чего нового по теме в этих тырнетах нашлось?

Тем не менее, давно, чуть-чуть не так, как предложено делаю

site.ru A ip

* CNAME site.ru

пока бог миловал.

suffix:
В Битрикс многосайтовость решена например модулем Сайты 24 (который позволяет кучу лендингов создать и управлять ) а в ISPManager есть функционал "Автоподдомены" (в отдельной папке) если их скрестить я думаю всё получится
creativius:
можно с возможностью брать плату за создание блога на поддомене

А это означает, зарегистрировался юзер, закинул денежку и вуаля пупкин.сайт.ру готов к наполнению.

Ну типа lj. Кстати как там?


Неизвестный журнал
Журнал eqeqweeqeqw не зарегистрирован. Вы можете создать журнал с этим именем или переименовать свой аккаунт, взяв это имя пользователя.

[0] => Array

(
[host] => clb.livejournal.com
[class] => IN
[ttl] => 348
[type] => A
[ip] => 81.19.74.1
)
.....
[3] => Array
(
[host] => eqeqweeqeqw.livejournal.com
[class] => IN
[ttl] => 3600
[type] => CNAME
[target] => clb.livejournal.com
)

Похоже CNAME * clb.livejournal.com.

А дальше уже кмс разруливать должна. Начиная с роботс.тхт, не надо один и тот же джиквери с пупкин.сайт.ру, тупкин.сайт.ру, еще 100500 и сайт.ру грузить. Все одинаковое, только с одного места, чтобы 304. Ну и далее по списку.

suffix:
Not in secure (IMHO).

DNS attack on subdomains? Or something new on the subject in these tyrnete found?

Nevertheless, for a long time, a little bit wrong, as suggested doing

site.ru A ip

* CNAME site.ru

until the Lord spared.

suffix:
The Bitrix multisite solved such as modules of the site 24 (which allows a bunch Landing create and manage) and ISPManager is a functional "Avtopoddomeny" (in a separate folder) if they cross, I think everything will
creativius:
possible with the ability to charge for setting up a blog on a subdomain

This means registered user, a money slung and viola pupkin.sayt.ru ready for filling.

What type of lj. By the way how is it?


Unknown magazine
eqeqweeqeqw magazine is not registered. You can create a magazine with the same name or rename your account, taking the user name.

 [0] => Array 
(
[Host] => clb.livejournal.com
[Class] => IN
[Ttl] => 348
[Type] => A
[Ip] => 81.19.74.1
)
.....
[3] => Array
(
[Host] => eqeqweeqeqw.livejournal.com
[Class] => IN
[Ttl] => 3600
[Type] => CNAME
[Target] => clb.livejournal.com
)

It seems CNAME * clb.livejournal.com.

And from then on MMR must resolve. Starting with robots.tht, it is not necessary the same with dzhikveri pupkin.sayt.ru, tupkin.sayt.ru even 100,500 and sayt.ru shipping. All the same, with only one place to 304. And the list goes on.

suffix:
вашей любимой CMS написать модуль для взаимодействия с ISPManager

А как ваша любимая кмс поймет, какой контент отдавать на blog1.site.com

и какой на blog2.site.com

suffix:
your favorite CMS to write a module for interfacing with ISPManager

What is your favorite MMR understand what content to give blog1.site.com

and what to blog2.site.com

Miracle:
Подскажите пожалуйста по этим вопросам.

Если не крон пользователя (crontab -e), то надо указывать пользователя

Denzel82:
Miracle, попробуйте запускать команду от пользователя root
Miracle:
Please tell me on these issues.

If no user crowns (crontab -e), it is necessary to specify a user

Denzel82:
Miracle, try to run the command as root
hakuna matata:
что это не тот форум для такого уровня.

Так уровень надо повышать. Так что тема годная.

hakuna matata:
this is not the forum for such a level.

So it is necessary to raise the level. So the issue fully.

hakuna matata:
Высосали задачу из пальца и пишете новое решение, хотя все давно написано и либы давно есть.

К теме относиться надо как разминка, тем кому интересно. Ну и обмен мнениями, для тех кто not

hakuna matata:
что я не программист

А так, вот смотрите:

hakuna matata:
Их в гугле полно https://github.com/salsify/jsonstreamingparser

"require": {

"php": "^7.2",
"twig/twig":"^2.0",
"box/spout": "^3.0",
"endroid/qr-code":"*",
"salsify/json-streaming-parser":"*"
},

Впендюриваем

header('content-type:text/plain');

$testfile = '/var/web/aio/data/json';
$listener = new \JsonStreamingParser\Listener\InMemoryListener();

logger( 'Before JsonStreamingParser\\Parser ' );
print_r( end($GLOBALS['aapp_timing'] ));
$stream = fopen($testfile, 'r');
try {
$parser = new \JsonStreamingParser\Parser($stream, $listener);
$parser->parse();
fclose($stream);
} catch (Exception $e) {
fclose($stream);
throw $e;
}
logger( 'After JsonStreamingParser\\Parser ' );
print_r( end($GLOBALS['aapp_timing'] ));

var_dump($listener->getJson());

Оно еще ничего не делало, ($listener->getJson() после логгера), просто инициализировалось, но добавило 243.5660(ms) и 4+ метра

Array

(
[msg] => Before JsonStreamingParser\Parser
[afterstart] => 3.1090(ms)
[afterprevios] => 0.0880(ms)
[mem_peak] => 0.51/2.00(mb)
)
Array
(
[msg] => After JsonStreamingParser\Parser
[afterstart] => 246.6750(ms)
[afterprevios] => 243.5660(ms)
[mem_peak] => 5.21/4.00(mb)
)
array(10000) {
[0]=>
array(2) {
["id"]=>
int(21675)
["scores"]=>
float(0.27687288427211)

Код функции логгер:

function logger( $message )

{
if(!_DEBUG) return 0;
if( !array_key_exists( 'aapp_timing', $GLOBALS ) ) {
$GLOBALS['aapp_timing'] = [];
$last = $GLOBALS['aapp_last_timing'] = _STIME;
} else $last = $GLOBALS['aapp_last_timing'];
$t1 = microtime(true);
$m = (memory_get_usage() / 1024) / 1024;
$mp = (memory_get_peak_usage(true) / 1024) / 1024;
$m = sprintf("%01.2f/%01.2f(mb)", $m, $mp);
$GLOBALS['aapp_timing'][] = [ 'msg' => $message,
'afterstart' => __timer( $t1, _STIME ),
'afterprevios' => __timer( $t1, $last ),
'mem_peak' => $m
];
$GLOBALS['aapp_last_timing'] = $t1;
}
png hakuna.png
Всего: 541