David

Passing client User-Agent from CloudFront to origin

These few days I try to setup the CloudFront for my website and everything working fine as per expected except the real user agent is not passing from the CloudFront to my origin server, instead it’s replace the user-agent to “Amazon CloudFront” when I check from my Nginx Log. After some Googling, and find out…

Updating AWS CloudFront IP to Nginx

CloudFront become a very common CDN/Reverse proxy nowadays because of their high availability and easy to use. So if you place a CloudFront as a proxy server in front of your Nginx web server, than the Nginx web server not able to get the real customer IP address. Same thing will happen if you using…

Hosting private static content in S3 using AWS Cloudfront

AWS S3 is always a best place to keep your static content for your website due to the nature of high durability and also high availability. And it’s always highly recommend to set your S3 bucket as private, but how to host a web static file without a public access? This is where the AWS…

Auto update CloudFront IP into security group using Lambda

AWS CloudFront (CDN) provide a better performance and low latency to the website visitor by caching the content at the EDGE location which closer to the visitor location. CloudFront not only provide the performance improvement to the end visitor, it’s also provide the lower cost of content delivery from your origin to the end visitor…

Blocking Ads using Squid Proxy Server

Squid Proxy Server is one of the famous open source proxy server available and widely used by a lot of enterprise. Squid proxy server not only will help to speed up your corporate network to the Internet by cache the content in the server it self, it also have a lot of useful feature such…

Deploying VPC with Terraform

Terraform is an open-source infrastructure as code software tools created by HashiCrop and it enables user to define and provisioning a datacenter infrastructure using high-level configuration language which is know as HashiCorp Configuration Language (HCL) or optionally you can using JSON. Terraform is platform independent tools where you can use it to code for infrastructure…

Set Python 3.7.7 as default Python version on MacOS

By default, MacOS come with a default version of Python, which is Python 2, but to install certain software such as Ansible and AWS Cli, you may need to have the Python 3+. But after you install the Python 3, it will not auto bind you the default Python, you may need to run Python3…

Disney+ has 50 million subscribers after just 5 months

Disney has just shared today that it’s video streaming service has surpassed 50 million subscribers after just five months after launch. Obviously, the ongoing pandemic has a large role to play in the number of sign-ups, given that a lot of people are stuck at home with nowhere to go. Still, this is impressive especially when you…

Cloudflare dumps reCAPTCHA as Google intends to charge for its use

Internet web infrastructure company Cloudflare announced plans to drop support for Google’s reCAPTCHA service and move to a new bot detection provider named hCaptcha. Cloudflare co-founder and CEO Matthew Prince said the move was motivated by Google’s future plans to charge for the use of the reCAPTCHA service, which would have “added millions of dollars in…

Using AWS CloudFormation to start/stop EC2/RDS instance

AWS getting more popular nowadays where more and more company moving their workload on the AWS cloud platform including the development and UAT environment. Normally development and UAT environment only use by the programmer or staff during the working hour which around 8 to 12 hours per day excluding the public holiday and weekend. Let’s…

google.com, pub-3772983857049267, DIRECT, f08c47fec0942fa0