Trick to hide email address smartly on a webpage to stop spam

Protecting emails from spam is a tough task. Scraping email addresses is a common trick for getting huge lists of working emails from a search engine, but how do we stop it? Here is one of the ways to hide your email address from being scraped. Simple harvesters download the HTML of a page and look for anything shaped like name@domain. The trick is to never put the address in the HTML in that shape. The two halves go into attributes of an element, and CSS puts them back together on screen, so visitors see the full address while the page source never contains it. ...

June 15, 2018 · 2 min · Harshvardhan Malpani

How to stop SPAM in gmail account permanently? A guide to creating filters in Google Mail [no third party app]

SPAM, don’t we hate it when our inbox is full of credit card offers, insurance policies and billions of pounds that some rich dude left for you in his will? Everyone wants to get rid of them but somehow, some stupid website out there keeps leaking on our email address and we keep receiving stupid junk emails. We all know that SPAM or Junk Email means unsolicited messages that you receive by email. But here is a fun fact: ...

March 9, 2018 · 13 min · Harshvardhan Malpani

Chain CA Root Bundle for Let’sEncrypt SSL

When you install an SSL certificate by hand, for example in cPanel’s SSL/TLS manager or on a server where you copy the files yourself, you need three things: the certificate, its private key, and the “CA bundle” (also called the chain). The bundle holds the intermediate certificates that link your certificate to a root certificate that browsers trust. Leave it out and some browsers, Android devices and tools like curl report the certificate as untrusted, even though it’s valid. This is the bundle I used for Let’s Encrypt certificates in 2018. ...

February 26, 2018 · 3 min · Harshvardhan Malpani

Forcing website to https and www using htaccess on apache servers

Once a site has an SSL certificate, you usually want every visitor to end up on one address, for example https://www.example.com, whether they typed http://, left out the www, or both. On Apache you can do this in the site’s .htaccess file with mod_rewrite. These rules use two separate steps: first switch to HTTPS, then add the www. A common mistake is to add the www in the HTTPS rule as well. To first force HTTPS, you must check the correct environment variable, %{HTTPS} off. If that rule then also prepends www., a visitor who already typed www ends up on www.www.. Since you have a second rule to enforce www., don’t use it in the first rule. ...

February 21, 2018 · 3 min · Harshvardhan Malpani

Compressing images directly on web server – Better Pagespeed tips

Large images are one of the most common things PageSpeed Insights complains about. If a site already has hundreds of PNG files on the server, downloading them, compressing them on your computer and uploading them again is slow. optipng can do it directly on the server over SSH. It’s lossless: it recompresses the PNG data more efficiently without changing a single pixel, so the images look exactly the same, only smaller. ...

February 2, 2018 · 3 min · Harshvardhan Malpani

How to unlike all Facebook pages from your profile and Clean your newsfeed

Hello humans, I have tried to keep this tutorial simple and detailed. Please proceed with caution. The following tutorial and the procedure will unlike pages you have liked from your profile, Please be clear about that the fact that the code provided here is clean and does not intend to do any harm to your Facebook account. Note – This code uses jQuery library in its original form. So you do not need to be scared while using this “scary” looking code. ...

May 18, 2017 · 3 min · Harshvardhan Malpani