Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 103675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:09:40+00:00 2026-05-11T01:09:40+00:00

The basics: I have a contact form that uses php to validate the forms.

  • 0

The basics:

  • I have a contact form that uses php to validate the forms. (in addition to client side) This could be done in any server side language though.
  • The server side only allows A-z 0-9 for certain fields (it is acceptable to validate this field to English only with that extremely limited range)
  • If the form contains errors, I repopulate the fields so the user doesn’t have to retype before submitting again
  • I am willing to not let other sites post to my form, even if legitimate use could be found there.

I can easily make a form on a different web site that posts a dirty word to a field. Certain dirty words are perfectly legit according to the validation rules, but my employeer obviously wouldn’t like that to happen.

I am under the impression that dedicated hackers can affect cookies, php sessions and of course hidden fields are easy to spoof along with referrers and such. How can I block third party sites from posting to my page?

Please feel free to help me Google for this too. My search terms are weak and bringing up methods I know will fail.

What if somebody submits ‘d03boy eats cats’ via a form on their site and gets people to click a link that submits it to my form? (Admit it is possible, and my company cannot accept any risk) Then when a user clicks the link they see inside the ‘name’ field ‘d03boy eats cats’ and gets super offended and contacts PETA about our site’s content. We just cannot explain to the user what happened. True, nothing happened, but upsetting a single users isn’t acceptable to my employer.

Our current solution is to not report any user input, which in my opinion is a big usability issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T01:09:41+00:00Added an answer on May 11, 2026 at 1:09 am

    This sounds like you need a moderation system in place for user generated content, not a technical solution. Obviously you can check the referrer field, content scrub and attempt to filter the profane, but enumerating badness never works. (It can be an acceptable ‘first pass’, but humans are infinitely resourceful in avoiding such filters).

    Put the user submitted content into a queue and have moderators review and approve content. To lighten the load, you can set trusted users to ‘pre approved’, but you have said your client can’t accept any risk.

    Frankly, I find that impossible: even with moderators there is the risk that a moderator will subvert your system. If that is actually true (that they have zero risk tolerance) then I suggest they not accept any user input, don’t trust moderators and in fact eliminate the site itself (because an insider could go rogue and put something improper up). Clearly every act has risk; you need to find out how much they can accept, such as a moderator based approval queue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a pretty standard contact form that uses a cfc for processing now.
I have a basic CRUD form that uses PageMethods to update the user details,
The basics have already been answered here . But is there a pre-built PHP
I have a basic form with controls that are databound to an object implementing
I have a very basic form at http://www.happyholidaylites.com/contact.html and it is working great. When
I'm writing a contact form in ASP.NET MVC. The user will have the ability
I have been learning about the basics of C# but haven't come across a
I have seen the ASP.NET community buzzing about MVC. I know the basics of
Currently, i have basic C++ and PHP skills. But, i want to switch to
I have a basic ActiveRecord model in which i have two fields that i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.