cancel
Showing results for 
Search instead for 
Did you mean: 
abigail
Level 9

Removing all Pictures from Google Search Results

Jump to solution

Hi,

I'm trying to remove all pictures from Google-Search results.

I removed all the "HTMLElement.Name equal img" -

But I managed to remove only pictures from image search.

What can I do?

Thanks in advance.

0 Kudos
1 Solution

Accepted Solutions
asabban
Level 17

Re: Removing all Pictures from Google Search Results

Jump to solution

Hello,

honestly I don't think you will be successful on this one.

If you look into the way Google transfers data you will notice that - when making a search - there is not a single image transferred. The search result - including images - comes back as a JSON object, which includes the images as base64 encoded binary data. Client side java script is rendering the incoming data into the DOM tree that is actually displayed in the browser and what you see when you click "View Source" or analyze the source.

Web Gateway does not see the same source, as it is rendered on the client, so applying the HTML opener will fail as the tags don't exist. Even blocking images by media type might fail, as no images as such are going through the proxy.

Such techniques are used on some web sites which have a huge number of visitors, for example Facebook does a similar thing. Even if the HTML Opener works on some sites it only works on the sites that come as full HTML source to the MWG. In Facebook this is only the very first request, so you can apply some HTML filtering here. As soon as you click a button or even refresh the data is obtained as optimized data that are rendered in Java Script.

Best,

Andre

0 Kudos
11 Replies
McAfee Employee

Re: Removing all Pictures from Google Search Results

Jump to solution

if you are looking to block all files with the extension *.img you should use criteria like:

HTMLElement.Name matches *.img

this will allow you to use wildcards(*) and match on most objects using this file extension.

-Sergej

0 Kudos
abigail
Level 9

Re: Removing all Pictures from Google Search Results

Jump to solution

Hi,

Thank you for your answer.

I fixed my rule according your advice.

I checked it with other sites, and I found that, some of the pictures weren't removed.

When I checked the code with F12, I found that, some of the img elements are still there.

Are there other rules I should add?

0 Kudos
McAfee Employee

Re: Removing all Pictures from Google Search Results

Jump to solution

That's correct... It might not match your Rule criteria URL.Host match *google*, as the contenct might not being delivered by google. To understand why something isnt blocked as expected, please use rule engine trace.

Rule Engine Tracing | McAfee Communities

https://community.mcafee.com/docs/DOC-5201

-Sergej

0 Kudos
abigail
Level 9

Re: Removing all Pictures from Google Search Results

Jump to solution

I changed the criteria to Always, and the rule - like that -

And still, only the pictures in the image search were removed.

0 Kudos
McAfee Employee

Re: Removing all Pictures from Google Search Results

Jump to solution

Abigail,

i cant see you the creteria "HTMLElement.Name" has been canged to  -  matches *.img insted of equeals "img"

and if your object you try to block isnt blocked you will need to check rule engine trace.

By the way.... Why do you try to block all images on google?

and which else images do you see when you're not in Picture search? (screenshot might help)

0 Kudos
abigail
Level 9

Re: Removing all Pictures from Google Search Results

Jump to solution

Sorry... - I changed again -

I see images in All, Videos and News.

We were asked to do this...

0 Kudos
abigail
Level 9

Re: Removing all Pictures from Google Search Results

Jump to solution

If I may, I have more questions -

1. Why I should use "*.img" instead of "equals img"? - The html tag is img.

2. Can I remove "a" tag in "table" without to open the "table" tag?

0 Kudos
McAfee Employee

Re: Removing all Pictures from Google Search Results

Jump to solution

What i identify due to my troubleshooting you might need to look for different parameter like here another example of facebook:

test.jpg

The Object "HTMLElement.Name" is equals "div"

and "HTMLElement.Attribute("id")" equals "imagebox_bigimmage"

something like that, unfortunately i didn't get this to work right now. Maybe i miss something jet.

-Sergej

0 Kudos
abigail
Level 9

Re: Removing all Pictures from Google Search Results

Jump to solution

Hi,

I already tested this rule, and it didn't work for me, also.

I checked the rule in other sites with other "id" value (- of course), and it worked fine.

What can I do with Google search? How can I remove the images?

0 Kudos