Why does the request mask deny only work on the first link ? / Почему отказ в маске запроса работает только для первой ссылки?
-
[ENG] As you can check by yourselves with these simple lines, the request mask deny only work on the first load. On the second load we can clearly see the images. I tested pretty much every combinaison but it still doesn't seem to work. Is it a bug ? Am I doing this wrong ?
[RU] Как вы можете сами убедиться с помощью этих простых строк, запрет маски запроса работает только при первой загрузке. При второй загрузке мы можем четко видеть изображения. Я проверил почти все комбинации, но, похоже, они все еще не работают. Это ошибка? Я делаю это неправильно?
image url
-
@support is this a bug ?
-
@thotho
добавь файл проекта а не скриншот, так быстрее будет проверить. Лень повторять по скриншоту.
-
@kingsize как видите не работает. Изображение продолжает загружаться. Есть что-то, что мне не хватает?
-
Вам нужно использовать действие "Запретить запрос"("Request mask deny"). Действие должно быть применено до загрузки страницы.
request_mask_deny.xml
-
Я думаю, видео лучше объяснит, с чем я столкнулся. Если вы посмотрите видео, то увидите, что первая маска отказа работает, а вторая нет. И при перезагрузке первый уже не работает. Интересно, я что-то не так делаю или это баг? Я пробовал по-разному, но все еще не могу понять, что делать, чтобы заблокировать .jpg на всех ссылках.
-
Кстати, спасибо за ваше время, я очень ценю это. Извините за плохой русский, я пользуюсь гугл-переводчиком, и он не такой точный.
-
Попробуйте запретить загрузку изображений с папки сайта.
Как видно по ссылке аватарки "https://e-cdn-images.dzcdn.net/images/artist/5c2f777d7491c9e156f41175c4efbf1a/264x264-000000-80-0-0.jpg"
Поставьте images в запретить запрос.
-
@Dodok said in Why does the request mask deny only work on the first link ? / Почему отказ в маске запроса работает только для первой ссылки?:
Попробуйте запретить загрузку изображений с папки сайта.
Как видно по ссылке аватарки "https://e-cdn-images.dzcdn.net/images/artist/5c2f777d7491c9e156f41175c4efbf1a/264x264-000000-80-0-0.jpg"
Поставьте images в запретить запрос.Если я правильно понимаю, вы нашли решение вручную заносить каждое изображение в черный список. В некоторых случаях это может работать, но проблема в том, что я просматриваю сотни ссылок в боте с большим количеством динамических изображений, поэтому я не могу нацелиться на них все.
-
@thotho said in Why does the request mask deny only work on the first link ? / Почему отказ в маске запроса работает только для первой ссылки?:
ешение вручную заносить каждое изображение в черный список. В некоторых случаях это может работать, но проблема в том, что я просматриваю сотни ссылок в боте с большим количеством динамических изображений, поэтому я не могу нацелиться на них все.
Еще раз, я не предлагаю в ручную вносить каждую ссылку.
Once again, I do not suggest manually entering each link.Посмотрите на маску, она затрагивает не формат файла .jpg, а папку где хранятся вообще ВСЕ ИЗОБРАЖЕНИЯ НА САЙТЕ. Что в разы удобнее и не требует добавлять все форматы в список запретов.
Look at the mask, it doesn't affect the file format.jpg, and the folder where ALL THE IMAGES ON THE SITE are stored in general. Which is much more convenient and does not require adding all formats to the list of prohibitions.
-
@thotho
By the way
Still can't replicate your problem
https://youtu.be/lDD9mjnNkkI
mask-deny-3.xml
-
@Dodok said in Why does the request mask deny only work on the first link ? / Почему отказ в маске запроса работает только для первой ссылки?:
@thotho said in Why does the request mask deny only work on the first link ? / Почему отказ в маске запроса работает только для первой ссылки?:
ешение вручную заносить каждое изображение в черный список. В некоторых случаях это может работать, но проблема в том, что я просматриваю сотни ссылок в боте с большим количеством динамических изображений, поэтому я не могу нацелиться на них все.
Еще раз, я не предлагаю в ручную вносить каждую ссылку.
Once again, I do not suggest manually entering each link.Посмотрите на маску, она затрагивает не формат файла .jpg, а папку где хранятся вообще ВСЕ ИЗОБРАЖЕНИЯ НА САЙТЕ. Что в разы удобнее и не требует добавлять все форматы в список запретов.
Look at the mask, it doesn't affect the file format.jpg, and the folder where ALL THE IMAGES ON THE SITE are stored in general. Which is much more convenient and does not require adding all formats to the list of prohibitions.[ENG]
Thank you very much, it's a much more effective solution, it's true!Unfortunately I have the impression that my BAS has a problem because as @m4zuper shows, it works for him for the 3 links but not for me. It stops working after a link.
I will try on other computers and send a bug report to @support . Anyway, thank you for your time!
[RU]
Большое спасибо, это гораздо более эффективное решение, это правда!
К сожалению, у меня сложилось впечатление, что у моего BAS есть проблема, потому что, как показывает @M4zuper, он работает для трех ссылок, но не для меня. Перестает работать после ссылки.
Я попробую на других компьютерах и отправлю отчет об ошибке в @support. В любом случае, спасибо за ваше время!
-
https://youtu.be/PrJnG_lE2wI
Record mode / Run modeStill not working, definitely a bug
Все еще не работает, определенно ошибка
-
@thotho
Try to use this mask - *image*
-
https://youtu.be/L4I_wVdOvW0
still only works on the first one
-
@thotho said in Why does the request mask deny only work on the first link ? / Почему отказ в маске запроса работает только для первой ссылки?:
https://youtu.be/L4I_wVdOvW0
still only works on the first oneThe action is designed to block the url by mask, the action itself does not block the elements. The image on the page can be installed in different ways without downloading by url. Before talking about a bug, you should check that it is really a bug and the action is not doing the job. To do this, before loading the page, open "Chrome developer tools", select the "Network" tab in it and enable the "Preserve log" checkbox
After that, load all the necessary pages, find a request for an image that has not been blocked, and if the url of this image matches the mask for the action, but it did not block it, then this is really an error
-
Hey @Fox sorry if I did some mistakes, I'm just a beginner at BAS compared to you.
I tried to redo the video showing the logs https://youtu.be/NcIR6jXS8no
I also added a *.jpg mask to make sure it was blocked but still notDoes this video help you understand the issue ?
If you need additional data feel free to askThanks for your time
-
@thotho said in Why does the request mask deny only work on the first link ? / Почему отказ в маске запроса работает только для первой ссылки?:
Hey @Fox sorry if I did some mistakes, I'm just a beginner at BAS compared to you.
I tried to redo the video showing the logs https://youtu.be/NcIR6jXS8no
I also added a *.jpg mask to make sure it was blocked but still notDoes this video help you understand the issue ?
If you need additional data feel free to askThanks for your time
Why do you use the "Cache Mask Deny" action? This action is intended for completely different purposes.
The full url is not displayed on the video and requests are very fast, but I noticed that some jpg files are blockedand some are not
Try using two actions "Request Mask Deny" with masks "
*.jpg
" and "*.jpg*
". If that doesn't help, try reinstalling BAS to another directory.
-
Yeah I tried something with cache mask deny in case it could help
I tried giving you more infos in this video https://youtu.be/dUlaGxK9pqU
I tried your method and it still doesn't work.
I will try reinstalling BAS somewhere else
-
@thotho Hello. did you solve the problem? I think I have it too.