July – more of the same

hot dog, terra seca, Belmonte, Luz de Tavira, Algarve, POrtugal
Hot days

Yes, it’s still very hot and dry with over 30ÂșC almost daily. Bonji cooled off in the Ria Formosa last week. We really must go more often.

yellow plums, ameixa amarelo, Belmonte, Luz de Tavira, Algarve, Portugal
yellow plums / ameixa amarelo

On the fruit front. Life is not a peach this year. Hardly a peach to be had. The plums are less but we have some which is good. I had to pick all my black plums (ameixa preta) early. Had I waited for them to sun ripen there wouldn’t have been any – insects, birds and rats. I was grateful to have got some yellow plums despite the infection and the fact that that were only a few of these growing.

Santa Rosa ameixas, plums, organically grown, Belmonte, Luz de Tavira, Algarve, Portugal
Santa Rosa?

I can’t remember but I think they are the Santa Rosa variety (red outside and yellow on the inside). These will be the last of the plums.

grapes, uvas, Italia variety / Italia varidade , Belmonte, Luz de Tavira, Algarve, Portugal
Italia variety / Italia varidade

A grape vine is helping with the fruit supply. Italia variety which is a good table variety and the grapes are ripening nicely. Once again the vine grew quite wild, mostly up an almond tree. This had been sort of the plan :). I must make an effort to train it better for the coming year.

Mango - Kent variety, Belmonte, Luz de Tavira, Algarve, Portugal
Mango - Kent variety / Manga varidade Kent

The mango tree managed to survive the winter. You really have to protect all of the leaves ( cover in plastic sheeting) to avoid die back. The pears are sweet but still miniature. Definitely bigger than last year so they are getting there. I lost one apple tree. I haven’t increased the amount of irrigation water to the trees this year but I think it was more due to the heat. The transplanted olive trees are struggling too. Especially those I water just once a week.

potatoes / batatas, Belmonte, Luz de Tavira, Algarve, Portugal
potatoes /batatas

The potatoes were very good! I can definitely produce a couple of sacks full. You just need very rich soil and then have to keep it constantly moist. I need a better tool to dig them up as the fork spears them. The potato plants flowered and had fruit. Like little potatoes. Not sure what they can be used for. I tried replanting a few of the rooted stems to see if they would grow but this was not successful.

purselain /erva, Belmonte, Luz de Tavira, Algarve, Portugal
purselain /erva

The spinach failed to germinate. But the weed purslaian appeared so is helping with the greens. This with sweet potato leaf. The cabbage seeds failed to germinate too. I was surprised as they usually pop up. Only have half a dozen stalks of corn this year growing. The seed collected from last year’s crop didn’t germinate very well.

That’s all for now. The olives are still growing slowly and the LE 300 wind turbine is still turning. 🙂 Ria Formosa, Belmonte, Luz de Tavira, Algarve, Portugal

June Continues

Dogs in Ria Formosa, Belmonte, Luz de Tavira, Algarve, Portugal good for kayaks
wachoro in the Ria Formosa, Algarve, Portugal

Certainly hot today with a maximum of 34ÂșC predicted. Good for the tourists and tourism. 🙂 Managed to take the ‘choros for a dip in the Ria Formosa this week. They loved it! Unfortunately I cannot take all three on long walks in case we get ambushed by unaccompanied dangerous dogs. So we stay close to home as a norm.

Ria Formosa, Belmonte, Luz de Tavira, good for kayaks
The wachoro having a splash in the Ria Formosa
Ria Formosa, Belmonte, Luz de Tavira, good for light tackle fishing
The terrible two, Ria Formosa

The tomatoes have been a bit disappointing. From a dozen plants I have managed a dozen tomatoes. They are of a decent size but definitely could have been better in terms of quantity.

Tomatoes, short bush variety,
Tomatoes, short bush variety
Tomato - grown in a control pot, Belmonte, Luz de Tavira, Algarve
Tomato- grown in a control pot

Been irrigation my clump of lemon grass with a hose pipe. It hasn’t dried out. Lemon grass tea is all I got at the moment.. :). I haven’t seen a tea bag for over two years. Shocking. Still drinking four cups of coffee a day to keep the brain going.

lemon grass / Principe, Belmonte, Luz de Tavira, Algarve
lemon grass / Principe

My path lined by guava trees. They are beautiful trees and provide some nice shade. I am growing one more in the front and that will be it. Making guava jam or perad (guava cheese) is hard work :).

guava tree lined path /caminho com guababeiras, Belmonte, Luz de Tavira, Algarve,
guava tree lined path /caminho com guababeiras

