System Requirements
Before setting up your VPN connection, make sure your version of Windows Vista is up to date by running Windows Update.
Here are 20 things you can do to make your apache configuration more secure.
Disclaimer: The thing about security is that there are no guarantees or absolutes. These suggestions should make your server a bit tighter, but don't think your server is necessarily secure after following these suggestions.
Additionally some of these suggestions may decrease performance, or cause problems due to your environment. It is up to you to determine if any of the changes I suggest are not compatible with your requirements. In other words proceed at your own risk.
There is no sense in putting locks on the windows, if your door is wide open. As such, if you're not patched up there isn't really much point in continuing any longer on this list. Go ahead and bookmark this page so you can come back later, and patch your server.
By default many Apache installations tell the world what version of Apache you're running, what operating system/version you're running, and even what Apache Modules are installed on the server. Attackers can use this information to their advantage when performing an attack. It also sends the message that you have left most defaults alone.
There are two directives that you need to add, or edit in your httpd.conf file:
ServerSignature Off
ServerTokens Prod
The ServerSignature appears on the bottom of pages generated by apache such as 404 pages, directory listings, etc.
The ServerTokens directive is used to determine what Apache will put in the Server HTTP response header. By setting it to Prod it sets the HTTP response header as follows:
Server: Apache
If you're super paranoid you could change this to something other than "Apache" by editing the source code, or by using mod_security (see below).
Several apache installations have it run as the user nobody. So suppose both Apache, and your mail server were running as nobody an attack through Apache may allow the mail server to also be compromised, and vise versa.
User apache
Group apache
We don't want apache to be able to access any files out side of its
web root. So assuming all your web sites are placed under one directory
(we will call this /web), you would set it up as follows:
Order Deny,Allow
Deny from all
Options None
AllowOverride None
Order Allow,Deny
Allow from all
Note that because we setOptions NoneandAllowOverride Nonethis will turn off all options and overrides for the server. You now have to add them explicitly for each directory that requires an Option or Override.
You can do this with an Options directive inside a Directory tag. Set Options to either None or -Indexes
Options -Indexes
This is also done with the Options directive inside a Directory tag. Set Options to either None or -Includes
Options -Includes
If you're not using CGI turn it off with the Options directive inside a Directory tag. Set Options to either None or -ExecCGI
Options -ExecCGI
This can again can be done using the Options directive inside a Directory tag. Set Options to either None or -FollowSymLinks
Options -FollowSymLinks
If you want to turn off all Options simply use:
Options None
If you only want to turn off some separate each option with a space in your Options directive:
Options -ExecCGI -FollowSymLinks -Indexes
This is done in a Directory tag but with the AllowOverride directive. Set it to None.
AllowOverride None
If you require Overrides ensure that they cannot be downloaded, and/or change the name to something other than .htaccess. For example we could change it to .httpdoverride, and block all files that start with .ht from being downloaded as follows:
AccessFileName .httpdoverride
Order allow,deny
Deny from all
Satisfy All
mod_security is a super handy Apache module written by Ivan Ristic, the author of Apache Security from O'Reilly press.
You can do the following with mod_security:
Apache typically comes with several modules installed. Go through the apache module documentation and learn what each module you have enabled actually does. Many times you will find that you don't need to have the said module enabled.
Look for lines in your httpd.conf that contain LoadModule. To disable the module you can typically just add a # at the beginning of the line. To search for modules run:
grep LoadModule httpd.conf
Here are some modules that are typically enabled but often not needed: mod_imap, mod_include, mod_info, mod_userdir, mod_status, mod_cgi, mod_autoindex.
This can be done assuming your apache installation is located at /usr/local/apache as follows:
chown -R root:root /usr/local/apache
chmod -R o-rwx /usr/local/apache
By default the Timeout directive is set to 300 seconds. You can decrease help mitigate the potential effects of a denial of service attack.
Timeout 45
Apache has several directives that allow you to limit the size of a request, this can also be useful for mitigating the effects of a denial of service attack.
A good place to start is the LimitRequestBody directive.
This directive is set to unlimited by default. If you are allowing file
uploads of no larger than 1MB, you could set this setting to something
like:
LimitRequestBody 1048576
If you're not allowing file uploads you can set it even smaller.
Some other directives to look at are LimitRequestFields, LimitRequestFieldSize and LimitRequestLine.
These directives are set to a reasonable defaults for most servers, but
you may want to tweak them to best fit your needs. See the documentation for more info.
If you're running mod_dav (typically used with subversion) then you may want to limit the max size of an XML request body. The LimitXMLRequestBody
directive is only available on Apache 2, and its default value is 1
million bytes (approx 1mb). Many tutorials will have you set this value
to 0 which means files of any size may be uploaded, which may be
necessary if you're using WebDAV to upload large files, but if you're
simply using it for source control, you can probably get away with
setting an upper bound, such as 10mb:
LimitXMLRequestBody 10485760
Apache has several configuration settings that can be used to adjust handling of concurrent requests. The MaxClients
is the maximum number of child processes that will be created to serve
requests. This may be set too high if your server doesn't have enough
memory to handle a large number of concurrent requests.
Other directives such as MaxSpareServers, MaxRequestsPerChild, and on Apache2 ThreadsPerChild, ServerLimit, and MaxSpareThreads are important to adjust to match your operating system, and hardware.
If you have a resource that should only by accessed by a certain network, or IP address you can enforce this in your apache configuration. For instance if you want to restrict access to your intranet to allow only the 176.16 network:
Order Deny,Allow
Deny from all
Allow from 176.16.0.0/16
Or by IP:
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
According to the Apache documentation using HTTP Keep Alive's can improve client performance by as much as 50%, so be careful before changing these settings, you will be trading performance for a slight denial of service mitigation.
KeepAlive's are turned on by default and you should leave them on, but you may consider changing the MaxKeepAliveRequests which defaults to 100, and the KeepAliveTimeout which defaults to 15. Analyze your log files to determine the appropriate values.
chroot allows you to run a program in its own isolated jail. This prevents a break in on one service from being able to effect anything else on the server.
It can be fairly tricky to set this up using chroot due to library dependencies. I mentioned above that the mod_security module has built in chroot support. It makes the process as simple as adding a mod_security directive to your configuration:
SecChrootDir /chroot/apache
There are however some caveats however, so check out the docs for more info.
I have found the book Apache Security to be a highly valuable resource for securing an apache web server. Some of the suggestions listed above were inspired by this book.
Please post any suggestions, caveats, or corrections in the comments and I will update the post if necessary.
http://www.petefreitag.com/item/505.cfm
PHP is a server side scripting language. You can embed PHP code in your web pages along with HTML. When your server receives a request for a page, it first gives the page to the PHP handler program. The PHP handler outputs HTML code as-is, but when it encounters PHP commands, it executes them. Any HTML generated by the PHP commands is also output. The end result is a web page with content that has been customized on the server before being sent to whoever requested it.
PHP has capabilities that make it a potential security risk:
If you have a website, you can expect to be under constant attack from robots attempting to a) "send in" malicious data and scripts from the outside world, b) trick your server into fetching malicious scripts and running them, c) read and write files on your server. Their goal is to take control of your site and use it for their own purposes.
This article gives configuration settings for PHP and rules for PHP coding that are effective at blocking the most common types of attacks. The configuration lines are few and the rules are simple.
There are two files where PHP configuration commands can go: php.ini or Apache .htaccess.
You should use php.ini as your first choice, if you can. You should be able to use it if:
php.ini specifies the configuration settings PHP will use
when it is running on your website. It determines what things PHP
scripts are allowed to do and what they are prohibited from doing.
The following settings affect security.
In your public_html (the same folder where your site's main home page is), create a text file called php.ini that contains these lines. Instructions for customizing the text shown in red are farther down this page:
allow_url_fopen = Off
display_errors = Off
display_startup_errors = Off
log_errors = On
error_reporting = E_ALL
error_log = /home/yourUserID/public_html/phperr.txt
expose_php = Off
magic_quotes_gpc = On
magic_quotes_sybase = Off
register_globals = Off
These explanations are brief. This page of the PHP Manual has links to more.
allow_url_fopen = Off is especially important. It prevents URLs (internet addresses) from being used in PHP include() statements and in some other places. A command such as include("http://website.com/page.php") will not be allowed to execute. Only files that reside within your website can be included. You won't be able to include a file from a different server, but neither will anybody else. When someone else does it maliciously by embedding the URL in an otherwise innocent-looking HTTP request and hoping that your script can be tricked into including and running their script, it's called a Remote File Inclusion (RFI) attack. Having allow_url_fopen = Off dooms all such attacks to fail.
Some webmasters think they need to have allow_url_fopen = On because their pages are already coded to use URLs to include files from their own site or from some external site. It is worth expending some effort to try to stop doing that so that you can turn allow_url_fopen off:
These specify that all errors and warnings will be logged to your error log text file. NO errors or warnings will be displayed on any web page that is sent out from your server. Errors should never be displayed publicly because they can help someone figure out how to attack your server. Remember to check your error log when you are testing new code.
This defines the path and file to which your PHP errors and warnings are logged. Change yourUserID to the cPanel or other UserID assigned to you by your webhost. The filename can be anything you want. The path starting with /home seems to be a common one on Linux servers, but it might vary depending on your webhost. If the above doesn't work, ask them what it should be. public_html is only shown above as an example of where it fits in the path. You don't have to put your error log inside public_html. See below.
I recommend using a text file for error logging (as shown above), and not using the "system log" option that you might see mentioned. Your text file will accumulate errors indefinitely until you empty it, while the Apache system log can be flushed unpredictably.
Your error log file should be in an area of your webspace that is not publicly accessible. Any one of these methods will protect it:
With A) and B), you can only view the file with cPanel > File Manager or FTP, not by browser. With C), you can view the file in your browser by entering the password.
Not particularly important, but it doesn't hurt. The headers that accompany outgoing pages will not reveal that PHP is running or its version.
The PHP manual recommends setting this to Off, and dealing with quotes in a secure manner on your own, but we're assuming you don't know how to do that yet, and that you also don't actually have any need yet for the situations it addresses, so for now the best setting is On.
Another special setting of "magic quotes". This should be Off.
register_globals = Off is especially important. You've probably seen URLs that look like this: http://site.com/index.php?something=somevalue. When register_globals is On, the variable called something is passed into your script with its value set to somevalue. When register_globals is Off, variables passed in like this are not automatically dumped into your script's variable list. This makes it harder for someone to inject their own code.
This setting is not in the "recommended php.ini" above. I only mention it because you might run across it and wonder what it is and how it should be set. It restricts the permissions with which PHP scripts run. However, some very popular third party scripts, which you might want to use eventually, will not run properly when it is set to On. In addition, if your webhost uses suPHP, safe_mode serves no purpose. Lastly, beginning with PHP 6, safe_mode doesn't even exist. Therefore, it is best left out of your php.ini file, or, if present, set to Off.
If your webhost does not allow you to create your own php.ini, you can put configuration commands in .htaccess instead. Unfortunately, not all php.ini commands have .htaccess equivalents, but some of them do.
Put the following lines in a part of your public_html/.htaccess file that is
not delimited by HTML-style tags such as the
php_flag display_errors Off
php_flag display_startup_errors Off
php_flag log_errors On
php_flag magic_quotes_sybase Off
php_flag magic_quotes_gpc On
php_flag register_globals Off
php_value error_log /home/yourUserID/public_html/phperr.txt
php_value error_reporting
2147483647
The most important is the register_globals line.
It is very unfortunate that allow_url_fopen = Off has no .htaccess counterpart (although it will in PHP6). Because you cannot stop PHP from reading a file from a remote server, you need to make sure requests that try to do that maliciously are blocked so they cannot reach the PHP processor. A previous article has instructions how to use .htaccess to block requests that might be Remote File Inclusion attacks.
The following two also cannot be set in .htaccess, but they are unimportant:
expose_php = Off
safe_mode = Off
If you ever write code that won't run properly with the above settings, you are leaving behind your "beginner" status and need to study PHP security more carefully before you go any further. The Security section of the PHP Manual is one reference that should be read at some point, but it isn't easy and probably isn't the best place to start.
Your server can give you a complete report of all your PHP settings.
# This denies all web access to your php.ini file.
order allow,deny
deny from all
The settings list in Section 1a) was supposed to be as simple as possible, usable by anyone, with a minimum of effort required, but there is one more php.ini setting that's worth using if you can. Here is an example of its use, with a list of some of the functions that could be disabled for increased security:
disable_functions = exec,shell_exec,passthru,system,eval,show_source,proc_open, popen,parse_ini_file,dl,(comma-separated list of function names)
This tells PHP not to allow the listed functions to be executed by any script in your site. The functions listed above are especially powerful, and many malicious scripts use them. By blocking their use, you block the scripts from causing much of their damage even if they do somehow manage to get into your site and run.
However, some of these functions are used by popular third party PHP scripts such as forums, blogs, galleries, and shopping carts, so the reason I call this an "advanced" setting is that before using this line you must search all the PHP code in your site to make sure you don't disable functions that your site requires. Nevertheless, disabling functions you don't use is worthwhile if you don't mind doing the research.
disable_functions is for php.ini only. It has no .htaccess equivalent.
When the time comes that you need to break one of the Beginner Rules, first do a web search on: PHP security and spend a few days practicing proper coding techniques for the methods and functions you plan to use.
If necessary, email your web host. Ask these questions, and then modify your php.ini or .htaccess file as needed:
Additional security precautions for protecting your website are at
How to prevent your website from being hacked. How to repair a damaged site.
Setting up PublicVPN access under Windows Vista is simple. The following instructions go step–by–step through the creation process. These instructions work under all the client–side variations of Windows Vista, namely Home Basic, Home Premium, Business, and Ultimate.
The things to click and places to type your information are hilighted in red, yellow, green, and/or blue.
Before setting up your VPN connection, make sure your version of Windows Vista is up to date by running Windows Update.
Be sure that you run Windows Update before setting up your VPN connection.
First, click on the Start button and click “Control Panels”. This opens up the “Control Panel Home.”
Next, click on the “Network and Internet” control panel, which is circled in red below.
The next screen may not look quite like this if you have networks already defined. In any case, click on “Set up a connection or Network.”
Now, enter the server information.
In the text box labelled ‘Internet address’ ( hilighted in blue) type ‘gateway.publicvpn.net’. This is the Internet address of the PublicVPN.com servers.
In the text box labelled ‘Destination name’ (hilighted in green) type ‘PublicVPN.com’. This is the name of the connection, and will show up in the “Connect to a network” screen when we’re done.
Lastly, make sure that the checkbox labelled “Don't connect now; just set it up so I can connect later” (hilighted in yellow) is checked.
Then click the “Next” button.
In this screen, enter your PublicVPN.com username and password. This is the same username and password that you use to log in to the PublicVPN.com website.
In the text box labelled “User name:” (hilighted in blue), enter your PublicVPN.com username.
In the text box labelled “Password:” (hilighted in yellow), enter your PublicVPN.com password.
Optionally, check the “Remember this password” checkbox (hilighted in green) and you won’t have to enter your password when you connect to PublicVPN.com.
Then, click the ”Create” button.
You should see this screen next. Click the “Close” button to return to the “Network and Internet” screen.
In the “Connect to a network” screen, you should see the PublicVPN.com connection that we set just up. Right–click on the PublicVPN.com connection document (circled in red), and choose “Properties” (circled in green) from the menu.
Next, click the “Security” tab, which is hilighted in red.


