cancel
Showing results for 
Search instead for 
Did you mean: 
abigail
Level 9
Report Inappropriate Content
Message 1 of 12

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.

1 Solution

Accepted Solutions
asabban2
Level 17
Report Inappropriate Content
Message 12 of 12

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

11 Replies
Highlighted
McAfee Employee smasnizk
McAfee Employee
Report Inappropriate Content
Message 2 of 12

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

abigail
Level 9
Report Inappropriate Content
Message 3 of 12

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?

McAfee Employee smasnizk
McAfee Employee
Report Inappropriate Content
Message 4 of 12

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

abigail
Level 9
Report Inappropriate Content
Message 5 of 12

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.

McAfee Employee smasnizk
McAfee Employee
Report Inappropriate Content
Message 6 of 12

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)

abigail
Level 9
Report Inappropriate Content
Message 7 of 12

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...

abigail
Level 9
Report Inappropriate Content
Message 8 of 12

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?

McAfee Employee smasnizk
McAfee Employee
Report Inappropriate Content
Message 9 of 12

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

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?

More McAfee Tools to Help You
  • Subscription Service Notification (SNS)
  • How-to: Endpoint Removal Tool
  • Support: Endpoint Security
  • eSupport: Policy Orchestrator
  • Community Help Hub

      New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

    • Find Forum FAQs
    • Learn How to Earn Badges
    • Ask for Help
    Go to Community Help

    Join the Community

      Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

    • Get helpful solutions from McAfee experts.
    • Stay connected to product conversations that matter to you.
    • Participate in product groups led by McAfee employees.
    Join the Community
    Join the Community