如何给网站部署SSL/TSL证书

SSL/TSL 证书是由受信任的数字证书颁发机构CA颁发给服务器的数字签名,目的是对传送的数据进行加密和隐藏,确保数据在传送中不被改变,从而保证数据传输的安全与完整。取得SSL/TSL证书之后,浏览网站将启用https协议传输数据。 自从某个时候使用chrome后,只要网站没有SSL证书就一直会提醒网站不安全。作为强迫症患者,实在看不下去只好动手给自己的网站添加SSL证书。 SSL证书的颁发很多需要付费,而且价格不菲,基于互联网分享精神,一些机

Python实现微信公众号历史文章保存

一直想学Python,但每次都不了了之,最近想要备份微信公众号历史文章到本地以防失联,想起Python做爬虫是优势,于是边学边练,以此记录下折腾的过程。 确定软件架构设计 需求非常简单,就是下载公众号历史文章,并用网页HTML格式整理成册方便后续阅读。因此制定如下完成思路: 获取历史文章列表 抓取公众号接口 先分析获取微信公众号历史文章页面接口,常见有两种方式获取: 这里我使用了第一种方案,网上都会介绍Fiddler抓包的方法,但其

VPS主机网站加速

speed up website

博客架设在美国VPS服务器上,图的是服务稳定免备案,但缺点也是显而易见的,先不论GFW的风险,每次的访问请求都要走太平洋海底光缆一个来回,再加上国际出口带宽的限制,网站速度自然很难与国内服务器相比。 对于个人博客,预算有限,不可能花大价钱提升服务器硬件,也不觉得有必要购买CDN服务,那么只有榨干现有服务器资源、提升效率。如果你认为本站访问速度还不错也有折腾的兴趣,建议你继续往下阅读。 服务器端的优化 启用PHP自

用WordPress短代码在博客任意部分添加广告

其实不怎么满意现在文内广告的位置,本来是想通过判断WP中的more标签位置插入广告的,奈何自己总是很懒,加上毕业设计的任务压在头上,也就作罢了,忽然想起WP的短代码功能似乎可以实现此功能,于是翻了翻WordPress Popular Posts的代码,找出了此段代码,这样就可以轻松在博客文章或者WordPress侧栏中任意位置添加Adsense广告了。 代码很简单,把以下的代码加入到主题的functions.php中: function showad() { return ‘<div class=”advertise”> //这里放你的

WordPress Tricks: Let Author Role See His Own Posts

WordPress have different user roles. These roles let administrator manage blog contributors works better. Author role in WordPress can not see much information from the dashboard. Sometimes, we may want to see what we have published. At that time, we can uses the following code to let Author see their own posts list.

WordPress Tricks: Automatic Add nofollow Tag for External Links

When we write article, we often uses some external links to extent our content. These links will help other websites build search engine weightiness. If you don’t want to help your competitors, you should add “nofollow” to these links. One idea is to add rel=”nofollow” on each links manually. But, it will be a tough task. […]

How to run ASP on Linux

As the ASP is very easy to use, many companies choose ASP to develop their IT solution on Windows 2000 Server + ASP + MSSQL. However, this idea also have its disadvantages.  And when your are going to transfer to linux, you will find big problems. There are two ways to transfer ASP to Linux. 1. […]

Top 3 Best Open Source PHP Scripts for Blog

There are many open source PHP Scripts platform for webmasters. Some of them have a huge community. But some are not properly maintained. You will never want to be disturbed for a website platform bug. How to choose a suitable platform for your business? Here, I’ll compare 3 best blogging platform.

How to Increase Online Business Revenue

Online business acts a crucial role nowadays. But many entrepreneur don’t know how to increase their online revenue. They keep invest big money into online advertisement. While their page views number grows,  they see no increase of their profit. So how to increase online revenue? I got some practical experience.

How to improve website performance

Most of you run a website to make money. Whatever your website is, a blog or a portfolio website, the website performance is essential to your success. How to improve your website performance? Here I’d like to suggest some solutions.