Showing posts with label .htaccess. Show all posts
Showing posts with label .htaccess. Show all posts

20100305

How To Deny Access via IP Addresses

 How To Allow /Disallow Access To Your Site To Specific IP Addresses?

The following tips is for those webmaster who can acess the ".htaccess file"e.g.Wordpress.

Some time you need to you block access to your website from everyone except the IP addresses you specify.For any reasons This tricks can be veryy useful if your blog or website is under construction and you don’t want other visitors to see the site, or have search engine spiders indexing pages that are not yet completed.

By placing the following code in your .htaccess file,


order deny,allow
deny from all
allow from 12.345.67.890


 Use Htaccess Allow IP Address-
Just insert your IP address, or the IP addresses you wish to allow access to your site. Each IP address is placed on a new line. For example:


order deny,allow
deny from all
allow from 12.345.67.890
allow from 890.67.345.12



Advance Blogging Tips By http://wwwebog.blogspot.com
How To Allow /Disallow Access To Your Site To Specific IP Addresses

Changing index PATCH .html”or“index.php

 If you are blogging and use wordpress as your blog platform .By default, when a visitor types your domain name in their browser, the “home” or “index” file will be displayed- for instance “index.html” or “index.php”.
You can change the default index page by inserting the following code in your .htaccess file:


DirectoryIndex
default.html


Tips on changing the default page display
In the above example, the “default.html” page will be displayed by default. This can be changed to any filename you wish.

You can also insert this code in any .htaccess file in any directory you wish to change the default page for any specific internal folder.

 Thanks For Visiting This Blog.
This Blog is about Blogging Tips and Blogging Resources

weblog Contents: