About this Script | Suggested Uses

Suggestions

- Don't show ads to certain users. Firefox users and people visiting from social media sites tend not to click on ads and are generally turned off by them.

- Customize your landing page. People like the familiar. If the user is using firefox, put a firefox logo on your site. If they are on a Mac, put a Mac button on your site.

- Geo-target your website. If your site is available in multiple languages, then when a user comes from a different country, send them to the translated version of your site.

- Ban certain users. Are Russian spammers using up all of your bandwidth with their spam bots? Require Russian users to fill out a captcha to continue using your site.

Advanced Uses

You can use any of the variables in your own custom scripts. The variable names are:

$browser
$country
$state
$city
$system
$referrer
$resolution
$language

For example, if you wanted to display the user's browser type, you could put the following code in your website:

<? echo $browser; ?>

 


 

To make different messages to different users, you can copy and paste the last few lines, changing only the condition and the output.

For example, to say "Epic" to Mac users on Firefox and "Fail" to IE users you would check the Mac and Firefox buttons, then the last few lines of code would be:

if (($browser=='firefox')&&($system=='macintosh'))
eval('?>Epic
<?');

copy and paste that just below itself, changing the variable (firefox) and output (Epic) to:

if (($browser=='ie')&&($system=='macintosh'))
eval('?>Fail
<?');

 


 

You can put a keyword instead of a domain name in the referrer section. The referrer section searches the entire referring URL string for the word you enter, not just the domain name. If you want to target people who searched for the keyword "Free" you could just put that keyword in the referrer section.