/    Sign up×
Community /Pin to ProfileBookmark

Blocking/Redirecting Static IP addresses to website

We need a server side solution to block/redirect 60 static IP addresses from visiting a website that is hosted on a server with many others (this must be done so it does not effect the other sites)

The server is Apache/PHP.

Is there a piece of software or some code in PHP that can be used to redirect those IP addresses?

Thanks in advance.

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@daed17Feb 04.2004 — IF you are running apache you can install the mod-rewrite use this mod-rewrite directive example....

^mydomain.com$? http://redirect.mydomain.com [R]

If you need any assistance, or still need a php solution let me know.
Copy linkTweet thisAlerts:
@cmossauthorFeb 04.2004 — Thanks for your reply..will need to discuss this offline as well as confer with the web host who will help implement a solution to this...

Is it possible to reach you through your company phone tonight or tomorrow?

Let me know. Thanks
Copy linkTweet thisAlerts:
@daed17Feb 04.2004 — Yes someone will always answer 24 hours/day.
×

Success!

Help @cmoss spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...