yum install httpd-devel
cd /tmp
wget http://cband.linux.pl/download/mod-cband-0.9.7.5.tgz
tar xzvf mod-cband-0.9.7.5.tgz
cd mod-cband-0.9.7.5
./configure
make
make install
1. cd /usr/local/src
2. mkdir modsecurity2
3. cd modsecurity2
4. wget http://www.serverbuddies.com/files/modsecurity-apache_2.5.9.tar.gz
5. perl -pi -e ’s/ServerTokens Major/ServerTokens Full/’ /etc/httpd/conf/extra/httpd-default.conf
6. perl -pi -e ’s/ServerSignature Off/ServerSignature On/’ /etc/httpd/conf/extra/httpd-default.conf
7. perl -pi -e ’s/ServerSignature EMail/ServerSignature On/’ /etc/httpd/conf/extra/httpd-default.conf
8.tar xzf modsecurity-apache_2.5.9.tar.gz
9.cd modsecurity-apache_2.5.9
10.cd apache2
11. ./configure
12.make
13.make test
14.make install
1.cd /etc/modsecurity2/
2.wget http://www.serverbuddies.com/files/modsec.v2.rules.conf
1.vi /etc/httpd/conf/httpd.conf
LoadModule php5_module /usr/lib/apache/libphp5.so
1.LoadFile /usr/lib/libxml2.so
2.LoadModule security2_module /usr/lib/apache/mod_security2.so
1.LoadFile /usr/lib64/libxml2.so
2.LoadModule security2_module /usr/lib/apache/mod_security2.so
1.
2. # ModSecurity2 config file.
3. #
4. Include /etc/modsecurity2/modsec.v2.rules.conf
5.
1.service httpd restart

