Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
I have created a website using asp.net with C# and SQL server as database but frequently it is hacked and change the all data in my database. Please help me how can I protect my website.

Please reply soon
Posted

1. Read how to post a proper question here through FAQ.
2. Learn basic security mechanisms one must employ.
3. If needed, learn advanced security mechanisms one must employ.
4. Implement security mechanism.
5. Come back with specific question.

Some really trivial mistakes(ensure you did not do it):

1. Sending out connections strings as plain text over http(for some weird reason).
2. SQL injection.
3. Sharing passwords.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 5-Mar-14 14:42pm    
Fair enough, a 5. And the list of point it good.
—SA
Maciej Los 5-Mar-14 14:57pm    
Agree!
No complete details from you. Anyway lot of things there, check this wiki page. Hacker (computer security)[^]

Frequent/popular things are,
0) Weak passwords - Salted Password Hashing - Doing it Right[^]
1) SQL Injection - SQL Injection Attacks and Some Tips on How to Prevent Them[^]
2) Cross site scripting - Cross site scripting: Common threats in web applications[^]
3) Review your website security - ASP.NET web application security review: Do's & Don'ts[^]
4) Denial of Service (DOS) attack - 10 ASP.NET Performance and Scalability Secrets[^]
N) More...... - http://www.codeproject.com/KB/web-security/[^]
 
Share this answer
 
Hacked web site = SQL Injection.

How to protect from hacks? Have a look here: How to update an existing resord in a SQL database[^]
 
Share this answer
 
Prevent using standard SQL commands such as

select * from
insert to
and so on


instead, you can use stored procedures and triggers to prevent possibly the most common threat to databases; SQLinjeciton...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900