Host1Free Recently Upgraded Network Infrastructure, Changing VPS IP

Dear Host1Free User Lan Tian, We would like to announce that due to changes in our network infrastructure we will be changing current IP address of your free VPS server 5.175.206.68 to the new one 5.175.156.249. In order to allow you to prepare for this event we added IP address 5.175.206.68 as main IP address and old 5.175.156.249 IP left as additional to your free VPS server. Next Wednesday (2013-06-13) old IP address will be removed. Please make sure to update your servers settings, DNS settings and etc. accordingly to avoid any inconience after old IP(5.175.156.249) address removal at Wednesday." Please accept our apologies for the inconvenience. Regards, Host1Free adminsitrators team In short, the VPS IP address has been changed to 5.175.206.68, while the original 5.175.156....

HTML Compression for PHP Web Pages

< body id = "wordpress-org" class = "home blog" > < div id = "header" > < div class = "wrapper" > < h1 > [WordPress.org ](http://cn.wordpress.org/) </ h1 > < h2 class = "rosetta" > [China 简体中文 ](http://cn.wordpress.org/) </ h2 > < div style = "clear:both" ></ div > < ul > < li > < a href = "/" title = " 首页 " class = "current" > 首页 </ a > </ li > < li > < a href = "http://zh-cn.forums.wordpress....

A Piece of JS for Ultimate Resistance Against Developer Tools

The most frustrating part of website development is having your painstakingly crafted templates ripped off using developer tools, as Chrome Dev Tools and Firebug possess immense power. (No explanation needed) Developer tools were once invincible, until this piece of JS emerged. http://publicdn.cdn.duapp.com/js/wqnmlgb.min.js Source code + author information: /* Plugin Name : WQNMLGB Plugin Author : Xider Plugin Version : 1.2 final Plugin Site : http://lab.i-xider.com Now Support : Chrome , Safari , FireFox ( NOT ALL ) , Opera ( NOT ALL ) , IE ( NOT ALL ) 请原谅我把原生JS和JQuery混为一起写 */ function fuckyou () { window . location = 'http://i-xider.com/#呵呵' //Redirect current window to blank page } function ck () { console . profile () console . profileEnd ()...

Porting Bad Apple to Telnet and Successfully Screening It

Today, after tinkering for half a day, I successfully ported Bad Apple to my VPS's Telnet service using the command-line animation version I published earlier. To view it yourself: telnet xuyh0120.tk or telnet 5.175.156.249 Round 1. Porting to SSH Since I originally promised a classmate I'd implement this via SSH, I started there. First, I uploaded Bad Apple to my VPS at /opt/badapple , which contains two files: badapple and badapple.in (the resource file with a modified extension). useradd badapple passwd badapple # 密码我设的badapple su badapple # 切换过去 chsh # 输入/opt/badapple/badapple exit When testing via SSH, I encountered Error 2 (resource file not found). I recompiled locally (the VPS lacks FPC), changed paths from relative to absolute, re-uploaded,...

W3 Total Cache Implements Memory Caching

W3 Total Cache uses disk-based caching by default. For shared hosting users, this may be the only option available. However, VPS users have significantly more flexibility, especially when using VPS providers with efficient overselling techniques (Host1Free?) where disk speeds are relatively slow. In such cases, you can leverage your surplus memory for caching. I've set up three WordPress test sites on SAE, OpenShift, and Host1Free VPS respectively. Among these, only the VPS allows for full customization, making it our focus today. (Note: SAE's file read/write restrictions prevent W3 Total Cache from even saving configurations.) Additionally, W3TC supports PHP Opcode caching solutions (such as Zend Optimizer (not Zend Guard), eAccelerator, XCache, APC, etc.)...

Using Certificates to Authenticate Linux Remote Login

Most people use passwords to log into a Linux shell remotely. Not only is it tedious, but if you use the same password everywhere and encounter an incident like the CSDN 6 million password leak, your VPS is essentially compromised. Therefore, we can replace passwords with a more convenient and secure method: RSA-encrypted certificate files. First, we need to generate a certificate. cd ~/.ssh ssh-keygen -t rsa At this point, your .ssh directory should contain two new files: id_rsa.pub and id_rsa . The latter is your private key—keep it secure—while the former is your public key, which can be shared publicly. Next, we'll configure our VPS. Upload your id_rsa.pub to the server's ~/.ssh directory using FileZilla or WinSCP, and rename it to authorized_keys ....

The Proper Usage of Caching Plugins

While visiting Blog @ Mr.Ducky today, I noticed the navigation bar showed 4 items on the homepage but 6 items on subpages. After checking with the owner, it turned out to be a caching issue... Caching plugin bugs can cause significant problems. Therefore, it's crucial to understand how to use caching plugins correctly. When publishing a new post, your website's homepage should update automatically. However, if a caching plugin is active, it may continue serving the old cached version, preventing visitors from seeing the latest content. Always clear your cache promptly after updates. Plugins like W3TC and WP Super Cache support automatic cache clearing. After modifying your website template, always clear the cache immediately....

Why Hong Kong CDN Can Be Slower Than US CDN

CDN, or Content Delivery Network, creates distributed copies of your website across multiple locations. These copies store static resources like JS, CSS, and images, accelerating access for visitors. Sometimes CDNs can also optimize network paths between regions. For example, if your website is hosted in Location B , and you (and your visitors) are in Location A , the connection between A and B might pass through Location C with poor network quality. When you ping your site, packet loss occurs at C, forcing clients to wait and retransmit data, slowing down the site. By using a CDN in Location D , traffic bypasses the problematic C, reducing packet loss and improving speed. A autoTranslated: true --- - > C ( X )...

Removing W3 Total Cache Footer Comment

The resource minification effect of W3 Total Cache is excellent - it even minifies HTML. Just look at my webpage source code: line breaks are removed, and the minification is extremely effective. However, at the end of the page, there's an added comment by W3 Total Cache: <! -- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/ Minified using disk: basic Content Delivery Network via lantian.pub Served from: lantian.pub @ 2013-02-13 20:56:59 by W3 Total Cache -- > For someone like me who pursues speed, this not only unnecessarily increases the webpage size but, more importantly, it annoys me whenever I see it. Therefore, I decided to tackle W3 Total Cache and remove the code that generates this comment....

Host1Free VPS Memory Usage Optimization

PS: After publishing the article for the first time, I realized I forgot to configure the connection between nginx and php5-fpm. When I tried to connect to my VPS to check the settings, I opened the terminal, pressed the up arrow and Enter, only to discover my last command was "exit"... PS2: Folks using port 22 on VPS should be cautious – you might get disconnected mid-command. Switch to another port like 2222. (So 2-ish) PS3: Today I set up a Debian 6 test environment on VirtualBox and discovered Lighttpd has plugin functionality... Revised accordingly. For a VPS, resources like CPU and disk space are usually sufficient for running a personal blog like mine. The real headache is insufficient memory....