Snort rule creation

I am creating a rule for snort to alert me on traffic that hits any search engine. I have little knowledge of the program. I would like to set it up so whenever someone goes out to google, bing, yahoo, or any others, it will alert me. I read something about using a $ sign in the rule. Thanks.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rich RumbleSecurity SamuraiCommented:
Using $ would mean your making a variable source, destination or a list... it's used so you can define your home_network, your dns_servers, your http_servers... you can use it to define search engine domains.
Look at "var AIM_SERVERS" in your snort.conf file as an example, to call that var, just use $AOL_SERVERS
Read the docs/readme.varibles file for even further explanations.
This will log an alert for the string  ""
alert tcp $HOME_NET any -> $EXTERNAL_NET $HTTP_PORTS (flow:to_server,established; content:"67 6f 6f 67 6c 65 2e 63 6f 6d 2f 73 65 61 72 63 68 3f "; sid:12345678; rev:1;)

There are some search rules in the snort rules already like in policy.rules for google desktop search for instance.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.