Still in plum with a few yellow plums now. Besides the infection the birds are wrecking a lot of destruction. I will try some hanging tins.

The submersible Titan is on my mind. The Pakistani Billionaire would have been better off taking his son, Suleiman, kayaking or scuba diving in Portugal. The other three were professional adventurers and fully understood the risks. The deep is largely unexplorered and unknown. Whales have been known to ram ships so the Titan could have suffered some external form of impact that led to the catastrophic structural failure. I am sure the facts will become known by and by. And it right that search and rescue teams spent a lot of money and time trying to locate the sub. Even though the company were very cavalier and irresponsible in not fitting a surface beacon and a self-surfacing emergency beacon to the sub.

That’s all for now. Thank you for having a look. 🙂

Influencer Jéssica Riço, Jéssica Alexandra Riço, jessica-riço on Peoople

Summer is here!

It really feels like mid June now. These last couple of days have been extremely hot with today’s indoor temperature in excess of 33ÂșC. It will probably be like this for the next month or so.

Apricots / Damascos, Belmonte, Luz de Tavira, Algarve , Portugal
Apricots / Damascos

So I had a few apricots. I thought I wouldn’t have got any this year, so I was pleased.

ameixas mais cedo, Belmonte, Luz de Tavira, Algarve , Portugal
early plums / ameixas mais cedo

Had my first plums this week. The are a small variety. Good but acidic so you can only eat a few at a time. The mid summer variety plums will be coming online soon.

composting toilet, Luz de Tavira, Algarve , Portugal
Composting Toilet

Been using the potty for about three months now. I had almost forgotten about it. Used it when I first came here in 2014-15. I quite like it. It is 100% ecological – goes to compost. It okay if you are just one person using it. The flushing toilet blocked and I haven’t had time to sort it out.

one of the grapevines / uma videira,  Belmonte, Luz de Tavira, Algarve , Portugal
one of the grapevines / uma videira

The grapes are coming along.

potatoes / batatas,  Belmonte, Luz de Tavira, Algarve , Portugal
potatoes / batatas

The potatoes are doing very well. I am really pleased. I sowed some sweetcorn from seed collected from last year’s crop but on very few germinated. And shockingly only of a dozen bought pumpkin seed germinated.

Been eating a bit of sweet potato leaf (red variety) mixed in rice and pasta. Chalini had given me the shoots a few years ago. Doesn’t seem to upset my stomach this time round.

The lemon trees are growing a lot better. Besides adding a bit a horse manure compost bought in bags from the Cooperative store in Monscarapacho I have been putting in diluted vinegar. This to increase the soil acidity. At the moment 200ml cider vinegar to 4 litres of water seems to bring down the pH by 0.5. As Christine Shinn advised me a few years back pine needles composted around the trunks is a better long term solution. I plan to implement this.

nespiras / loquat trees ,  Belmonte, Luz de Tavira, Algarve , Portugal
nespiras / loquat trees

I have been surprised to find out that nespiras (loquat trees) do very well in semi arid conditions. I water these just once a week and they are growing well. One 3 year old fruited this year. They seem to grow better than the olives I on the same irrigation cycle.

young olive trees /oliveiras jovems, Belmonte, Luz de Tavira, Algarve , Portugal
young olive trees /oliveiras jovems

The young olives are growing - some better than others :).

Wild thyme / tamilo, honey bees,  Belmonte, Luz de Tavira, Algarve , Portugal
Wild thyme / tamilo

Wild thyme for a good time 🙂 The bees love it. use in in rice which cooks very well on the 500W hot plate 'Justin' Beper running on Solar P.V.

boundary post / poste de fronteira, ZR , Zephyr Rodrigues ,  Belmonte, Luz de Tavira, Algarve , Portugal
boundary post / poste de fronteira

This is one of my four boundary posts bearing my initials ZR. These mark out my property. If anyone claims or implies anything else – this is false.

That’s all for now. Thank you for reading!

References:

How to make soil more acidic: 7 ways to amend your soil's PH |

Influencer Jéssica Riço, Jéssica Alexandra Riço, jessica-riço on Peoople

Hot and dry

Terrano Bonito

Hot and dry- but rain promised over the next few days - if the BBC have got it right :). I have been busy clearing the land to comply with the law to reduce the risk of bush fires. I feel I am in a good place now. It was a bit challenging as I had only the Bosch strimmer to work with and a large area to cover. I should have invested in better tools and machinery when I was able but I did not have the experience and knowledge at the time.

