Computing Science and Mathematics
Hiding Your Email Address
To attempt to protect our departmental email addresses from spammers, it is possible to remove email addresses and "mailto:" tags from departmental web pages and hide them from robots behind a CGI script.
are 3 buttons which, when clicked, reveal the user's or mailing list's email address via a CGI script.
The HTML code that you need to produce a single button on your web pages is:
<form action="/cgi-bin/get-email" method="post"> <input name="user" class="deptbutton" value="SEARCH STRING" type="submit" /> </form>
where "SEARCH STRING" would be replaced in the above
3 examples by:
"Graham Cochrane",
"Head of Department" and
"Computing Science Advisers".
<form action="/cgi-bin/get-email" method="post"> <input type="hidden" name="user" value="SEARCH STRING" /> <input class="deptbutton" value="Email Me" type="submit" /> </form>
When a button is clicked, the CGI script performs a lookup based on the search string and returns a page with the email address and, if relevant, an associated web page address.
Additional Features
Due to user requests, the following extra feature is available:
<form action="/cgi-bin/get-email" method="post"> <input type="hidden" name="user" value="SEARCH STRING" /> <input type="hidden" name="subject" value="The subject text" /> <input class="deptbutton" value="Email Me" type="submit" /> </form>

Computing Science and Mathematics
Faculty of Natural Sciences
University of Stirling
Stirling
FK9 4LA
Scotland
UK