而不进行任何验证的IP地址(Allow IP address without authentication)

   IT问题网   2018-07-23 00:00:00

问 题

我已经设置了当前工作进展中的网站。我使用的,需要我的服务器上的脚本访问外部sms网关。不过,我已经设置了普通用户基本的用户名和密码验证,但短信网关无法通过该得到的。

我怎样才能让一个单一的ip通过认证不认证本身,并拒绝未通过身份验证的所有其他用户?

下面是我的的.htaccess 文件:

 订购允许,拒绝
所有允许
与authtype基本
的authuserfile /www/.site_htpasswd
authname指令"保护区"
需要用户管理
 
解决方案

刚刚发现,与帮助下josek:

 订单拒绝,允许
所有拒绝
与authtype基本
的authuserfile /www/.site_htpasswd
authname指令"保护区"
需要有效的用户
从1.2.3.4允许
满足任何
 

标签:进行任何验证地址



分享:

  • 微信
  • QQ好友
  • QQ空间
  • 新浪微博


热门推荐

HTTP的当量=英寸×UA兼容"内容=IE =边缘,镀铬= 1......在.htaccess把这个?(http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" ... Putting this in .htaccess)

problem i downloaded html5 boilerplate and it wouldnt val ...

如何使用mod_headers中和mod_expires缓存(how to use mod_headers and mod_expires to cache)

problem i want to cache images and other files on my site ...

如何从一个子目录中删除的.htaccess密码保护(How to remove .htaccess password protection from a subdirectory)

problem i have password protected my entire website using ...

请.git目录网站无法访问(Make .git directory web inaccessible)

problem i have a website that i use github (closed source ...

重写URL以htaccess的(rewrite url with htaccess)

problem first of all i am a beginner so please answer in ...

重写QUOT&; pretty的网址"?(Rewrite to "pretty URL")

problem this is an example of what i am trying to achieve ...

需要mod_rewrite的URL信息(mod_rewrite URL info required)

problem i am new to this mod_rewrite. i have been success ...

的.htaccess,迫使斜线和www(.htaccess, forcing a slash and www)

problem can someone please help me to force my website to ...

简单的301重定向在.htaccess与查询字符串不以重定向指令工作(Simple 301 redirect in .htaccess with query string does not work with Redirect directive)

problem i am trying to redirect a single url in a .htacce ...

如何将文本转换使用的.htaccess为小写的网址(How to convert text to lowercase URLs using .htaccess)

problem i want to set up 301 redirects in my .htaccess fi ...

"双向"改写("Two Way" Rewrite)

problem so, i'm trying to accomplish this: we have a url ...

与字preSS除非使用URL重写不工作[R](Url rewriting not working with wordpress unless using [R])

problem i have a wordpress installation on my website on ...

通过htaccess的重定向所有的HTTP和HTTPS非www网址https://www.xyz.com(Redirect all http AND https non-www URLS to https://www.xyz.com via htaccess)

problem for reasons much too long and complex to get into ...

重定向的* .htm为* .PHP(Redirect *.htm to *.php)

problem i am trying find out how to redirect all traffic ...

HTTPS重定向到非www和http到www(Redirect https to non-www and http to www)

problem i searched and found hundreds of related cases, b ...

如何从URL使用htaccess的本地主机和主机服务器删除“/公众”?(how can remove '/public' from url using htaccess for localhost and host server)

problem i'm using zend framework 2 on xampp. i created .h ...

的.htaccess重写规则到路径不改变网址(.htaccess RewriteRule to path without changing URL)

problem so, i've this problem: base website located at ...

我怎样才能mod_rewrite的,并保持查询字符串?(How can I mod_rewrite and keep query strings)

problem i want to mod_rewrite a url to another page, but ...

如何从PHP脚本改变外观的URL(How to change appearance of URL from within a PHP script)

problem i have some php and html in the same file, and i ...

删除尾随的问号htaccess的(Removing trailing question mark with htaccess)

problem can someone help me understand this code # remov ...