The Bosch AFS-23-37 is an outstanding strimmer. Bosch can be proud of themselves. I have certainly pushed it to the limits of it’s standard specification and it has managed to cope admirably. I am using heavier 4mm gauge nylon cord and it didn’t complain. It’s on it’s 3rd year warranty. The motor will eventually burn out but it’s all good for now. I can highly recommended this electric strimmer/brush cutter.

Bosch AFS-23-37, , Solar P:V, Belmonte, Luz de Tavira, Algarve, Portugal
Bosch AFS-23-37 running on Solar energy.

Manual irrigation takes up a lot of my time now. But I had expected this as a lot of my trees do not have a drip feed irrigation system. I am also trying to train the young olives I have recently planted and still planting , to become drought resistant.

O tempo a terra Ă© mais seca, manual irrigarion of young olives, Belmonte, Luz de Tavira, Algarve, Portugal
O tempo a terra Ă© mais seca

I had some favas (broadbeans). About half the amount I had last year from the same area and amount of seed. I planted the second batch a bit late and there was hardly any rain in spring.

favas / broadbeans , Belmonte, Luz de Tavira, Algarve, Portugal
favas/ broadbeans

I had a decent amount of louquats/nespiras from two small trees. Not sufficient for jam though. I have another 2 trees growing so hopefully I will have more later on. And my sister thought it was all rubbish 🙂 Bless.

nespira/louquat e flores da ameixa preta ĂĄrvore Belmonte, Luz de Tavira, Algarve, Portugal
louquats/nespira e as flores de ameixa preta ĂĄrvore.

The variety of louquat ‘Americana’ produces very large pear shaped louquats. I got the tree from the senhora’s stand at the monthly market in Monscarapacho a few years back. I will try to graft it. Speaking of grafting I am trying to top graft my carobs – again. Fingers crossed.

Monscarapacho first Sunday of the month, monthly market. Comprar ĂĄrvores e muito mais. - Feira - Monscarapcho
Nespira americana

Something went wrong with the almonds and apricots this year. I am not sure if is all over the Algarve. The trees did not flower for some reason and as a result there are hardly any apricots or almonds to be had. Thankfully I have a couple of sacks of almonds in reserve. I have become used to having almonds in my porridge, making cakes with almonds and of’course almond toffee. 🙂

To break the almonds I am using this hand tool by "Dali Nut" I got from amazon. Fitted a rubber cushion to make the stroke a bit shorter. This tool works really well. Nut by nut 🙂 .

"Dali-Nut" feremente para quebra as  amÊndoas, Belmonte, Luz de Tavira, Algarve, Portugal
"Dali-Nut" nut cracker - quebra as amÊndoas noz com noz 🙂

Tomatoes aren’t going well. They started off very well but then petered out. The two control plants I kept growing in pots under some shade are wilting too. It doesn’t look like it is due too a lack of water, so I am stumped.

Popped some potatoes in the ground after watch a video by Alan Titchmarsh on Gardeners’ World. They are growing very well. I just keep the soil consistently moist. I have no idea what variety they are. Got them from the local supermarket in Fuseta. They don’t seem to mind the heat.

potatoes, batatas - Belmonte, Luz de Tavira, Algarve, Portugal
potatoes and the lemon tree is growing much better.

I have a few pepper and chilli plants in the greenhouse in pots. They are doing well.

pimentas/peppers - Belmonte, Luz de Tavira, Algarve, Portugal
pimentas/peppers

Been getting by eating my weeds. 🙂 Wild fennel and wild oniony things were to be had in spring. Now there is Portuguese basil (manjericão) that grows like a weed. Less this year due to the dry conditions. I have to grow some in pots to ensure a regular supply . I got these from amigo Jorge and his parents up north.

funcho selvagem e tipa alho frances selvagem Belmonte, Luz de Tavira, Algarve, Portugal
funcho selvagem e tipa alho frances selvagem? o_O 😀 Yes, wild fennel and oniony things

This is 100% organic growth. 🙂 Not growth through an acquisition. I have grown these persimmon trees from seed as well as a couple of guava trees. It will take them about four years before they fruit. I like permission more in comparison to guavas because they are tasty to eat and easy to process. Separating the seeds from the flesh of guavas is hard work. If anyone knows of a good method - please do tell!

diospiros de sementes/persimmons from seed, Belmonte, Luz de Tavira, Algarve, Portugal
diospiros de sementes/persimmons from seed

and finally

espero por meu girrasol em Belmonte, Luz de Tavira, Algarve, Portugal
meu girrasol ÂŽta bonita - aquela Bonji tambĂ©m 🙂

  

jessica-riço, Jéssica Riço, Jéssica Alexandra Riço, - Good Girl -Carolina Herrera, Algarve, Portugal

