Thread: Is this correct
-
21-01-2010, 10:48 #1
Is this correct
Is this code correct? Also how do I allow five IP's only and deny the rest to my www.site.com/index.php. Below I have one allowed.
<Directory /path/to/index/>
Order Allow,Deny
Allow from 1.2.3.476.89
Deny from all
</Directory>
Thanks.
-
21-01-2010, 11:29 #2
If you add this directive, you need adding AllowOverride All into httpd.conf (not secure)
put your .htaccess into /path/to/index/
with
Order Deny,Allow
Deny from all
Allow from 123.123.123.121
Allow from 123.123.123.122
...
Allow from 123.123.123.125
OR addin into httpd.conf
<Directory /path/to/index/>
Order Deny,Allow
Deny from all
Allow from 123.123.123.121
Allow from 123.123.123.122
...
Allow from 123.123.123.125
</Directory>
P.S. May be better to use .htpasswd?Make your website the fastest one - Web Optimizer* web.stakh.com
-
22-01-2010, 12:29 #3
IP restriction using htaccess....
Thanks. What will a code like this show in the browser? [The xxxx is where the IP will go.]
<Limit GET POST PUT>
order deny,allow
deny from all
allow from xx.x.xxx.xxx
</Limit>
-
22-01-2010, 12:45 #4
It depends on the situation

read this (core - Apache HTTP Server#limit )Make your website the fastest one - Web Optimizer* web.stakh.com
-
22-01-2010, 13:13 #5
To allow my self and deny all other Ip's, would a simple code like the one below be best?
order deny,allow
deny from all
allow from 12.345.6.78.9
-
22-01-2010, 14:20 #6
Rock _a.k.a._ Jack
Windows Hosting || Windows Reseller Hosting
Cloud Hosting || Powerful Dedicated Servers
Follow eUKhost on Twitter || Join eUKhost Community on Facebook
For complaints, grievances or suggestions kindly email our FeedBack Dept.
Proper action will be taken accordingly & instantaneously!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)


LinkBack URL
About LinkBacks



Reply With Quote



You here anything back about the banner on the right ? Tis driving me nuts having nothing but white...
Anyone else having issues on the...