LATEST ARTICLES

How does CloudFlare DDOS protection work? – Update 09/2016

cf ddos protection

Old version: How does CloudFlare DDOS protection work? I went to some website and saw the CloudFlare DDOS protection, pictured below: I showed the source of that website: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Please wait 5 seconds...</title> <script type="text/javascript"> //<!+!!+!!+)+(+))}; t = document.createElement('div'); t.innerHTML="<a href='/'>x</a>"; ...

How to detect AJAX request in PHP

How to detect AJAX request in PHP

Here are some quick PHP snippets that you can use to detect AJAX request in PHP: Method 1: We use the function apache_request_headers to detect AJAX request in PHP function is_ajax() { $request_headers = apache_request_headers(); return (isset($request_headers) && $request_headers == 'XMLHttpRequest'); } Note: $request_headers will have the value like: array(9) { => string(11) "tutorialspots.com" => string(10)...

PHP: how to installing GeoIP extension on CentOS

Read more: How to install GeoIp module for PHP on Windows Step 1: check your PHP version yum list installed |grep php Result: kloxo-core-php.i386 5.3.28-2 ...

Vesta Control Panel installation – new update 2016

Read the old version: Vesta Control Panel installation Vesta CP available for 1. RHEL 5,6,7 2. CentOS 5,6,7 3. Debian 6,7,8 4. Ubuntu 12.04-15.10 Step 1: Download installation script curl -O http://vestacp.com/pub/vst-install.sh or you can custom your command by go to Advanced Install Settings in website: https://vestacp.com/ result:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current Dload  Upload   Total   Spent    Left  Speed 102 ...

How to install gcc in Cygwin

Read more: How to install cygwin How to add packages after install Cygwin Cygwin Prerequisites The Cygwin installer and the packages can be obtained from http://cygwin.com/. The following Cygwin packages are needed for compilation and installation of the gcc/g++ compiler from the source: bash binutils bzip2 cygwin gcc-core gcc-g++ gzip m4 make unzip zip To check that the packages are installed, you may run the command: cygcheck -c bash binutils bzip2 cygwin gcc-core gcc-g++ gzip m4...

How to Install GMP in Cygwin

Read first: How to install gcc in Cygwin Step 1: tar -xf gmp-6.1.1.tar.bz2 cd gmp-6.1.1 ./configure Result: Administrator@MRNC-N9NJM89QFO /usr/local/contrib $ tar -xf gmp-6.1.1.tar.bz2 Administrator@MRNC-N9NJM89QFO /usr/local/contrib $ cd gmp-6.1.1 Administrator@MRNC-N9NJM89QFO /usr/local/contrib/gmp-6.1.1 $ ./configure checking build system type... haswell-unknown-cygwin checking host system type... haswell-unknown-cygwin checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports...

How to install libtool in Cygwin

Read more: How to install cygwin How to add packages after install Cygwin Installation: apt-cyg install libtool Result: $ apt-cyg install libtool Installing libtool --2016-08-20 22:04:47-- http://cygwin.mirror.constant.com//x86_64/release/libtool/libtool-2.4.6-3.tar.xz Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83 Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 725812 (709K) Saving to: ‘libtool-2.4.6-3.tar.xz’ libtool-2.4.6-3.tar 100% 708,80K 93,3KB/s in 8,9s 2016-08-20 22:04:56 (79,4 KB/s) - ‘libtool-2.4.6-3.tar.xz’ saved libtool-2.4.6-3.tar.xz: OK Unpacking... Package libtool requires the following...

How to install automake in Cygwin

Read more: How to install cygwin How to add packages after install Cygwin Installation: apt-cyg install automake Result: $ apt-cyg install automake Installing automake --2016-08-20 21:53:40-- http://cygwin.mirror.constant.com//noarch/release/automake/automake-9-1.tar.bz2 Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83 Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3043 (3,0K) Saving to: ‘automake-9-1.tar.bz2’ automake-9-1.tar.bz 100% 2,97K --.-KB/s in 0s 2016-08-20 21:53:41 (82,3 MB/s) - ‘automake-9-1.tar.bz2’ saved automake-9-1.tar.bz2: OK Unpacking... Package automake requires...

How to install autoconf in Cygwin

Read more: How to install cygwin How to add packages after install Cygwin Installation: apt-cyg install autoconf Result: $ apt-cyg install autoconf Installing autoconf --2016-08-20 21:40:43-- http://cygwin.mirror.constant.com//noarch/release/autoconf/autoconf-13-1.tar.bz2 Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83 Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3388 (3,3K) Saving to: ‘autoconf-13-1.tar.bz2’ autoconf-13-1.tar.b 100% 3,31K --.-KB/s in 0s 2016-08-20 21:40:45 (23,0 MB/s) - ‘autoconf-13-1.tar.bz2’ saved autoconf-13-1.tar.bz2: OK Unpacking... Package autoconf requires...

How to install make in Cygwin

Read more: How to install cygwin How to add packages after install Cygwin Installation: apt-cyg install make Result: $ apt-cyg install make Installing make --2016-08-20 21:28:50-- http://cygwin.mirror.constant.com//x86_64/release/make/make-4.1-1.tar.xz Resolving cygwin.mirror.constant.com (cygwin.mirror.constant.com)... 108.61.5.83 Connecting to cygwin.mirror.constant.com (cygwin.mirror.constant.com)|108.61.5.83|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 422916 (413K) Saving to: ‘make-4.1-1.tar.xz’ make-4.1-1.tar.xz 100% 413,00K 79,7KB/s in 5,2s 2016-08-20 21:28:59 (79,7 KB/s) - ‘make-4.1-1.tar.xz’ saved make-4.1-1.tar.xz: OK Unpacking... Package make requires...