I’m trying to optimize my websites to avoid Google Ads Suspensions. One of the recommendation is to not have any url in the html pages that are not related to google or to the domain itself.
In my usecase I have a cloudfront where I host all my images. I have around 1500 mentions of this cloudfront in my pages (https://xxxxx.cloudfront.net/folder/image.png)
I am trying to find the best way to remove the mention of “https://xxx.cloudfront.net” from the html code. My first idea was to base64 urlencode every image url, but I’m wondering if there could be a simplier way, like encoding only the domain part and adding the folders and images parts of the url. With something like:
src=”base_64domain/folder/image.png”. The current setup is obviously a bit messy and I’m looking for the most efficient way to do this