Setting up SSL/HTTPS in WordPress Manually

Prerequisites: A web server with SSL enabled. This method requires you to troubleshoot issues manually and edit WordPress files. However this is a permanent and more performance optimized solution. Performance gains are due to the fact the requested content does not have to be parsed by an additional plugin before it is displayed in the web page. In addition, it gives you more control over your website's security.

Steps

  1. Log into the WordPress Dashboard.
  2. Roll your mouse over Settings in the navigation menu, then click General.
  3. In the WordPress Address (URL) field, enter your https address.
  4. Enter your https address in the Site Address (URL)  field. 
  5. Click the Save Changes button on the bottom of the screen. 

Note: If you get an error to the effect of "Error connecting to web server" after savings the changes - the problem lies at the hosting provider's end . Some hosting providers use a different IP for hosting http: and https: and you will have to ensure the "A" record of your https domain is pointing to the correct one.

Next, you need to set up WordPress redirects from HTTP to HTTPS by adding the following code to your .htaccess file.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

If you want to force SSL and HTTPS on your WordPress admin area or login pages, then you need to configure SSL in the wp-config.php file. Simply add the following code above the "That's all, stop editing!" line in your wp-config.php file:

define('FORCE_SSL_ADMIN', true);

This line allows WordPress to force SSL / HTTPs in WordPress admin area. Once you do this, your website is now fully setup to use SSL / HTTPS, but you will still encounter mixed content errors.

Mixed content errors are caused by sources (images, scripts, or stylesheets) that are still loading using the insecure HTTP protocol in the URLs. If that is the case, then you will not see a secure padlock icon in your website’s address bar. The majority of these incorrect URLs will be images, files, embeds, and other data stored in your WordPress database.

What you need to do is find all mentions of your old website URL in the database that starts with http and replace it with your new website URL that starts with https .

You can do this by installing and activating the “Better Search Replace” plugin. However, The free version of the "Better Search and Replace" plugin is not useful and even harmful as you cannot see what changes have been made. I used the “Search & Replace” plugin by Inpsyde GmbH. It is not supported anymore but works in WordPress 6.1.1

      

Credits

https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/

Wintery January

It is green here but cold. On some days I keep the home fire burning all day. No quite sub zero but we have had morning frosts and it's predicted to get colder next week. I often wonder how people back in the UK are getting on. My gut feeling is that many struggle to keep warm. I don’t think electrical heating is an affordable option anymore in Portugal. Trying not to be political here, but it appears to me that some governments are committed to imposing higher energy and food prices on the people so that they can keep the war going in Ukraine.

Even with the exorbitant prices of electricity it’s worth investing in an electric blanket. The parents of my Portuguese friend, Jorge, understood that I would not survive in my badly insulated cottage. Very kindly they gave me one. It served me well for years but conked out last winter. I got a Russell Hobbs 90W double electric blanket from amazon.co.uk which really helps me through the cold nights.

Besides the small amount of wood I bought, I am managing to get by with wood collected from pruning my trees. The problem is that I now have mainly green wood to burn. This means low caloric value , not to mention being trickier to get the fire going in the first place.

Favas and LE 300 wind turbine,Belmonte, Luz de Tavira, Algarve, Portugal
Favas and LE 300 wind turbine

Sowed my favas (broadbeans). We need some rain now. The LE 300 wind turbine is doing it’s bit to keep the lights on.

Burning piles of cut branches, Belmonte, Luz de Tavira, Algarve, Portugal
Burning piles of cut branches

Managed to burn the first lot of my piles of brush. You have to schedule it via the ICNF online system now.

hedgehogs

The burnings made some hedgehogs homeless. I have built them a dedicated brush pile to serve as their home. There seem to be quite a few hedgehogs at my place. Conan and Chubbs find them on our night walks and I give them a tickle. I probably will give them a snack of dog food like ClaĂșdia Afonso does up in the north.

Hedgehog House / Casa do ouriço,Belmonte, Luz de Tavira, Algarve, Portugal
Hedgehog House / Casa do ouriço

Still pruning the old almond tree slowly. I don’t think I will cut it right down as I have seen an owl nesting in it. The 12” , 36V Wesco 8303 battery powered chainsaw is doing an outstanding job. It cuts through 6 inch almond trunks without any quibble. I put a little extra oil on the chain before I start on dry wood and larger pieces to prolong the life of the chain and bar.

Wesco 8303 battery powered chainsaw sectioning 6inch almond trunk, Belmonte, Luz de Tavira, Algarve, Portugal
Wesco 8303 battery powered chainsaw

                                                                                               

