Jump to content

How can I block remote post to a form?


greg

Recommended Posts

If you mean robots that stumble upon your site and post, Captcha is what your looking for. If the violaters arent numerous you could try to block there ip's with .htaccess (google for: Order deny + .htaccess). But captcha nicer i think

Create a unique token on your form page, stick it in the session, add it as a hidden input to your form.  When submitted check that the hidden form field token matches the session token.  There are plenty of examples out there.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.