Posts

How to Protect Site from Clickjacking Attack in Nginx

Image
This time i will review about Protect site from clickjacking attact in nginx , or also known as "UI redress attact" are attacks that utilize transparent layer which aims to trick so that when the user clicks a button or a link on other sites such as the original site. And then the attacker intended to hijack the site by routing them to another site, most likely owned by another application, domain, or both. A common technique they do is with iframe technique. Nginx This article I will give some tips and tricks about securing your site for users Nginx. By utilizing the function of the X-Frame-Options header site. Preparation Make sure you have installed Nginx on your server. Then go to Settings in: For Users Debian/Ubuntu: $ sudo nano /etc/nginx/sites-availables/default For Users Fedora/CentOS/RHEL: $ sudo vi /etc/nginx/nginx.conf Then add: server { ... add_header X-Frame-Options "SAMEORIGIN"; ... } See the picture b...

6 Games Terminal Linux-based CLI

Image
A Cool game that was not always high graphics, game-based CLI was also good, such as childhood nostalgia in time before their game like today, for generation of the 90's you surely know gamewatch/gamebot? Just like that. For you gamers, might be worth trying a game like this, I wrote based on experience in linux, cool bro. Here are 6 Cool Games based CLI that can be played in the linux terminal. Moon Buggy Moon Buggy Moon Buggy is a GPL Game, where you must drive on the lunar surface with Buggy Car. This game is pretty addictive with the speed as well as game FlapyBird, Haha cool. Nudoku Nudoku Nudoku is a game in which the terminal and written in C and licensed under GPLv3. A logic game put the 9 numbers in 9 grid, Nudoku provide some level of difficulty from easy to hard, hmmm you must try. (See also: How to fix chromium can't running on kali linux) Robot Kitten Finds Robot Kitten Finds Robot Find Kitten is "zen simulation" in which you pla...

Optimizing Nginx in VPS Low Specifications on Linux

Image
This time I will give you tips and tricks on How to optimize the use of the VPS Nginx, which has a lower specification or small. I'm doing this practice on a VPS in Digital Ocean with specifications Single-Core with 512 MB RAM. Nginx Let's start, first check CPU you use, how many cores? $ grep ^processor /proc/cpuinfo | wc -l If you only have one, then: worker_processes  1; Set up like this, for example as many as 1024 client connections per second: worker_connections 1024; (See also: List of All Commands on Linux) BUFFER Then go to Buffer problem handling, use the following settings: client_body_buffer_size 10K; client_header_buffer_size 1k; client_max_body_size 8m; large_client_header_buffers 2 1k; Description of the above settings as follows: client_body_buffer_size: It handles POST sent to Nginx. client_header_buffer_size: To handle header that requested by the client. client_max_body_size: T...

List of All Commands on Linux

Image
Most people who use Linux are usually only recognize commands such as sudo, apt, cp, wget, ls, etc. But actually all of a Commands in Terminal Linux it a lot and have a wide variety of functions. This time I will share Linux Terminal commands that you may not know. Maybe this could be a lesson for beginners in Linux. Ok, following various kinds of commands in Linux. Commands on Linux List of All Commands on Linux A apropos : Search Help manual pages (man -k) apt-get : Search for and install software packages (Debian/Ubuntu) aptitude : Search for and install software packages (Debian/Ubuntu) aspell : Spell Checker awk : Find and Replace text, database sort/validate/index B basename : Strip directory and suffix from filenames bash : GNU Bourne-Again SHell bc : Arbitrary precision calculator language bg : Send to background break : Exit from a loop builtin : Run a shell builtin bzip2 : Compress or decompress named file(s) C cal : Display a calendar case : Con...

Differences Shared Hosting, VPS and Cloud Hosting

Image
This time i will review about Differences Shared Hosting, VPS and Cloud Hosting . What is differences? You may be confused by some words. Or you’re searching for a service that is right for your online business needs, and then you find in the search engines of various deals with terms such as Cloud Servers, VPS and Web Hosting. What is the difference and how to adjust to your needs, you should even be careful, not only because of cost but ultimately not in accordance with the needs you want. Below is an explanation that can help you better understand the terms of hosting. Cloud Hosting Shared Hosting Shared hosting is a service that rents out space for your own web-based applications, this service provides several bandwitch that suits your needs, where you can use a domain name that you have to be directed to the application. Usually you are given the facility management for your applications such as upload / download files for web and database as needed. Platform provided...