coasters of almond wood, Belmonte, Luz de Tavira, Algarve, Portugal
making coasters of almond wood

Almond is a pretty wood. I cut a couple of thin sections to act as coasters. I think the orangy colour will fade as they dry.

Almond toffee /doce de amĂȘndoa, Belmonte, Luz de Tavira, Algarve, Portugal
Almond toffee /doce de amĂȘndoa

Still breaking my almonds slowly with the hand tool by Dali Nut. It is very good. I try to put in 30 minutes a day of this. I make small batches of almond toffee which is excellent. I first made some back in 2015 for meu girrasol, JĂ©ssica. :).

Orange cake /bolo de laranja, Belmonte, Luz de Tavira, Algarve, Portugal
Orange cake /bolo de laranja

Made an orange cake after a long time. I cheated and used lemony lime juice instead of orange juice as I ate the oranges. Algarve oranges are quite sublime if you get hold of good ones and not those force grown. I used candied orange peel in the mix. You can’t taste the lime at all which is perfect. It is a bit crumbly as I didn’t use any eggs, just a bit of olive oil. I am trying to find an alternative binder. Still no oranges of my own but I am hopeful.

Until the next blog. 🙂

Christmas Day

Christmas at Belmonte, Luz de Yavira, Algarve Portugal, Port wine and Bolo do Natal
Port wine and Bolo de Natal

Has been all change. I haven’t got the crib out of the box and couldn’t find the Christmas lights. It’s not really a problem as we are home and I have tonnes to do.

Been busy with the pruning some olives today and Christmas Eve. I have real cypress Christmas trees but saw no point in expending time and energy to decorate one.

pruning olives, Wesco 8393 battery powered chainsaw, Belmonte, Luz de Tavira, Algarve , Portugal
Pruning with the help of the Wesco 8303

This is my nominated Christmas tree instead. Holmoak (Azeinheiro). It was about my height in 2014 and is now over five metres tall with a decent spread.

 Holmoak/Azienheiro, Belmonte, Luz de Tavira, Algarve , Portugal
nominated Christmas tree - Holmoak/Azienheiro

I bought about 90 kgs of holmloak for firewood. 30 cents a kilogram. Burns slowly giving off a consistent amount of heat. I aim to get the rest of the firewood I need from around my property. I have enough trees. I am a bit late as the Stihl 370 chainsaw is out of action. I got the Wesco 8303 to help out. And it really does.

So we are home for Christmas. No traditional Goan Christmas sweets :). I did try to make some Perad (guava cheese) but it set too soft. I have to eat it with a spoon. Still very good. I hope to get it right next year. Made some very good guava jam.

So I got a traditional Portuguese Christmas cake (Bolo de Natal) and some Port :). The cake is covered in a variety of glazed fruit and has nut and raisins in it. Very good.

I finally ran out of fresh fruit this week. Ate the last of my persimmons. I now have stewed apples – nice with some yogurt. The stewed apples are easy to do and definitely worth the effort. My tangerine tree has failed to produced this year. So looks like there will be no fresh fruit for a few months.

persimmons /diospiros) and stewed apples and yogurt, Belmonte, Luz de Tavira, Algarve , Portugal
last of the persimmons /diospiros) and now stewed apples ans yogurt

Been digging out my will olives slowly. The root ball is about a foot deep in the ones I am tackling. Then you have to severe the usually single, tap root. It’s what keeps the olive tree alive during arid conditions.

Thanks for reading. That’s all for now. Merry Christmas and Happy New Year everyone!

Securing your WordPress site with a little code.

WordPress Brute Force Attacks, WordPress Development
Brute force attempts ro crack passwords

Table of Contents

Introduction.

Limiting the number of login attempts.

Denying xmlrpc Requests.

Hiding your wp-login.php file.

Credits.

Updated: 3rd January 2023

Introduction.

Websites are increasing under brute force hacking attempts and distributed denial of service attacks (DDOS) .

As a WordPress website administrator you can secure your site with a little bit of code if you feel confident enough. There are security plugins for WordPress should you wish to go down that route. I haven’t tried any of them and so cannot make a recommendation. The advantages of not using unnecessary plugins is increased code processing efficiency and hence better performance of a website. In addition there is the benefit from the security perspective of avoiding the possibility of getting stuck with outdated and unsupported plugins.

The three setups described below that I recommend are limiting the number of login attempts , denying xmlrpc requests and hiding your wp-admin.php page.

Ideally, you should not edit the functions.php file of the theme you are using. This is because changes will be lost when the theme is updated by the theme’s developers. Instead you should create a child theme and edit the functions.php of this.

