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 7170013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:07:33+00:00 2026-05-28T15:07:33+00:00

Although my site is still far from done, I’ve started thinking about web security.

  • 0

Although my site is still far from done, I’ve started thinking about web security. This site will be extremely public and contain important information people assume is true, that I wouldn’t want hijacked. It’d be a disaster is this site got hacked, so I started thinking of some ways to protect it, or fight back.

Everything has been made with dynamic html through PHP, except for error messages, which use javascript popup alerts triggered by PHP cookies. There are textbox forms and dropdown boxes, all encased with htmlentities to prevent code from being run.

So I started thinking, “what are the ways that my site’s security could be compromised, what weapons of choice do hackers use?”

  • I know about changing the source code of the site with tools like firebug or chrome for themselves, but that shouldn’t matter because I use PHP, and I’m more worried about what EVERYONE sees.

  • They can use javascript injections

  • They could submit code to execute to the forms

  • They could DDoS the site, which would crash it and to which I don’t know of any defense. But I really don’t think I’d be dealing with a entire faceless group of internet megaterrorists.

  • They could change the html of email submission forms to get my password sent to me (them).

  • They could bruteforce my password for the server/ftp, but I use strong passwords by using all types of characters on a US keyboard.

So what are the ways can I protect my site from being hacked? What are all the ways (or general tactics and categories) that hackers choose to destroy or exploit sites?

Are any of the things from the list of defense traps a good or possible idea??

  • 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. Editorial Team
    Editorial Team
    2026-05-28T15:07:34+00:00Added an answer on May 28, 2026 at 3:07 pm

    First thing’s first, security is a huge area, way too broad for a SO question, but I’ll try to address one or two of the things you mentioned.

    Firstly, I believe you’re underestimating the ingenuity and danger of some of the attacks which applications are exposed to on the internet these days. The items you mention do cover a few of the more common and well known attacks but you can’t simply explain how you’re mitigating those few and be satisfied that your site will be safe. If you expect attention from hackers on your site (and even if you don’t), you should be coding with security in mind from the very start. I’m not even going to try and go into detail on that statement here, as it’s the subject of several books, suffice to say that the items you mentioned don’t even begin to cover anything like the amount of attacks that are out there.

    As for all the ‘traps’, clever as they are, I wouldn’t bother. Most variations on the ‘security by obscurity’ idea are generally wasted effort – an attacker will generally have ways of finding the traps before they’re tripped, or even avoiding them entirely. At best, you’d catch them once, then they simply use the same attack to get in again and second time they don’t make the same mistake. All the difficulty of coding the traps, and having to go through annoying routines to log in as a legitamate user for no real gain in security.

    Finally, I think you should focus less on brute forcing, and more on the attacks that are based on exploiting vulnerabilities in your actual code, database structure, server solution, etc. Sure, implement your idea that blocks logins for a while after x failed attempts, but in reality the correct security solution here is having passwords that would take a prohibitavely long time to brute force and making sure they aren’t shared with anyone or, (heaven forbid) stored in plain text on the database.

    Those are just a few thoughts, anyway. I’d recommend picking up a book on the subject, as it’s far to wide an area to explain in an answer here, and I don’t have the expertise to do so at any rate.

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

Sidebar

Related Questions

One of the web pages on our site is extremely long. Although the page
I have been browsing this site for the answer but I'm still a little
I was just reading this site which states: Although string is a reference type,
This will probably make me look lame but still -- I can't find any
This is taken from Jon Skeet's excellent personal C# site ( http://www.yoda.arachsys.com/csharp/ ): StringBuilder
I have a local site (IIS6, although similar issue with a totally different site
I'm building a site using CodeIgniter that largely consists of static content (although there
I had a Django site running on Dreamhost. Although I used SQLite when developing
I wrote a site using ASP.NET MVC, and although it is not completely SEO
Although I'm specifically interested in web application information, I would also be somewhat curious

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.