Cloudflare Entering The Domain Industry With A Catch

Cloudflare Entering The Domain Industry With A Catch

Cloudflare is looking to enter into the domain industry soon, but there’s a catch. A very good one in fact – their prices. Cloudflare has stated that their prices will be wholesale from the registries and they will not profit a single cent from your domains. For instance, a .com domain costs $7.85 while the ICANN fee is $0.18. This amounts to $8.03 which is exactly what Cloudflare will charge

Cloudflare has also started sending out invites to some customers for beta testing. However, only transfers are possible at the moment, though I imagine that registrations will be available in the near future.

Read more about Cloudflare as a registrar here

 

Enjoyed the content ? Share it with your friends !

Setup PHP Dev Envrionment on Windows

Setup PHP Dev Envrionment on Windows

It is actually very simple to setup a simple development environment for your PHP projects. XAMPP is your friend you must have for this. It is easy to install and setup, with minimal configuration needed after.

Here are the steps,

  1. Go to XAMPP website to download and install it.
  2. After installation, run it and you will see a window as shown below

    XAMPP Control Panel
    XAMPP Control Panel
  3. Start APACHE and MYSQL modules and your already almost there !
  4. Now, you can open your browser and hit in http://localhost:80 for the url and you will see a welcome message by XAMPP.

Congrats ! You have setup your development environment for PHP. Here are some things to take note of
– To enable or disable modules (e.g SQLite3), you can modify the php.ini which should by default is inC:\xampp\php
– You can look through your logs and edit your config through the same control panel as well.
– If you wish to put your own html, php, javascript, .. files, you will have to go to C:\xampp\htdocs and place your files there

Enjoyed the content ? Share it with your friends !

A Privacy Focused Perspective on VPN and its Solutions

A Privacy Focused Perspective on VPN and its Solutions

Let’s start off with the basics.

What Is A VPN?

It stands for Virtual Private Network and its function is to encrypt your network traffic from your home or work to prevent people from potentially sniffing or spying on you.

How Does It Work?

Imagine a tunnel where one can drive or walk through from one end to the other. People from outside the tunnel will not be able to see what is happening in the tunnel – only the people inside the tunnel knows the situation. This tunnel is like your internet connection between your home or work, and the people inside is like your ISP (Internet Service Provider). Lets name this, tunnel A.

Now imagine having a tunnel within tunnel A. Lets name this, tunnel B. There you have it – this is exactly what a VPN does. It creates a ‘sub-tunnel’ and prevents people from outside tunnel A, and the people (the ISP) from seeing what’s inside tunnel B. This is to say, that tunnel B is now your newly encrypted internet connection which is supposedly very safe. Or is it ?

Is It Truly Safe?

Think back to the example above. The people inside tunnel A knows what is happening in tunnel A. Likewise, people in tunnel B knows what is happening in tunnel B. This is to say, no matter how many ‘sub-tunnel’ you create, there will always be a third-party that can see your information.

In the case of VPN solutions, that third-party can very well be the VPN provider (e.g the company that offers the VPN services), or the ISPs that the VPN providers make a deal with (ultimately,  VPN providers do not own the internet connection – they pay others for it).

CONCLUSION

Having a VPN is definitely a good thing. It however, does not mean that you won’t be caught if you attempt to do things that are against the law. If the law enforcement sends a letter down to the ISP, your pretty much over. For that to happen though, you must have done something really big.

Enjoyed the content ? Share it with your friends !

WordPress regex search and replace without plugin

WordPress regex search and replace without plugin

Plugins sometimes are unnecessarily bloated and heavy, causing lots of load on the server. Hence, inserting source codes manually is sometimes the better option.

Warning: make a backup of your data before you proceed

In the theme editor, go to your functions.php file and add the following code to the bottom of the file. The scenario below is that I had a bunch of <iframe> tags where I forgot to add the attribute 'allowfullscreen' and I would rather avoid using a filter for 'the_content' as it will cause unnecessarily load. Your use case will most likely be different, so feel free to adapt the code so that it works for you.

If you need to test your regex, you can do so using regex101

add_action('init','update_post_content');

function update_post_content()
{
    $my_posts = get_posts( array('post_type' => 'post') ); // Modify the post type - post, page etc

    foreach ( $my_posts as $my_post ):
        $post_content = $my_post->post_content;
        if( strstr($post_content, 'allowfullscreen') ) // if the allowfullscreen attribute exist already, then skip
            continue;
    
        $updated_post_content = preg_replace("/^(iframe).+?(?=><)/", "$0 allowfullscreen", $post_content); 
    	$my_post->post_content = $updated_post_content;

    	wp_update_post( $my_post );

    endforeach;
}

After you have successfully modified whatever you want to modify, remember to remove the code (unless you intentionally wish to keep it)

 

Enjoyed the content ? Share it with your friends !