۱ فایل rar | حجم: ۱۱۷ مگابایت | لینک دانلود مستقیم
Corel® DRAWings® X3 نام نرم افزاریست که تمام امکانات و قدرت CorelDRAW® Graphics Suite X3 را شامل میشود. متخصصین و حرفه ای های رشته گرافیک به این نرم افزار اعتماد کرده و از آن بهره میبرند. قیمت نرم افزار نیز چیزی در حدود ۱/۱۵۰ یورو میباشد.
حداقل سیستم مورد نیاز برای استفاده عبارت است از:
Windows Vista® or Windows® XP (with Service Pack 2 or later)
1 GHz Intel® or AMD 32-bit (x86) processor
1 GB of RAM, 40 GB hard drive (5 GB free hard disk space after installation)
32-bit color graphics card
1024 × ۷۶۸ monitor resolution
Dedicated USB port for a USB dongle (V1.0 or V2.0)
DVD-ROM drive for software installation
Mouse or tablet
Microsoft® Internet Explorer 6.0 or later
Sound card required for multimedia training
Internet connection required for product registration and access to software updates
Recommended •
Windows Vista Business
2 GHz Intel or AMD 32-bit (x86) processor
2 GB of RAM, 80 GB or more hard drive (15 GB or more free hard disk space after installation)
Support for DirectX® ۹ graphics with WDDM Driver, 256 MB of graphics memory, Pixel Shader 2.0 in hardware, 32-bit color
1280 X 1024 monitor resolution (dual monitors recommended)
Dedicated USB port for a USB dongle (V1.0 or V2.0)
Backup device (e.g. DVD burner, tape backup, removable hard drive
Mouse or tablet
Sound card required for multimedia training
Internet Explorer 7.0 or later
لینک دانلود مستقیم نسخه کامل این نرم افزار با حجم ۱۱۷ مگابایت در ادامه مطلب موجود میباشد.