Posts

Showing posts from March, 2017

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...