限制对服务器不需要的电话 [英] Restrict unwanted calls to the Server

查看:167
本文介绍了限制对服务器不需要的电话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个B2C的应用程序。我们有一些URL的未保护和一些脚本正在不断创下该URL的。


precondition:

We have a B2C application. We have some URL's that are not secure and some scripts are continuously hitting that URL's.

Precondition:


  1. 我们不希望实施该URL的安全性。

  2. 我们不希望使用验证码

我有一个公开网址很容易接触到所有用户,在幕后那个URL的访问某些服务。现在我让我的公共网址意想不到的用户正在使用我的服务,为个人着想。我不希望我的服务添加安全。我想限制IP地址或一些其他机制的基础上,那些用户。这是易堵静态IP的,但我不知道如何限制动态IP的。请帮助。

I have a Public url easily accessible to all users, behind the scene that url is accessing some service. Now i am getting unexpected users on my public url that are using my services for their personal sake. I don't want to add security on my services. I want to restrict those user's on the basis of IP address or some other mechanism. That's easy to block static IP's but i am not sure how to restrict dynamic IP's. Please help.

推荐答案

我想到一个快速的解决方案中:可以限制在Web服务器级别从一个单一的IP地址请求的数量。

I can think of one quick solution : You can limit the number of requests from a single IP Address at web server level.

例如,如果您使用的是Apache,下面配置将照顾它。

For example, if you are using Apache, below configuration will take care of it.

<Directory /home/*/public_html> -- You can change this location
    MaxConnPerIP 1  
    OnlyIPLimit audio/mpeg video
</Directory>

您可以访问以下链接了解详情:限制请求IP

You can visit this link for more details :Limit Requests for IP

不限网络服务器将提供这种类型的功能的具有不同配置或规则集

Any webserver will provide this type of feature with a different configuration or rule set

这篇关于限制对服务器不需要的电话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