Jump to content

Blocking forms method='post' coming from other server ?


defroster

Recommended Posts

The only information you receive with any http request is what comes with the http request. That includes the ip address of the device that made the http request and to which the reply will be sent back (this is gotten out of the TCP/IP data packets), the URL that is being requested along with any GET parameters that are part of that URL, any headers that are included in the request, any COOKIES that are included in the request, and any POST data that is included in the request.

 

The only way you can identify where a request came from is by looking at the available information. If another web server is being used to directly POST data to your site and that web server has a fixed IP address, you can block the IP address. That will slow someone down, but it is fairly easy to go through a web proxy server to get a different IP address.

 

What sort of problem are you having that you are tying to solve because most problems with receiving undesirable input must be addressed in your code by validating the input that is received.

Link to comment
Share on other sites

Ahh, ok thanks for explaining. I had misunderstood a bit as I thought it could be controlled from the server (with some code perhaps) that all executed forms must be from the same webserver.

 

This is just spam prevention. But I guess captcha is the only way, no?

 

thanks, df

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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