Web Hosting Deals Holiday Logo Design Webcam Chat Website Header Templates Register domain Search Engine Optimisation Web Hosting
Go Back   Talk Mania Forum > Programming / Scripting / Coding

Programming / Scripting / Coding Got a question about : PHP / Perl / Java / JavaScript / CGI Scripts / JavaScript coding. Ask here! We'll get you the answers !

 Image
Buy Sell Downloads

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-28-2007, 11:49 PM
Junior Member
 
Join Date: Feb 2007
Posts: 10
Maxibon is on a distinguished road
Protect

How do you protect a website so you dont get hacked ?

Reply With Quote
  #2 (permalink)  
Old 03-06-2007, 11:14 PM
Junior Member
 
Join Date: Mar 2007
Posts: 6
ticom is on a distinguished road
You can't... I think...
Something made by people can be cracked by people is my opinion.
But you can make it more difficould for crackers.
Make sure you're checking the fields in forms after a submit.

for example in php:
PHP Code:
<?php
if(!is_nummeric($_POST['number'])){
  echo 
'The number you entered isn\'t nummeric. You have to enter a number.';
} else{
  
// the rest of the script
}
?>
<form action="this_page" method="POST">
  <input type="text" name="number">
</form>

Last edited by ticom; 03-14-2007 at 10:17 PM.
Reply With Quote
  #3 (permalink)  
Old 03-11-2007, 02:10 PM
Junior Member
 
Join Date: Oct 2006
Posts: 10
Phoinx is on a distinguished road
I think it is almost impossible because the crackers/hackers will always be a step in front of the developers
Reply With Quote
  #4 (permalink)  
Old 03-14-2007, 07:49 PM
Base's Avatar
Senior Member
 
Join Date: Mar 2007
Location: North Yorkshire, UK
Posts: 121
Base is on a distinguished road
Send a message via MSN to Base Send a message via Skype™ to Base
Hey ticom

Just to tell you mate, don't mean to be a twat but there is an error in your code...

'The number you entered isn't nummeric. You have to enter a number.';

Way to sort that out would be

"The number you entered isn't nummeric. You have to enter a number.";

As i say i am not poo'ing on your skill or somthing mate, just incase somebody copys it or somthing...

Base
Reply With Quote
  #5 (permalink)  
Old 03-14-2007, 10:19 PM
Junior Member
 
Join Date: Mar 2007
Posts: 6
ticom is on a distinguished road
Quote:
Originally Posted by Base View Post
Hey ticom

Just to tell you mate, don't mean to be a twat but there is an error in your code...

'The number you entered isn't nummeric. You have to enter a number.';

Way to sort that out would be

"The number you entered isn't nummeric. You have to enter a number.";

As i say i am not poo'ing on your skill or somthing mate, just incase somebody copys it or somthing...

Base
Oh, i see, your right.
I have changed it in my origional post, good someone is watching the posts
Reply With Quote
  #6 (permalink)  
Old 03-22-2007, 04:14 AM
Junior Member
 
Join Date: Mar 2007
Location: Where Uncle Sam sends me.
Posts: 21
perm-a-newb is on a distinguished road
Another solution.

How about purchasing a good membership script like amember at amember.com. (No hyper-link = not spamming)
It's not cheap, but it's well worth it.
I use it and have had many hacking attempts stopped.
Hope it helps.
Bye,
Perm-A-newb
Reply With Quote
  #7 (permalink)  
Old 04-03-2007, 08:16 PM
Junior Member
 
Join Date: Apr 2007
Posts: 9
Dramo is on a distinguished road
Some basic things are mostly enough.

-Check EVERYTHING - This is actualy main idea of programming
-For protecting passwords, don't use just md5('pass'), create your own way to make hash. Remember also throw salt -> md5(sha1($mysalt.'pass'.$moresalt.'word'))

Remember check php.ini settings with ini_get() and set better settings with ini_set, most important is register_globals.
Reply With Quote
  #8 (permalink)  
Old 04-04-2007, 01:00 AM
Turbocharged_06's Avatar
VIP Member
 
Join Date: Mar 2007
Posts: 151
Turbocharged_06 is on a distinguished road
you can hire some1 to go through your site and look for vulnerabilities--- thats how most secure sites do it
p.s. i know a good and cheap one here

__________________
OUTLAW-WEB.NET
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +2. The time now is 07:15 PM.


Fake ID

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC8
Forums Copyright © Talk-Mania.com