|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by mycarefreepc in PHP Scripting Language, Apache Web Server
I've got the following code on my landing pages so that I can dynamically generate the keyword the searcher used to arrive on the page through my paid advertising campaigns. (which the code works fine thanks to some help from EE).
<?php
if ($_GET['key'])
{echo htmlentities(ucwords($_GET
['key']));
}
else
{echo ucwords("Your Original Info Here");}
?>
Problem is, I can see this possibly being abused by some jokers who want funny screen shots as obviously I can pass any words I want to the page now. Is it possible to blacklist certain phrases or words? Is there an approach to this?
If someone types test.html?key=You Suck I don't necessarily want a screen shot taken of my website saying this. Does this make sense or am I being paranoid... ?
Thanks
20091118-EE-VQP-93 - Hierarchy / EE_QW_3_20080625