4

Is there a way to prevent the editing of HTML and CSS contents in a page using Firebug-like tools?

I found that some users are editing some values in hidden fields and some contents which written between a div or span tag for gaining some profits. They are doing mostly by editing with help of tools like firebug. Is there any way to identify such modifications? The problem here is that the values they are editing is generated when the page is compiled. The page is developed in PHP. The editing is done mostly in between the tags.

  • 3
    This question appears to be off-topic because it does not demonstrate a minimal understanding of the problem being solved. – Jim G. Aug 4 '13 at 2:20
  • 7
    Bit harsh? In any case, isn't it better to help them and point them in the right direction? It's a well written simple question to which there is already a good clear simple answer. – James Aug 4 '13 at 10:03
  • +1 for a simple, clear, question that is relevant to many people. We were all noobs once. – MarkJ Aug 4 '13 at 15:20
25

Nope, sorry. Even if you could, users could just submit the form to your site using some other tool.

The golden rule here is: Never trust user input. Be sure to validate everything on the server side (in php) and look up any important values from your database instead of trusting whatever came from the user.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.