Show Posts
|
Pages: [1] 2 3 4 ... 203
|
6
|
Multimedia & Design / Website Design / Adding Gzip compression in Apache using htaccess
|
on: February 23, 2011, 07:15:14 am
|
Optimize your website loading time by compressing files into smaller size using htaccess on Apache. Put this in your directory htaccess file. # compress text, html, javascript, css, xml: AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript
Source http://httpd.apache.org/docs/2.0/mod/mod_deflate.html
|
|
|
7
|
Multimedia & Design / Website Design / Skip the download dialogue using .htaccess
|
on: February 23, 2011, 07:13:05 am
|
Usually when you try to download something from a web server you get a request asking whether you want to save the file or open it. To avoid that you can use the below code on your .htaccess file. AddType application/octet-stream .pdf AddType application/octet-stream .zip AddType application/octet-stream .mov
|
|
|
8
|
Hardware, Software and Security / IT Security Forum / Using htaccess to stop hacking attempts
|
on: February 23, 2011, 07:11:15 am
|
If you want to increase the security level of your website, you can chuck these few lines of codes to prevent some common hacking techniques by detecting malicious URL patterns. RewriteEngine On # proc/self/environ? no way! RewriteCond %{QUERY_STRING} proc/self/environ [OR] # Block out any script trying to set a mosConfig value through the URL RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR] # Block out any script trying to base64_encode crap to send via URL RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR] # Block out any script that includes a <script> tag in URL RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR] # Block out any script trying to set a PHP GLOBALS variable via URL RewriteCond %{QUERY_STRING} GLOBALS(=|[|\%[0-9A-Z]{0,2}) [OR] # Block out any script trying to modify a _REQUEST variable via URL RewriteCond %{QUERY_STRING} _REQUEST(=|[|\%[0-9A-Z]{0,2}) # Send all blocked request to homepage with 403 Forbidden error! RewriteRule ^(.*)$ index.php [F,L]
Source http://forum.joomla.org/viewtopic.php?p=2193205
|
|
|
12
|
Hardware, Software and Security / Software / Prey, Open Source Software for Tracking Stolen Laptops
|
on: January 20, 2011, 07:17:32 am
|
Prey is a free and open source laptop tracking software developed by Fork, that helps recover computers by tracing their location through the remote retrieval of information. The software is activated from the outside by using a URL as a checking method, and phones home by sending a detailed report either to a centralized control panel or directly to the computer owner's mailbox. Basically you install a tiny agent in your PC or phone, which silently waits for a remote signal to wake up and work its magic. This signal is sent either from the Internet or through an SMS message, and allows you to gather information regarding the device's location, hardware and network status, and optionally trigger specific actions on it. http://preyproject.com/
|
|
|
|
|