Is there a way to prevent crawlers from clicking buttons on my neocities website?

a month ago by reallykindasorta to c/webdev

The buttons are supposed to only be clicked when someone completes a series of tasks, bots clicking the buttons throws off the count. I don’t have my own domain it is nested under the main neocities.org domain.

e0qdk 10 points a month ago

Are your buttons actually buttons or just styled links? If the latter, try making them actual buttons in a form with method POST. Not a guarantee that rude software won't trigger it, but it's less likely to be done by accident.

path: 0 25800507, hotness: undefined, score: 10, children: 2
reallykindasorta 4 points a month ago

Good call they’re styled links, I will give that a try!

path: 0 25800507 25800934, hotness: undefined, score: 4, children: 1
onlinepersona 1 point a month ago

If they are styled dive that listen to a click event with JavaScript, that could also prevent them from "clicking" it.

path: 0 25800507 25800934 25802687, hotness: undefined, score: 1, children: 0
TrickDacy 2 points a month ago

You have buttons on your website, which write data somewhere that matters, without any authentication shielding them from being clicked by unexpected bots/people? If no authentication, this is bound to happen bot or otherwise.

path: 0 25802339, hotness: undefined, score: 2, children: 0
ArsonButCute 1 point a month ago

Are you hosting on your own machine or server? If so, you can add some buttons that are hidden such that only bots can see them and ban anything that clicks them.

I'm not sure personally how you'd manage it with html+css with no client side scripting, but my theory is to just move your 'I'm a bot' indicator button way off screen with css, or render it invisible and super small so it's unlikely a human could ever find it.

path: 0 25821515, hotness: undefined, score: 1, children: 0
webdev
webdev

@programming.dev

login for more options
5884
902
336

Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development

What is web development?

Web development is the process of creating websites or web applications

Rules/Guidelines

  • Follow the programming.dev site rules
  • Keep content related to web development
  • If what you're posting relates to one of the related communities, crosspost it into there to help them grow
  • If youre posting an article older than two years put the year it was made in brackets after the title

Related Communities

Wormhole

Some webdev blogs

Not sure what to post in here? Want some web development related things to read?

Heres a couple blogs that have web development related content

Credits

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

go to feed...