I recently redesigned my gallery software, and in doing so I created some links that do things like flag or rank pictures. If you don't have javascript enabled they will still function, albeit in a somewhat weird way.
With javascript enabled, I intercept the click events and use ajax to get the results back.
The problem I had was that web crawlers like google are now "clicking" the links and voting on things unknowingly.
I've thought of a couple of ways to prevent this from happening but was wondering what the general consensus is on the matter.
1) abandon non-JS browsers and move the href portion of the link into the javascript.
2) have the server side code check the user's agent type and simply not do anything for some user agents.
3) abandon the current link paradigm for a button one.
I have some other questions, but I'm gonna start with this one as it may change the other questions. Thanks in advance.
With javascript enabled, I intercept the click events and use ajax to get the results back.
The problem I had was that web crawlers like google are now "clicking" the links and voting on things unknowingly.
I've thought of a couple of ways to prevent this from happening but was wondering what the general consensus is on the matter.
1) abandon non-JS browsers and move the href portion of the link into the javascript.
2) have the server side code check the user's agent type and simply not do anything for some user agents.
3) abandon the current link paradigm for a button one.
I have some other questions, but I'm gonna start with this one as it may change the other questions. Thanks in advance.