How to block the loading of a specific page?
I don't think it is possible to block curl as curl has the ability to send user agents, cookies, etc. As I understand it, it can completely emulate a normal user.
If you are worried about securing the form, you can create a random token that is sent automatically when the form is submitted. So anyone trying to create a script to automate the registration will have to worry about clearing it up first.
a source to share
There is one weakness in CURL that you can exploit, it cannot run javascript like a browser. So you can take advantage of this fact by first landing on the reg page, ask the server side code to check the cookie, if it is not there, send the JavaScript code to the browser, this code will set the cookie and do a redirect / reload ... after reloading the server side the side checks for the existence of the cookie again, including browsers, it will find it .. in case of curl, cookie generation and reload / redirect won't happen in the first place.
I hope I made some sense, bottom line ... use javascript to differentiate between curl and browser.
a source to share