Technology

This is a technology category which will include posts related to Technology arena.

January 11, 2021

Installation Of Nginx on Ubuntu 20

This is evident from the post that Nginx is one of the most popular and growing web servers across the globe. Its faster than apache. Let us see how we can install Nginx on Ubuntu, Centos and other platforms. Installation Using Package Manager mkdir nginxcd nginxwget http://nginx.org/download/nginx-1.19.5.tar.gztar -zxvf nginx-1.19.5.tar.gzcd nginx-1.19.5./configuresudo apt-get install build-essentialsudo apt-get install libpcre3 libpcre3-dev zlib1g zlib1g-dev libssl-dev     nginx path prefix: “/usr/local/nginx”nginx binary file: “/usr/local/nginx/sbin/nginx”nginx modules path: “/usr/local/nginx/modules”nginx configuration prefix: “/usr/local/nginx/conf”nginx configuration file: “/usr/local/nginx/conf/nginx.conf”nginx pid file: “/usr/local/nginx/logs/nginx.pid”nginx error log file: “/usr/local/nginx/logs/error.log”nginx http access log file: “/usr/local/nginx/logs/access.log”nginx http client request body temporary files: “client_body_temp”nginx http proxy temporary files: […]
January 9, 2021

How to Use Sessions Correctly for Persistent Login?

Charles Miller’s article, “Persistent Login Cookie Best Practice,”[1] describes a relatively secure approach to implementing the familiar “Remember Me” option for web sites. In this article, I propose an improvement that retains all the benefits of that approach but also makes it possible to detect when a persistent login cookie has been stolen and used by an attacker. Review: To summarize Miller’s design: When the user successfully logs in with Remember Me checked, a login cookie is issued in addition to the standard session management cookie.[2] The login cookie contains the user’s username and a random number (the “token” from here […]
January 7, 2021

How to add custom folders to one drive?

OneDrive is free online storage that comes included with Windows 10 and used with your Microsoft account. Save your files to OneDrive, and you’ll be able to get to them from any PC, tablet, or phone. By default, you can choose which folders to sync in OneDrive with your PC. Windows 10 stores your OneDrive folder in your account’s %UserProfile% folder (ex: “C:\Users\Markov”) by default. This tutorial will show you how to sync any folder to OneDrive that is not already in OneDrive for your account in Windows 10. Here’s How: 1 Open a command prompt. 2 Type the command below […]
January 6, 2021

Why Nginx is better than Apache?

Apache and Nginx are the two most common open source web servers in the world. Together, they are responsible for serving over 50% of traffic on the internet. Both solutions are capable of handling diverse workloads and working with other software to provide a complete web stack. While Apache and Nginx share many qualities, they should not be thought of as entirely interchangeable. Each excels in its own way and it is important to understand the situations where you may need to reevaluate your web server of choice. Both web servers, in their latest versions, can compete with each other in […]
January 5, 2021

Securing WordPress Admin Directory with HTTP Authentication

WordPress is one of the most popular open-source blog CMS and thus is more prone to hack attacks. One of the most important and first step in protecting any WordPress installation is by protecting its wp-admin folder. Before protecting the wp-admin directory it has to be ensured that your admin password is strong enough. Thus, always ensure that your admin password is very safe and secure and keep changing it at regular intervals of time. Now let’s dive into securing our wp-admin directory. Protect wp-admin directory On Apache Disclaimer: This method works only on Apache. Adding an extra layer of server […]
January 4, 2021

How To Use Web Cookies Securely?

Cookies are one of the most important elements in web applications, but unfortunately, many developers use it very loosely thus increasing the security risks to the website. I will teach here the importance of HTTP Cookies and best practices for using it securely in web applications. Lets gets started 🙂 What is a Cookie? Cookies are text files with small pieces of data that is used to identify your computer as you use a computer network. Specific cookies known as HTTP cookies are used to identify specific users and improve your web browsing experience. Cookies are simple mechanisms to make HTTP […]
January 3, 2021

9 Best Steps to Secure Your Server

Hey friends, Do you want to launch your own production cloud server but don’t have the budget to hire dedicated security professional for implementing security on your server. Worry no further. I will teach you in this article how you can secure your Ubuntu Server for production Usage in few simple steps. Although these steps have been performed on Ubuntu 20.04.1 LTs with root privileges, it can work on any Linux distro with little changes. Keep Your Server Updated An extremely crucial part of hardening any server/system is to ensure that it is always kept up-to-date. Keeping your server updated means […]
October 28, 2020

Authentication & Authorization: Do You Really Know?

In this article, we will be checking out a few important and basic concepts about authentication and authorizations which will help us make better authentication solutions for our applications in the future. Important Terms/Concepts Identity Identity basically refers to the data which defines who/what is accessing the application/system. Identity can be used for users, devices, services & applications. It is basically a collection of data attributes that contains but not limited to username, email address, first name, last name, application id, client id, API key etc. It is generally managed by databases like SQL or Active Directory. The server which is […]
October 6, 2020
git cheatsheet

How to use GIT to increase productivity

We as a developer know the importance of GIT in our day to day life. Many of us use GIT for development but most of us never think beyond commit, push and pull. So, the main question is – Are we using GIT to its full potential? Are we thinking beyond GIT PUSH, PULL & COMMIT? In this article, we will see how can we become a pro in using GIT and make most out of GIT so that we can make our life as a developer more productive. What is Git and how it works? GIT is a system to […]