Generate a Self-Signed SSL Certificate for Local Dev aaPanel

To address the "Your connection to this site isn't secure" warning for your test websites on a local development server running AlmaLinux and AApanel, you can create a self-signed SSL certificate. This process involves generating a certificate and configuring your server to use it. Here's a step-by-step guide based on the information provided: Step 1: Generate a Self-Signed SSL Certificate Open a

Cookies are Becoming Taboo - Time to Use Browser Session Storage

Given the concerns around cookies and their limitations, such as small storage capacity, privacy concerns, and the fact that they can be blocked by users, storing values in a browser session might indeed be a more privacy-conscious and user-friendly alternative. Session storage is a part of the Web Storage API, alongside local storage, and is designed to hold data for the duration of a page

How to get Imgur API Key

It is straight forward to setup an API key at Imgur, but can be hard to find the API area. If you do not already have an account at Imgur, you will need to set one up before getting your API key(s). First step, signup here. Once you have successfully signed up, go here and you will see a page like the image below. Referring to the image above, we need to set the basics. (1) Application name: some

How to create self-signed ssl certificate for domain

Why self-signed certificate? I use "real looking" domain names on a local server using AlmaLinux and need SSL for real life testing. IMPORTANT: when you see the line below in your terminal / putty, be sure to add your domain name. For Example: Common Name (eg, your name or your server's hostname) []:example.com To create a self-signed SSL certificate for example.com, you can follow these steps:

Using GitHub to jsDelivr CDN

Did you know that you can use the wonderful and FREE JSDelivr CDN to deliver your GitHub project files? Yes, you can! For instance, go here and enter the URL to one of your GitHub project files. You will enter in this type of format and MUST be done for each file: https://github.com/oleteacher/Qik-Exit-Intent-Popup/blob/main/js/bioep.min.js Then the JSDelivr page will return something like this:

Show Content to SEO but Forward Users

Very simple process but use with care! Seriously, you really should think long and hard before using in any SEO campaigns. Used responsibly, this is a power tool. Using wreckfully can cause your site to be banned from search engine platforms, you have been warned. In this code, strpos function is used to check if the User-Agent string contains 'Googlebot' or 'bingbot'. If it does, it means the

Identifying Local & Network Drives in Windows 10+

Sometimes we need to identify local and network dives on Windows machines. Since Windows 10+ no longer support (or soon to be) wmic, needed a simple way to use PHP. $fso = new COM('Scripting.FileSystemObject'); $D = $fso->Drives; $type = array("Unknown","Removable","Fixed","Network","CD-ROM","RAM Disk"); foreach($D as $d ){ $dO = $fso->GetDrive($d); $s = ""; if($dO->DriveType == 3){ $n =

Sending Custom User Agents

You can send custom user agent in PHP script using stream context and file_get_contents function. Here is an example: $options = array( 'http'=>array( 'method'=>"GET", 'header'=>"User-Agent: My Custom User Agent Stringrn" ) ); $context = stream_context_create($options); // Replace with your URL $response = file_get_contents('http://example.com', false, $context); This example creates a