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

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


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? 

Here's an equivalent of what I do now:

<a href="script.cgi?change_state=1"><img src="add.jpg"></a>

To POST, I guess it would be like this:

<!-- Some extra CSS is also need to surpress the extra space that the <form> tag adds  -->
    <form method="POST" action="script.cgi">
    <input type="hidden" name="change_state" value="1">
    <input type="image" src="add.jpg">
    </form>

I tried approaching it from another angle to see if robots.txt could
include query strings, and I couldn't find that does.

Are there some better alternatives out there?

Thanks,

    Mark


---------------------------------------------------------------------
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.