close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Issue with mischief-maker

Thread began 1/14/2011 10:34 am by dcb286193 | Last modified 2/05/2011 3:02 pm by dcb286193 | 1998 views | 16 replies

Jason ByrnesWebAssist

the current page submit trigger looks at the $_SERVER['HTTP_REFERRER'] variable and the $_SERVER['SERVER_NAME'] variable to make sure that they match.

the $_SERVER['SERVER_NAME'] is set by the server to the servers domain. the $_SERVER['HTTP_REFERRER'] is set to domain of the page that the post came from.

current page submit also looks at the page name of the referer, and makes sure they match.

A common tactic that a hacker will use is to visit your form page, and view source in the browser, then copy the source code.

He will then create a new page with your source code, set the action of the form to post to the form on your domain, upload it to his server to try and hack your form.

In this case, the Button submit trigger will still work, because he is just copying your form, element for element.

If you use the Current page submit trigger it wont work though, since the HTTP REFERRER will not math the SERVER_NAME


Setting the Server Validation behavior to use the Any form submit trigger will run the validation any time a post is made to the page. you want the validation to occur no matter what.

you only want the Insert or Email to send if the form that is being posted is on your server.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...