What to use for a Light Barrier ?

Ah ok, now I understand better.

I already have a photoresistor and tried out some circuits.
And my result is, that it is too sensitive to normal sun light difference over the day.
I was told that there were special photoresistors for different types of lights (distinguished by the wave length, e.g. red laser)
Your link is about a PURPLE laser, is there a PURPLE-sensitive photoresistor?