Hotlinking (also known as Inline linking, leeching, piggy-backing, direct linking, offsite image grabs, bandwidth theft) is the use of a linked object, often an image, from one site by a web page belonging to a second site. The second site is said to have an inline link to the site where the object is located.
Monthly Archives: December 2011
Redirect to a secure https connection
Add the below given code in your htaccess page to redirect to https connection
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Restrict maximum execution time – .htaccess
php_value max_execution_time 200
php_value max_input_time 200
Restrict file upload limits using .htaccess code
php_value upload_max_filesize 10M
php_value post_max_size 10M
Set up a 301 redirect
If you rename the url of a page and need to redirect old URL to your new page, use the below given code in your htaccess page
Redirect 301 old_file_name.html http://example.com/new/file_name.html
Set the default page of each directory
You can set any page as a default page in a directory by adding below given code in your .htaccess file
DirectoryIndex firstpage.html
Create a custom error page
You can create custom error pages and redirect to these pages by adding the below given codes in the htaccess pages
ErrorDocument 404 /404.php
ErrorDocument 500 /500.php
ErrorDocument 401 /401.php
ErrorDocument 403 /403.php
Prevent directory browsing
If index file is not there in a directory, visitors can view all the files in that directory.
You can prevent this by adding a single line code (Given Below)in your .htaccess file .
Options All -Indexes
How To Reset Admin Password – Joomla
store users details ie table with name end with “_users”2) Make sure that the username exists in the table( let the user name be ‘admin’)
3) Execute the below given query UPDATE jos_users
SET password=MD5(‘new password’) WHERE username = “admin”;
compare php versions
if(version_compare(phpversion(), '5.2.0', '<')) { echo “PHP 5.2.0 (or greater)'; }