Restrict access to webpages that needs to load more than a few seconds (let's say 20)
Currently I need to set on my server (CentOS 6.2) a way to restrict for some users access to pages that take more than 10 or 20 seconds to load. Is that possible through iptables? Or what suggestions do you have for this? Are there other ways to get this done?
Thanks. |
Quote:
|
Restrict access to webpages that needs to load more than a few seconds (let's say 20)
I'm trying to put some restrictions for specific users on my LAN. So I need to restrict access to a webpage for a specific user. What suggestions do you have for this? Is that possible through iptables (remember: restrict on webpage, not on IP)? I know that can be possible through squid (for the whole lan I think), but I would be more glad to implement it through iptables or something like this if possible.
|
Quote:
Thanks. |
Quote:
|
Quote:
|
I copied post #3 from a duplicate thread. You will probably apply the same solution to both which are variations on a theme.
|
If the web page is a php page, then you can put some logic at the top of the page to check for the IP address accessing it and redirect them out of there to another page.
Also, if the web server is apache, then you can use mod_rewrite to redirect IP addresses out of particular areas of the website. |
All times are GMT -5. The time now is 10:17 PM. |