View Single Post
  #3 (permalink)  
Old 28-11-2009, 04:45
Rock's Avatar
Rock Rock is offline
Technical Support (eUKhost.com)
 
Join Date: Oct 2006
Location: localhost
Posts: 3,356
Send a message via MSN to Rock Send a message via Skype™ to Rock
Smile

Quote:
Originally Posted by MaFtuk View Post
nobody any ideas?!
Hi,

To restrict access to a particular file within a directory, use this in the .htaccess:

Any of the above techniques can be applied to a single file within the host directory instead of the directory as a whole.

<Files script.php>
order deny,allow
deny from all
allow from domain1.com
allow from domain2.com
allow from xx.xx.xx.xx
allow from yy.yy.yy.yy

</Files>


The above code will allow access only to the specified allow from hosts, to the file script.php. Additional file names can be specified, separated by commas; alternatively wildcards can be used to specify multiple files, eg: <Files *> would affect all the files in the directory.

You can download Page Guard Pro if you want to log all events containing authorized & unauthorized logins by IP Address, requested URI & along with more information.. from a web browser interface
__________________

Rock _a.k.a._ Jack
Windows Hosting || Windows Reseller Hosting
Cloud Hosting 100% UPTIME! || 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!
Reply With Quote