Raycast hit on object's child only

I have an object, which has 2 child objects. Basically there is an image, has two circle on them. When the ray-cast method hits the image object, the child object also getting notified. I only want notification, when the ray hits the circles (the children on the image object). Separating the children from the parent is not an option, I have to find another solution.

What do you mean by ‘getting notified’ May need more information but some ideas:

Don’t put collider on the parent.

Put children and parent in different layers. Use layermask to distinguish between them.

Use Tags and test the tag, ignore things you don’t want.