Blocking IP from China

If your website is running on Apache, here is how you can easily block IP’s from China. Open your .htaccess file & paste the following. ///////////////////////////////////////////////////////////// order allow,deny allow from all # China IP Address Blocks deny from 58.14.0.0/15 58.16.0.0/13 58.24.0.0/15 58.30.0.0/15 58.32.0.0/11 58.66.0.0/15 58.68.128.0/17 58.82.0.0/15 58.87.64.0/18 58.99.128.0/17 58.100.0.0/15 58.116.0.0/14 58.128.0.0/13 58.144.0.0/16 58.154.0.0/15 58.192.0.0/11 58.240.0.0/12…

[Read More...»]

Addictions & 666

  Internet loves the number 6. Did you know that in Hebrew, www means 666? The Hebrew and Greek alphabet does not have separate characters or alphabets for numbers and letters. Letters are also used as numbers. So each letter is a numerical value. The Hebrew equivalent of our “w” is the letter “vav” or…

[Read More...»]

PHP Redirect

PHP Redirect to Self (refresh) Header(‘Location: ‘.$_SERVER[‘PHP_SELF’]); Exit(); // if more than one header, you will get “header already sent” error if don’t exit out PHP Redirect to other page header( ‘Location: http://www.example.com/other_page.html’ ) ; Why you should avoid using javascript redirect? A : Due to Google’s redirect penalty. https://www.sitepoint.com/community/t/google-found-my-javascript-redirect/64157/9 Update on Google penalty (04/17/16):…

[Read More...»]