Deny Visitors by IP Address Using .htaccess File

Google Advertisements

Prev Tutorial Next Tutorial

How to Deny Visitors by IP Address Using .htaccess File

Using .htaccess file you can deny or allow any visitor to access your website. This is extremely useful for blocking unwanted visitors, or to only allow the web site owner access to certain sections of the web site, such as an administration area.

Syntax

order allow,deny
deny from 255.0.0.0
deny from 192.45.3.2
allow from all

In above syntax we deny two IP 255.0.0.0 and 192.45.3.2 but remaining IP allow to access our website.

Syntax

order allow,deny
allow from 255.0.0.0
deny from all

In above syntax block all visitors except those with the IP address '255.0.0.0', which you should replace with your own IP address.


Prev Tutorial Next Tutorial

Google Advertisements

Buy This Ad Space @$50 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 8076671483

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

Cloud computing is the on demand availability of computer system resources, especially data storage and computing power, without direct active management by the user. Cloud Computing Tutorial

College Projects Related to Java, AWT, C Projects for College, C++ Projects for College, Android Projects. Download Java C C++ Projects

Download Projects

Adsense Advertisements


Buy This ads Space 8076671483

Buy This Ad Space @$120 per Month, Ad Size 300X600 Contact on: hitesh.xc@gmail.com or 8076671483 Try this Keyword C++ Programs