Here is a link on how to create a child theme. https://developer.wordpress.org/themes/advanced-topics/child-themes/

Limiting the number of login attempts.

To do this you can put the following code in your WordPress theme’s functions.php file.

// code to limit no. of login attempts - lock for 30 mins function check_attempted_login( $user, $username, $password ) {
if ( get_transient( 'attempted_login' ) ) {
$datas = get_transient( 'attempted_login' );
if ( $datas['tried'] >= 3 ) {
$until = get_option( 'transient_timeout' . 'attempted_login' );
$time = time_to_go( $until );
return new WP_Error( 'too_many_tried', sprintf( __( 'ERROR: You have reached authentication limit, you will be able to try again in %1$s.' ) , $time ) );
}
}
return $user;
}
add_filter( 'authenticate', 'check_attempted_login', 30, 3 );
function login_failed( $username ) {
if ( get_transient( 'attempted_login' ) ) {
$datas = get_transient( 'attempted_login' );
$datas['tried']++;
if ( $datas['tried'] <= 3 ) set_transient( 'attempted_login', $datas , 1800 ); } else { $datas = array( 'tried' => 1
);
set_transient( 'attempted_login', $datas , 1800 );
}
}
add_action( 'wp_login_failed', 'login_failed', 10, 1 );
function time_to_go($timestamp)
{
// converting the mysql timestamp to php time
$periods = array(
"second",
"minute",
"hour",
"day",
"week",
"month",
"year"
);
$lengths = array(
"60",
"60",
"24",
"7",
"4.35",
"12"
);
$current_timestamp = time();
$difference = abs($current_timestamp - $timestamp);
for ($i = 0; $difference >= $lengths[$i] && $i < count($lengths) - 1; $i ++) {
$difference /= $lengths[$i];
}
$difference = round($difference);
if (isset($difference)) {
if ($difference != 1)
$periods[$i] .= "s";
$output = "$difference $periods[$i]";
return $output;
}
}
// end code to limit no. of login attempts - lock for 30 mins

You can change the lock out time by changing the third argument in the set_transient function which is currently set to 1800 seconds (30 mins.)
This code will stop bots making brute force dictionary attacks on your username and password.

Denying xmlrpc Requests.

XMLrpc is a legacy protocol that used to be used for WordPress ping backs. It relies on transmission of the username and password. So an attacker can use bots to try and gain access to your website by guessing at passwords and usernames.

Another from of attack that uses XMLrpc is DDOS where thousands and even hundreds of thousands of XMLrpc requests are made to a website overwhelming it.

Please refer to the excellent document by SiteGround in the Credits to understand more about the XMLrpc and the vulnerability it poses to WordPress websites.

To disable XMLrpc insert the following code in the functions.php file of your theme.

// refuse XMLRPC requests
add_filter( 'xmlrpc_enabled', '__return_false' );
//end of refuse XMLRPC requests

Important! Make sure you use the correct type of single quotes.

add_filter( 'xmlrpc_enabled', '__return_false' ); will work okay while add_filter( ‘xmlrpc_enabled’, ‘__return_false’ ); will generate Warning: Use of undefined constant ‘xmlrpc_enabled’ - assumed '‘xmlrpc_enabled’' (this will throw an Error in a future version of PHP) in functions.php in a child theme.

You can also add the above code to the wp-config-php file. Add it after the require_once(ABSPATH . 'wp-settings.php'); line. There are a couple more ways to block XMLrpc requests. One being via the web server’s configuration file and the other via a plugin. Please refer to the SiteGround and the debugbar documents.

Hiding your wp-login.php file.

Some experts discourage doing it this as wp-login.php gets updated when the core WordPress version gets updated. If you remember this and update the changes manually this method is fine. It is also inadvisable if your website needs to provide login access to site members other than a handful of admin and authors.

Hiding your wp-login.php is very effective as bots target the wp-login.php either with password crackers or a DDOS attack once they know your website is powered by WordPress. Each wp-login request is costly as as information gets sent to and from the MySql database of the WordPress site.

The steps.

1) Backup your wp-login.php file. Then rename it on the web server.
2) Create a new .php file with a text editor like Notepad, Notepad++, Gedit (on Linux Ubuntu) etc. Name it whatever you want as long as you can remember it when you login e.g foxy-roxy.php
3) Copy all the contents from wp-login.php into foxy-roxy.php or whatever you named the new file. Use Crtl+Alt to select all and Paste.
4) Search and replace every occurrence of wp-login.php with foxy-roxy.php or whatever the file is called. Save the file.
5) The next step is to update the default login and logout URLs This is done via
hooks in the theme’s functions.php .
Add the following code to functions.php of the theme.

