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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 128k
  • Answers 128k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer There's the graph theoretical answer and the programmer's answer to… May 12, 2026 at 5:38 am
  • Editorial Team
    Editorial Team added an answer Depending on your data type, you can always use Currency,… May 12, 2026 at 5:38 am
  • Editorial Team
    Editorial Team added an answer From the output of java -X: -Xloggc:<file> log GC status… May 12, 2026 at 5:38 am

Related Questions

I am working on a website hosted on microsoft's office live service. It has
Please forgive the awkwardness of this question, I honestly don't know how to phrase
I'd like to store a set of key/value pairs in the application settings of
I would like to write a plug-in that will allow a custom written CRM

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.