[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] Best practices to keep the robots from shopping ?



Mark Stosberg wrote:
> This morning I noticed that robots had been following "add to cart"
> links that I created. Oops. 
> 
> I know. Someone out there is thinking my application should have been
> more RESTful and used POST instead of GET for the add to cart links.
> 
> Ok. I buy in now. But POSTing seems like a pain. Is there an easier way?

It's a pain, but that's why it's there. I know you know this, but you
really shouldn't put things in links that have side effects. Any link
can be potentially bookmarked or, as you've seen, spidered.

I'm not sure there's a good way around this, and that separate script
for get/post idea just gave me the shivers....

-- 
Michael Peters
Developer
Plus Three, LP


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.