OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Hidding third party domain url of images from my html pages

  • Thread starter Thread starter And Row ID
  • Start date Start date
A

And Row ID

Guest
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
<p>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.</p>
<p>In my usecase I have a cloudfront where I host all my images. I have around 1500 mentions of this cloudfront in my pages (<a href="https://xxxxx.cloudfront.net/folder/image.png" rel="nofollow noreferrer">https://xxxxx.cloudfront.net/folder/image.png</a>)</p>
<p>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</p>
Continue reading...
 

Latest posts

B
Replies
0
Views
1
Blundering Ecologist
B
Top