How to get free WordPress hosting - How to get free WordPress hosting?

How to get free WordPress hosting?

Back in 2010 when I was starting my web development journey, having a website was expensive, especially on a high-school student budget. I had plenty of dumb ideas, and no money to realize all of them (thank God 🙏). So I was looking for shortcuts to save on a domain name and hosting. I will … Read full article →

wordpress salts generator tool - WordPress Salts and Security Keys Generator Tool

WordPress Salts and Security Keys Generator Tool

WordPress salts are a security feature in the WordPress platform that helps protect your website from malicious attacks. They are a series of random strings of characters that are added to the password hashing process, making it more difficult for hackers to crack your passwords. There are several reasons why it is important to change … Read full article →

Enable HSTS Preload for a WordPress website - Enable HSTS Preload for a WordPress website

Enable HSTS Preload for a WordPress website

To enable HSTS Preload on a WordPress website (https://hstspreload.org/?domain=wpxss.com) you need to add the following code snippet in the .htaccess file: If you have access to the server settings *(You are using a VPS or DEDICATED server) then you can enable it server-wide for all domains by adding the snippet to the /etc/apache2/conf.d/includes/pre_main_global.conf file TIP: … Read full article →

prevent xss - ⚠️ What is Cross-site scripting (XSS) and How to prevent WordPress XSS attacks

⚠️ What is Cross-site scripting (XSS) and How to prevent WordPress XSS attacks

The most regularly seen attack type is script injection (XSS attack), rogue scripts are injected into the webpage for malicious purposes. This includes redirects to third-party websites, collecting user data, downloading malware to visitors, etc. WordPress has a bunch of useful developer functions that are used to sanitize data (Validating Sanitizing and Escaping User Data) … Read full article →

Delete unused images in WordPress using WP CLI - Delete unused images in WordPress using WP CLI

Delete unused images in WordPress using WP CLI

This small script uses a for loop to delete one post ID at a time, it will go through the database and list all media files uploaded in the provided data range that are not used inside posts. Change the date range according to your needs.