Архив рубрики: Публикации

WordPress xml-rpc: protection against bruteforce

Since WordPress 3.5, any installation has xml-rpc enabled by default, which is a very useful thing that allows you to use mobile apps to maintain your site, among other things.

 

However, the use of xml-rpc is a huge black hole, attracting rogues of all stripes, which massively start bruteforcing your cozy site; I felt it on my skin, when the load on the hosting has increased by half.  So I disabled xml-rpc a long time ago and lived happily ever after.

 

But still the moment of truth came and after I bought a new Android phone, the Thing immediately started to master mobile WordPress. I had to turn this xml-rpc on; immediately the attacks began. In the end, the easiest solution was to create a white list of IP addresses to access the file xmlrpc.php

 

How to do this:

Читать

Windows 7 завис поиск обновлений

Переустановил Windows 7. В итоге, вм6есто того, чтобы подарить мне шустрость пчелы, эта собака мелкософтовая заснула, проверяя обновления. Несколько часов спала – и нифига. Комп мощный, но обновления проверяются и проверяются… проверяются и проверяются…. Убиться можно.

Проблему как только не пытался решить. И наконец удача!

Решение проблемы с обновлением Windows 7: Читать

Выбор веб-сервера для WordPress под Windows

Бывают ситуации, когда интернет-сайт должен хостится на Windows Server. Это довольно редкий случай, но со мной это недавно произошло (первый раз за дюжину лет работы с веб-серверами): нужно было организовать хостинг сайта на железяке, где уже крутились всякие сервисы.

Первый вопрос, который встает – а какой собственно веб-сервер использовать? Можно, конечно, наколупать все на чистом Apache, но вручную все устанавливать и настраивать лень, тем более для относительно небольшого проекта.

Есть дохуятро готовых сборок – от знакомого многим Денвера и Open Server до 100500 вариантов *AMP’ов. Читать

What do you program in Python? Real-world applications with library examples

When I started learning Python, I got curious about what people write in this language. If you look at it from a general perspective, it seems like Python is used everywhere – it’s such a super universal language that you can write computer games, create a social network with pictures, make a website, and whatever else you want. Just learn Python and you can program whatever you want,

anything you want. It’s like saying that it’s like an entire house is built out of plaster… it’s only covered in plaster, but it’s built with concrete, for example. Python is plaster in that sense.

Читать

Выравнивание текста по ширине WordPress

В новых версиях WordPress разработчики почему-то убрали кнопку ‘выравнивание по ширине‘ или в разметке html атрибут align=justify. При наборе текста поста бросается в глаза неаккуратность форматирования, если весь тест прижат к одному краю. Такой стиль иногда выглядит стильно, но в большинство случаев человеку привычно читать текст, выровненный по ширине страницы. Как же это сделать в Вордпресс?

Читать

Upload images from phone to wordpress site

If you write articles on the site from a mobile device, it’s convenient to use the WordPress app. This app has a slightly reduced functionality, you can’t customize your site or make a design through it. But it will be quite handy to write a post with pictures and videos. I noticed an interesting feature when uploading photos from your phone to the site through the application of WordPress, there are two possibilities:

Читать