Impact.com – one of the WORST partners to work with

This is possibly pure frustration post but allow me to put my arguments here. I will describe all the ways this company is one of the worst software companies I have ever worked with on behalf of a client.\ The Absolute Worst Affiliate Partner Program: Why impact.com Should Be Avoided at All Costs trustpilot.com reviews state impact.com as BAD When choosing an affiliate partner program, businesses need reliability, cost-effectiveness, and strong support. Unfortunately, impact.com falls woefully short in all these areas, earning a reputation as one of the worst affiliate platforms in the industry. Here’s an in-depth look at why partnering with impact.com could be a disastrous decision for your business. ...

July 2, 2024 · 5 min · Harshvardhan Malpani

How to temporarily bypass content security policy CSP headers

Browser: Firefox Extension: Mod Headers https://addons.mozilla.org/en-US/firefox/addon/modheader-firefox/ Add A CSP policy like this: Use “parse” option and paste this:\ default-src *; script-src 'unsafe-inline' 'unsafe-eval' *; style-src 'unsafe-inline' *; img-src * blob: data:; font-src * data:; To create a Content Security Policy (CSP) header that allows everything, you would use the 'unsafe-inline' and 'unsafe-eval' sources for scripts and styles, and the * wildcard to allow all other sources. This setup is generally not recommended for production environments because it exposes your site to potential security vulnerabilities. However, it can be useful for development or testing purposes. Here’s an example of what this CSP header might look like: ...

March 7, 2024 · 2 min · Harshvardhan Malpani

Proxy another website url on a particular path using cloudflare workers – modify response body

// cloudflare worker to proxy a path or a whole url and make changes in response for any use case. const SECOND_DOMAIN = 'second.YOURDOMAIN.com' const THIRD_DOMAIN = 'third.YOURDOMAIN.com' const THIRD_PATH = 'abc-pathname-seo' const THIRD_LINK = 'https://' + THIRD_DOMAIN + THIRD_PATH async function handleRequest(event) { const url = new URL(event.request.url) const pathname = url.pathname if (pathname === '/' + THIRD_PATH) { return thirdLander(event) } const search = url.search const pathWithParams = pathname + search return retrieveStatic(event, pathWithParams) } async function retrieveStatic(event, pathname) { let response = await caches.default.match(event.request) if (response) { return response } const requestHeaders = new Headers(event.request.headers) const headers = new Headers() headers.set('Host', SECOND_DOMAIN) headers.set('Accept', requestHeaders.get('Accept')) headers.set('Accept-Encoding', requestHeaders.get('Accept-Encoding')) let init = { redirect: 'manual', method: event.request.method, headers: headers, } response = await fetch(`https://${THIRD_DOMAIN}/${pathname}`, init) if (event.request.method === 'GET') { event.waitUntil(caches.default.put(event.request, response.clone())) } return response } async function thirdLander(event) { let response = await caches.default.match(event.request) if (response) { return response } const requestHeaders = new Headers(event.request.headers) const headers = new Headers() headers.set('Host', THIRD_DOMAIN) headers.set('Accept', requestHeaders.get('Accept')) headers.set('Accept-Encoding', requestHeaders.get('Accept-Encoding')) headers.set('Cookie', requestHeaders.get('Cookie')) let init = { redirect: 'manual', method: event.request.method, headers: headers, } response = await fetch(THIRD_LINK, init) // RESPONSE BODY MODIFICATION let res2 = response.clone() let orgBody = await response.text() orgBody = orgBody.replace(/src="\//g, 'src="') orgBody = orgBody.replace(/url\("\//g, `url("https://${THIRD_DOMAIN}/`) orgBody = orgBody.replace(/<\/head>/g, `<base href="https://${THIRD_DOMAIN}/" target=_blank><link rel="canonical" href="https://YOURDOMAIN.com${THIRD_PATH}" /></head>`) if (event.request.method === 'GET') { event.waitUntil(caches.default.put(event.request, new Response(orgBody, res2))) } return new Response(orgBody, res2) } addEventListener("fetch", (event) => { event.passThroughOnException() event.respondWith(handleRequest(event)) })

October 9, 2023 · 2 min · Harshvardhan Malpani

What is DMARC and How to set it up?

DMARC stands for Domain-based Message Authentication, Reporting, and Conformance It can be used as a way to prevent specific type of SPAM. Hence it should be added as TXT record in your DNS zone, just like SPF and DKIM signatures. Example DMARC policies These are some example policies and how they appear in the DNS TXT record. TXT record hostname must be “_dmarc“ The values in these examples are defined in DMARC TXT record values, below. ...

July 3, 2019 · 1 min · Harshvardhan Malpani

Mouse and Keyboard sharing across Computers

We use multiple computers in workspace or in home. Often need to share same mouse and keyboard for all because you probably have a wireless/wired keyboard mouse set. here arises the issue that how to share same set of input controllers for both machines. Below are a few free and paid options for you to choose from. They all work as expected when computers are connected via LAN or WiFi ...

May 5, 2019 · 2 min · Harshvardhan Malpani

Quick tips on American SALES TAX for developers who are setting up an ecommerce store for USA based organization

So, all of the info you read below is the summary of 6 hours I spent yesterday in gathering information about taxes in USA. – to be particular – Sales Tax. Not Income tax To start with, USA has 50 states, meaning constituent political entity. All states have their own rules for sales tax and there is no nation-wide sales tax as such. So if you are an store owner in any particular, you will have to charge your customers taxes, which you are supposed to pay to the state. ...

March 15, 2019 · 4 min · Harshvardhan Malpani

How to switch your DNS to Google DNS or Cloudflare DNS on Windows 10?

So, this is the scenario. You are using some local ISP which has its own DNS server fulfilling your DNS requests but to speed things up and not rely upon a DNS server which is updated less frequently. For that purpose,we can switch our computer’s DNS to some other public DNS like Google’s or Cloudflare DNS. Step 1: Right click the Network Icon in your task bar. Right Click the network icon in taskbar ...

February 10, 2019 · 1 min · Harshvardhan Malpani
Google cloudconnect

What happened to googleforwork.com? Welcome the new cloudconnect.goog domain

So GoogleforWork.com is now being redirected to cloud.google.com and the same applies for its subdomain connect.googleforwork.com. Earlier the campaigns at google work communities are now hosted at www.cloudconnect.goog It is interesting to note that it uses .goog and not .google TLD, here is some more info about .goog TLD In the past we have seen .google tld for many purposes like AI to Everyone at ai.google and Google’s design lab and research on design technology The future will be interesting in terms of TLDs when banks, tech giants and telecom companies are switching their websites to their own custom TLDs and regular people can hardly remember the apparently new gTLDs.

February 7, 2019 · 1 min · Harshvardhan Malpani

How to setup / enable Directory index listing?

When a web browser is pointed to a directory on your website which does not have an index.html file in it, the files in that directory can be listed on a web page. Directory Lister is a simple PHP script that lists the contents of any web-accessible directory and allows navigating therewithin. Simply upload Directory Lister to any directory and get immediate access to all files and sub-directories under that directory. Directory Lister is written in PHP and distributed under the MIT License. ...

January 20, 2019 · 1 min · Harshvardhan Malpani

How to learn Git in 15 minutes? List of most basic git commands

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git is easy to learn and has a tiny footprint with lightning fast performance. Every dev has a working copy of the code and full change history on their local machine Here are some most important and useful GIT commands that will surely help you. ...

January 2, 2019 · 3 min · Harshvardhan Malpani