Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am an ISP and I need to suspend with a message the clients who didn't pay. For every web page they access they have to see "suspended" (port 80) and all the other ports need to be closed. How can I accomplish this? Thanks.

share|improve this question

migrated from Oct 20 '10 at 17:54

This question came from our site for professional and enthusiast programmers.

Looks a lot like homework. Were you actually an ISP you'd know how to use Google. – TomMD Oct 20 '10 at 17:36

you set up apache with default web-host hosting whatever information you want to pass.

you tell apache to show that message for any request:

ErrorDocument 404 /index.php

you redirect client's [] traffic to your apache [i assume it runs on your router]:

iptables -t nat -A PREROUTING -s -p tcp --dport 80 -j REDIRECT --to localhost:80 
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.