Posts

Showing posts with the label Server

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

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

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

Membuat DNS Server di Debian

Image
  Berhubung saya punya banyak tutorial linux, Dari tugas dan catatan semasa sekolah, jadi biar tidak mubazir tidak ada salahnya kalo di posting, siapa tau ada yang butuh, soalnya dulu waktu saya masih sekolah  jarang banget googling dapet tutorial linux, kalo sekarang lumayan lah, habis udah banyak yang bisa linux, nah kali ini saya akan menerangkan langkah-langkah konfigurasi DNS server di debian , langsung saja ini dia langkah demi langkahnya (step by step). Sebelum ke langkah membuat DNS server di debian kita perlu konfigurasi IP, berikut langkah-langkahnya: 1. LANGKAH-LANGKAH KONFIGURASI DEBIAN Login : jarkom (contoh) Password : jarkom (contoh) Masuk aplikasi root terminal : aplikasi >accesoris>root terminal ALAMAT IP Melihat IP : #ifconfig enter mengkonfigurasi : pico /etc/network/interfaces ketik: allow-hotplug eth0 iface eth0 inet static address 200.100.50.20 netmask 255.255.255.240 network 200.100.50.16 broadcast 200.10.50.31 allow-ho...