The Giza Pyramids, being the main tourist attraction in Egypt, attract millions of tourists each year. They likewise attract a large number of the most determined opportunists for miles around. Report any instances of harassment by camel drivers and tourist touts to the black-uniformed or white-uniformed in the summer Tourist Police immediately, and be prepared for all manner of potential scams, possibly including "advice" from official-looking individuals that an attraction is closed or has an alternate entrance. Also be aware that any "favour" of any kind offering directions, being shown something, etc might be done in expectation of a tip, so be cautious when accepting unsolicited help although don't let your holiday be spoiled by overzealous caution, you also might encounter genuine help. Also note that some Tourist Police might routinely offer to help you in the expectation of a tip. Many known scammers will operate right in front of the tourist police, who are either in on it or don't bother to intervene.
Tips to avoid harassment:
If on your own, headphones make the incessant "Hello, where are you from my friend" conversation-starters easier to ignore, smiling and pointing at the headphones seems to do the trick.
Avoid making eye contact, starting conversations or accepting any help with taking pictures or posing for pictures for you -- they will see you as an easy target for harassment.
Say "La Shukran" No thanks as you do this, it shows you know a bit more than the average tourist and will not be seen as aggressive or rude. Smiling as you say it doesn't hurt as it doesn't seem to be seen as an invite to talk, but shows you are not trying to offend.
Additional useful safety tips:
Be cautious when choosing a local horse or camel ride; you may be ripped off or put in dangerous situations. The 'donkey-mafia' that operate by the doors of the main entrance will adopt the most 'persuasive' and often bullish techniques to get you onto their animals, and they do not appear to understand the meaning of the word 'No'. They will cause such a scene when you say no and have to get off them, which will result in you having to pay for the privilege of refusing their hospitality. NOTE: Some of these people were involved in the Battle of the Camels during the revolution, in which innocent civilians were killed. Use as your conscience dictates.
Don't climb any of the Pyramids--officially forbidden and extremely dangerous!
As anywhere else in Egypt, in hot months especially, take plenty of bottled water with you and drink it!, wear a hat and wear sunscreen--sunglasses are also definitely a good idea!