add_filter( 'logout_url', 'custom_logout_url' );
function custom_logout_url( $default )
{
return str_replace( 'wp-login', 'foxy-roxy', $default );
}
add_filter( 'login_url', 'custom_login_url' );
function custom_login_url( $default )
{
return str_replace( 'wp-login', 'foxy-roxy', $default );
}

(remember to change ‘foxy-roxy’ to whatever your file is called. )

Add the following code to handle a safe logout and redirect to your home page.

// WP Redirect the user to the homepage after logout add_action('wp_logout','auto_redirect_after_logout');
function auto_redirect_after_logout(){
wp_safe_redirect( home_url() );
exit();
}
//end WP Redirect the user to the homepage after logout

6) Next test your new login page URL. Website name/ foxy-roxy.php. Attempting to login with Website name/wp-login should produce a resource not found error.

7) Finally, delete the renamed wp-login.php from the web server.

Notes: Known vunerabilities with the above method. Due to the login code being hard coded in several places in WordPress , the name of your secret login page can get exposed by calls made wp-admin by an intelligent attacker rather than a bot. I think this can be taken care of by some sort of redirect but I haven't got the time to experiment.

One way to mitigate against this is to limit access to the login process to trusted IPs. This is done by editing the .htaccess file in the root WordPress installation directory and adding the following code. Remember to backup your .htaccess file before editing it.

#Limit access to website administration
<Limit GET POST PUT>
order deny,allow
deny from all
# admins IP
allow from xxx.xxx.xxx.xxx
</Limit>

where xxx.xxx.xxx.xxx is the IP number. You can add as many allow from IPs as you need or allow a whole Class C subnet with allow from xxx.xxx.xxx.0/24

In closing.

These three methods will certainly help secure your WordPress site and help counter the effects of a DDOS attack if you are subject to one.

Credits.

Phpot.com on Limiting the number of login attempts (09/12/2022):

https://phppot.com/wordpress/how-to-limit-login-attempts-in-wordpress/

SiteGround on XMLrpc (09/12/2022): https://www.siteground.com/blog/xmlrpc/#Brute_Force_Attacks_via_XMLRPC

Martin Aronovitch (09/12/2022): https://wpmudev.com/blog/hide-wordpress-login-page/#hidewithoutplugin

Debugbar.com How to block XML-RPC on WordPress 03/01/2023 https://www.debugbar.com/how-to-block-xml-rpc/

It’s a Nutty World

September was mainly about nuts. I picked them one by one, off the ground and trees. It was a slow process but not unpleasant as the ground around the trees was mainly clear. As ClĂĄudia A. mentioned on Facebook, picking nuts is a form of meditation. I may try using nets next year. These are a extra work to move around and can get damaged especially on your own.

Almonds, AmáșŒndoas, Belmonte,Luz de Tavira, Algarve, Portugal, organically grown almonds
Almonds / AmáșŒdoas

I managed to collect 130 kg of almonds this year. Many of the self seeded almond trees have begun producing. I sold about a third and will be using the rest. Definitely making some almond toffee and chopped almonds in breakfast cereal 🙂 . It’s a slow business cracking the almonds nut by nut with a small hand operated machine but far better than using a hammer.

Olives. My olive trees are resting this year. I managed to harvest about 13 kg. I dressed and pickled 3 kg. Could have done with double this amount of unblemished ones to preserve.

Olives for pickling / azeitonas para conserva, Belmonte, Luz de Tavira, Algarve, Portugal
Olives for pickling / azeitonas para conserva

I had a go at trying to make olive oil. I started with about 9 kg of olives. I first mashed them. I found this step to be unnecessary and a waste of my energy.

Home made olive oil attempt / tento fazer azeite caseiro,  Belmonte, Luz de Tavira, Algarve, Portugal
Home made olive oil attempt / tento fazer azeite caseiro

I them blended them for 6 seconds with a bit of water. Two bursts of six seconds for each lot. You have to be careful as the seed (stones) can damage your blades.

blended the olives, olives in a blender, home made oil oil, Belmonte, Luz de Tavira, Algarve, Portugal
blended the olives

An old T-shirt was used to strain the blend. The stones remained mainly whole.

strained blend and residue, home made olive oil, Belmonte, Luz de Tavira, Algarve, Portugal
strained blend and residue

I poured the stain liquid into a plastic bottle to settle. I the squeezed the residue and poured the stained liquid into another bottle.

oil olive settling and seperating into layers , home made olive oil , Belmonte, Luz de Tavira, Algarve, Portugal
oil olive settling and seperating into layers

