navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

RE: You can use css to help defeat spam harvester botsbots

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> RE: You can use css to help defeat spam harvester botsbots
Page: <<   < prev  1 [2]
 
jaybee

 

Posts: 14122
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: You can use css to help defeat spam harvester botsbots - 6/16/2006 13:28:14   
Try this,

it gives you a clickable link but if javascript is turned off you get an email address you can copy and paste. The screen readers pick that up too.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to ou812)
Tailslide

 

Posts: 5972
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: You can use css to help defeat spam harvester botsbots - 6/16/2006 13:39:19   
That seems pretty neat.

I think I'll set it up on a new email addy and leave it for a while to see what happens.

I'll let you know if I get any spam.

Edit: is it possible to do this without document.write? Can you use document.createElements() ?

< Message edited by Tailslide -- 6/16/2006 13:52:23 >


_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to jaybee)
womble

 

Posts: 5501
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
RE: You can use css to help defeat spam harvester botsbots - 6/16/2006 20:31:53   
You can also use the same sort of thing on contact forms. I've been getting spammed to death on one of my sites and I couldn't work out why - I'd encoded all visible email addresses using hex/ISO (or so I thought), so I couldn't figure out how the nasty little bots had got my address.....I'd completely forgotten until I read your post today that set alarm bells ringing that the contact form I was using had a hidden field:
<input type='hidden' name='rec_mailto' value='name@domain.com' />

Consequence? Those pesky little bots had a field day...:)

Solution? My hidden field now reads:
<form action="scripts/contactform.php" method="post" id="contactform" enctype="text">
   <fieldset>
	<script language="javascript" type="text/javascript">
	<!--
		var username = "name";
		var hostname = "domain.com";
		var linktext = username + "@" + hostname;
		document.write("<input type='hidden' name='rec_mailto' value='" +username+ "@" + hostname + "' />");
	//-->
	</script> 
	<noscript>
	<p>
	<a title="Copy and Paste the email address to your email editor to send us an email">name<code>@</code>domain.com</a>
	</p>
	</noscript> 
	<input type='hidden' name='rec_subject' value='Contact from the website' />
	<input type='hidden' name='rec_thanks' value='../contactthanks.php' />

etc. etc.

Form has a warning slapped on it that javascript needs to be enabled to use it, and if it isn't, the email address magically appears up at the top of the form.


_____________________________

~~ "A cruel god ain't no god at all" ~~
:)

(in reply to Tailslide)
rdouglass

 

Posts: 9187
From: Biddeford, ME USA
Status: offline

 
RE: You can use css to help defeat spam harvester botsbots - 6/16/2006 23:19:14   
For those that have the email magically appear when JS is off; don't most spiders and 'bots run with no JS emulation? IOW, aren't they just automated browsers with no JS? How is that effective? Genuinely interested...:)

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to womble)
Page:   <<   < prev  1 [2]

All Forums >> Web Development >> Cascading Style Sheets >> RE: You can use css to help defeat spam harvester botsbots
Page: <<   < prev  1 [2]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts