Posts

Showing posts with the label Programming

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

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

How to Fix Chromium Won't Open on Kali Linux

Image
Chromium is not running and how to fix it? Was originally a project of the open source web browser called Chromium was established to create the browser open source. Google then took sourcecode Chromium, the project to create a new browser by adding some additional features, such as additional names, which became Google Chrome. In short, Google Chrome is Chromium is packaged and distributed by Google to add some features. Chromium project itself is still ongoing and they are also used Google to update Google Chrome. Chrome from Chromium The main reason I use Chromium is for testing DOM XSS by that as far as I know can not be disabled in Firefox. If you have not heard from the Chromium open source version of Google Chrome and do not have a built-in flash player and various other codecs such as AAC, H.264, and MP3 support. It is possible to disable all the security features in Chromium or Chrome using the switch --disable-web-security, this will disable all secu...

Easy Ways to Upgrade Windows 10 Free From the Windows 7/8/8.1

Image
Microsoft officially announced that on 29 July 2015, a time of the launch of Windows 10. Simultaneously, Microsoft also promised to continue to provide support for users of Windows 7, Windows 8, and Windows 8.1. This means that the updates or upgrades for free will be given to users of Windows whether it is original or pirated version. When compared with users of pirated versions, the original user will get updated more easily. To get updated easily, Windows users have to order in advance. The terms and conditions that you must have an email that is still active, and have an update on the Windows operating system. If you fall into the category of new users, if you have a license of Windows 7, 8, or 8.1, then you can also order an update of Windows 10 that you want. If you have a 30-day trial version of windows on your laptop, you can buy a product key of Windows, or crack with other software, because the trial version of Windows already has a license from Microsoft, so it's...

What is Mysql, Apache, PhpMyAdmin, XAMPP and Nginx?

Image
In terms of making the web or computer program, you've heard those words, then what's the difference? See the following reviews. MySQL MySQL is a multithreaded, multi-user, SQL (Structured Query Language) Server Relational Database (RDBMS). MySQL is the database servers that can accommodate up to hundreds of gigabytes of records. With these capabilities, the application to be made all the more powerful when combined with PHP. MySQL-PHP so couples often called the Dynamic Duo. MySQL is popular for web applications such as PHP-Nuke, Mambo, Joomla and so forth. Initially MySQL running on Linux and Unix operating systems. But for fans of Windows is also available MySQL version of its Windows that can be downloaded directly from its website (http://www.mysql.com/downloads) . Apache Every time a browser connects to a Web site on the internet, it connects to the Web server. The server listens for requests on the network and responds to the request with specific d...

Install Compiz Settings Manager in Ubuntu 16.04

Image
Linux is open source operating system that is free and can be developed. On linux you will find a wide variety of desktop effects were very cool and charming that we can configure some beautiful animation by setting extra compiz plugin. But after I tried to install Ubuntu 13.04 Raring Ringtail, it does not exist. compiz settings manager is not available here. I wonder why it did not exist. Though I really liked the animation effects such a cool desktop, like the effect of Burn, Water Effect, Desktop Cube, and others. I wonder what makes ubuntu 13.04 Compiz does not have the default installation. But it can be solved by installing extra compiz plugins manually. If the old version of ubuntu compiz is already available. At 13:04 we need to install ubuntu ourselves if we want to get it. And I will provide a tutorial to guide you on this matter. By following the steps below, will overcome the problem of the lack of cool animation effects in the latest version of ubuntu. And af...

The Types of Protocols That Exist on The Internet Network

Image
A protocol is a set of rules or standards or allow a relationship, communication and transfer of data between two or more computer point. The protocol can be implemented in hardware, software or a combination of both. At the lowest level, the protocol defines a hardware connection. Protocol is used to determine the type of services to be performed on the internet. Here are some types of protocols that exist within the Internet network. DNS (Domain Name System) Domain Name System is a system used to distribute the database to search the computer name (name resolution) on the network using TCP / IP. DNS is used in applications that connect to the Internet such as web browsers or e-mail, which helps map the DNS host name of a computer to an IP address. TCP / IP (Transmission Control Protocol / Internet Protocol) TCP / IP is a data communications standard used by the Internet community in the process of exchanging data from one computer to another computer on the n...

What's Trojan Virus?

Image
What are the advantages compared to other Virus Trojan ? Virus Trojan can compromise remote access to a target computer system. Operations that can be performed by a hacker on computer systems that are targeted include Damaging a computer system, such as the appearance of a blue screen on your computer, Formatting a disk, destroying all the contents of your computer data, use of the system automatically as botnets for example spamming auto, theft of electronic money, infect other connected devices, Data theft and banking network information, including confidential files, sometimes for industrial espionage, and information with financial implications such as passwords and credit card payments and the modification or deletion of files. With the purpose of sending that data to the author, that some of the greatness of the Trojans, the effect actually depends on the types of trojan infected on your computer device. What is Virus Trojan? Trojan virus, or often referred to as a...

Introduction Objective-C for Mac or iOS

Image
Why Objective-C used in the Mac operating system? because Steve Jobs (founder of Apple Inc.) create a company named NeXT were using Objective-C licensed from stepstone to make the NextStep operating system. Because NeXT was acquired by Apple Inc. then NextStep dimodif into Mac OS and of course built using Objective-C. Objective-C thus become the main programming language on the products MacIntosh. Objective-C is made by Brad Cox and Tom Love 80s. His company was named stepstone. In terms of orders, Objective-C is a superset of C. This means that Objective-C command relatively similar but more than the language commands C. To make use Obejctive-C program is already available for Linux, Mac, and Window. Please search on Google if you're still confused. It should be understood that Objective C is not a separate language such as C #, C++, or Java. Objective C is the C language, written with object oriented syntax. So if you type in C and compiled, then there would be no pro...