iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Internet Security Discussion Forum This forum is for the discussion of security related issues. If you find a new Phishing scheme, spyware, virus or malicious site - let us know about it. If any of the above found you... here's where you ask for help.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-20-2006, 10:49 AM
WebProWorld Member
 
Join Date: May 2006
Location: Across the other border
Posts: 26
JimmiJames RepRank 0
Default Making my web server secure

I used SUSE 10.1, installed apache, mysql, php and ispconfig.

I was able to build a php page with content from a database so everything is working fine.

So now, before I put the site on the outside, what do I need to look for, install or test out to make my web server secure.

also, my web server will be behind a hardware firewall.
Reply With Quote
  #2 (permalink)  
Old 06-23-2006, 07:07 PM
WebProWorld Member
 
Join Date: Oct 2005
Location: Essex & London
Posts: 59
kevan RepRank 0
Default

Hi,
You can enable the firewall to only allow certain ports to be open /sbin/SuSEfirewall2 start/stop and edit the /etc/sysconfig/SuSEfirewall2 script until you get it right.
As regards apache, you can restrict access by editing the httpd.conf file to allow only restricted ip addresses, logins etc, add https security for additional safety whilst using passwords etc. etc
SuSE is a great package.
Best
Kevan
Reply With Quote
  #3 (permalink)  
Old 06-24-2006, 06:16 AM
WebProWorld New Member
 
Join Date: Jun 2003
Location: UK
Posts: 2
mbgj RepRank 0
Default basic security

Slightly advanced security can be achived by

apache load and activate mod_secure

this is a software firewall that filters requests, whereas the normal hardware firewall just closes ports.

You may want to look at serverSignature and serverTokens - these in Apache influence what is shown to the outside world in terms of OS and version.


PHP switch off PHP's signature x-powered

In your php.ini (based on your distribution this can be found in various places, like /etc/php.ini, /etc/php5/apache2/php.ini, etc.) locate the line containing “expose_php On” and set it to Off:

Any user input field make sure it's restricted to max length and input is striped off any malicious characters and validated.
PHPbuilder has a nice class over here
http://builder.com.com/5100-6371_14-6078577.html

That'll give you a fairly "secure" environment.

Best of luck
Expat
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Internet Security Discussion Forum

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



All times are GMT -4. The time now is 12:56 AM.



Search Engine Optimization by vBSEO 3.3.0