Protect your website bandwidth from other websites that tries to hotlink your images. Very simply you can prevent this using a .htaccess file in your images directory and add the following code This is really a simple approach RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?yoursitename\.com/ [NC] RewriteCond... (Continue reading)
Here i am gonna quickly explain you the difference between ScriptAlias and Alias example: ScriptAlias /cgi-bin / www/cgi-bin/ A request for http://mywebpage.com/cgi-bin/foobar would cause the server to run the script /www/cgi-bin/foobar. This configuration is essentially equivalent to: Alias /cgi-bin/ /www/cgi-bin/ <Location /cgi-bin > SetHandler cgi-script Options... (Continue reading)
Some times the AddHandler application/x-httpd-php .php .htm .html .my whatever if you put this in .htaccess file or in HTTPD.conf it seems to be not working. WHY? Because sometimes especially if you are using a shared hosting it will be always better... (Continue reading)
1. Register Globals When this directive is On, PHP will inject extra variables in the script such as HTML request variables, etc. PHP could inject these sort of variables in a script. The problem with this approach is that a developer... (Continue reading)
An attacker may manipulate the TRACE and TRACK methods to intercept your visitors’ sensitive data. The solution, of course, is disable these methods on your webserver.This is a security vulnerability found in Apache servers.So to disable this just add the... (Continue reading)