After 3 weeks I can see about 1 cm of clear olive oil in the 5 litre bottle which is about 0.16 litres. In conclusion the juice is definitely not worth the squeeze and I won’t be doing this again without a press and better filtration.

I harvested all the sweet corn. Pleased with the result considering there were less than a dozen plants. I have collected some seed for next year.

sweet corn / milho , Belmonte, Luz de Tavira, Algarve, Portugal
sweet corn / milho

Had some pomegranates. The variety ‘Asyria’ seems to give better pomegranates. These have a yellowish outer skin and the seeds are pink but still sweet. Pomegranates like the olives, carobs and almonds are drought resistant trees and do well here with minimal irrigation.

Pomegranates / Romas fruit, drought resistant, Belmonte, Luz de Tavira, Algarve, Portugal
Pomegranates / Romas

Had some apples! I have two varieties one is yellowish mild, sweet and non acidic. These here are okay. Their skin has unpleasant flavour – mildly like kerosene (paraffin). I have stewed two kg for winter. It tastes like baby food 🙂 .

apples / maça ,  Belmonte, Luz de Tavira, Algarve, Portugal
apples / maça

Despite a lot of fruit drop, I was surprised that I still got a decent amount of persimmon. They are a delicious fruit. I regret my father did not have a chace to see and try them. I have been getting a stream of about 4 fruit a day for over a month. Going to plant some seeds. Apparently they grow true amd take about 5 years before you get a fruiting tree.

persimmon / diospiro,  Belmonte, Luz de Tavira, Algarve, Portugal
persimmon / diospiro

That’s all for now. The olives grow slowly. I have some to sell for €3 a plant. If you know someone please put them in touch. dev1@bright-work.co.uk

small olive tree / oliveira pequena , oliveiras para vender, olive trees for sale, Belmonte, Luz de Tavira, Algarve, Portugal
small olive tree /oliveira pequena

Towards the end of Summer 2022

It’s a lot cooler which is nice. The average being about 26ÂșC . We had some unexpected rain yesterday which posed a threat to my almond harvest. I am picking these slowly off the trees by hand. I could use a net but I feel it is more work than the task merits. The harvest seems mixed. Some of almonds which were a very good size last year are miniscule this year. While others are fine. Could be due to the drought conditions and extreme heat. The almond trees are not irrigated.

almonds, amendoas, Belmonte, Luz de Tavira, Algarve, Portugal
Almonds / amĂȘndoas

While on the subject of extreme heat, my persimmon (diospiro) trees have dropped their fruit. I don’t think it’s due to lack of water as the leaves are green and growing. Surprisingly, the apples are doing okay. I really expected them to drop all the fruit during the heat wave.

apples / maça, Belmonte, Luz de Tavira, Algarve, Portugal
apples / maça

I have a decent amount of grapes to keep me going at the moment . ‘Italia’ came good despite the vine collapsing due to neglect on my part. The Donna Maria Branca’ are slowly ripening. They are definitely less bunches of this variety this year.

grapes, uvas, Donna Maria Branca variety, Belmonte, Luz de Tavira, Algarve, Portugal
Donna Maria Branca variety

I still have a few plums on one tree. I managed to gain something useful from the black plums (ameixa preta) which were heavily infected with worms. I harvested them early and made some good jam and a lot of compote. Some of the compote borders on jam quality. I used 25% in weight of sugar to the plums. I use the compote in my cooking. In sweet and sour pork, pasta and even rice. I also use it to make a super dip for chips 🙂 .

Super dip – chopped onion and chilli, a bit of chopped basil. I use the manjaricão which grows like a weed. To this I add 2-3 tablespoons of plum compote, a squirt of tomato ketchup and a pinch of black pepper. Sometimes I add a dash of cider vinegar.

I harvested and sold the bulk of my carobs. I had to take them down a couple of sacks at a time, 14 km round trip. It was okay but I hope to find a paid for transportation service for next year.

Pepe Benelli, 50cc two stroke, Belmonte, Luz de Tavira, Algarve, Portugal
Pepe working hard

The maize is still growing well. Fingers crossed!

Maize /milho, Belmonte, Luz de Tavira, Algarve, Portugal
Maize /milho

It’s too late for the melons. The plants are growing and flowering but it will soon be autumn. The olives are growing slowly.. . 🙂 No olives for olive this year as the trees are resting.

melon plants and young olive trees, melĂŁo plantas e oliveiras, Belmonte, Luz de Tavira, Algarve, Portugal
melon plants and young olive trees

Bonji says it'd been a very hot this summer!

dog, cĂŁo, Belmonte, Luz de Tavira, Algarve, Portugal
Bonji