Would not a star in orbit near a black hole (or other high gravity object) periodic dim in light radiating towards us ?
as the star move relatively closer or farther to black hole from our perspective... more or less light radiation would be captured by the black hole
you do not have to move behind something have light block
gravity itself can grab and hold light radiation
But the dimming is irregular. If it involved a single object in mutual orbit, the dimming would be consistent.