Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

serve custom page to blocked ip

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  browser history  
Author Message
freemont

External


Since: Sep 15, 2007
Posts: 5



(Msg. 1) Posted: Sat Sep 15, 2007 2:00 pm
Post subject: serve custom page to blocked ip
Archived from groups: alt>www>webmaster (more info?)

I want to block a range of IP addresses and have a special page display
when an IP in that range tries to access my site.

Blocking the range with htaccess I can do, but how do I tell htaccess to
serve my custom page? (if it can be done)

--
"Because all you of Earth are idiots!"
¯`·..·¯`·-> freemont <-·¯`·..·¯

 >> Stay informed about: serve custom page to blocked ip 
Back to top
Login to vote
Allodoxaphobia

External


Since: Oct 19, 2007
Posts: 3



(Msg. 2) Posted: Sat Sep 15, 2007 3:39 pm
Post subject: Re: serve custom page to blocked ip [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sat, 15 Sep 2007 14:00:04 +0000, freemont wrote:

> I want to block a range of IP addresses and have a special page
> display when an IP in that range tries to access my site.
> Blocking the range with htaccess I can do, but how do I tell htaccess
> to serve my custom page? (if it can be done)


If you are denying, what's wrong with:

|order allow,deny
|allow from all
|.
|.
|# 210/8 APNIC (whois.apnic.net)
|# 211/8 APNIC (whois.apnic.net)
|deny from 210.0.0.0/8
|deny from 211.0.0.0/8
|.
|.
|ErrorDocument 403 /path/to/custom_page.html

Or, am I missing something here?

Jonesy
--
Marvin L Jones | jonz | W3DHJ | linux
38.24N 104.55W | @ config.com | Jonesy | OS/2
*** Killfiling google posts: <http://jonz.net/ng.htm>

 >> Stay informed about: serve custom page to blocked ip 
Back to top
Login to vote
freemont

External


Since: Sep 15, 2007
Posts: 5



(Msg. 3) Posted: Sat Sep 15, 2007 4:58 pm
Post subject: Re: serve custom page to blocked ip [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sat, 15 Sep 2007 15:39:35 +0000, Allodoxaphobia writ:

> On Sat, 15 Sep 2007 14:00:04 +0000, freemont wrote:
>
>> I want to block a range of IP addresses and have a special page display
>> when an IP in that range tries to access my site. Blocking the range
>> with htaccess I can do, but how do I tell htaccess to serve my custom
>> page? (if it can be done)
>
>
> If you are denying, what's wrong with:
>
<htaccess code>
>
> Or, am I missing something here?
>
> Jonesy

Well I wanted to serve up a specific 403 to only that IP range, but I
decided to just keep it simple, and give all blocked addresses the same
page. Thanks anyway. Smile

--
"Because all you of Earth are idiots!"
¯`·..·¯`·-> freemont <-·¯`·..·¯
 >> Stay informed about: serve custom page to blocked ip 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
custom 403 page - I'm using cpanel's IPdeny to control access and I want to present a custom error page to those IPs. I added the following entry to .htaccess ErrorDocument 403/ custom403.htm When I try to access the site from a restricted IP, I don't get the custom....

blocked emails? - Has anyone had experience where people are saying the email they have sent to you (to a domain email address) bounced back even though you know the account is working. Have you had experience where maybe the address is black-listed and what did you do? ...

Help: How to tell if a Hosting provider is being blocked f.. - Is there any way to see if a hosting provider 's IPs are being blocked for SPAM? Eg. you may not wish to buy service from the co. if you can not send emails from your site! Thanks

Noob Q: site requires java, if java is blocked than... - Hi webmasters! Noob question here. I made a site which requires javascript. (created with a drag and drop program named webcreator, ...don't laugh) So if you have no java enabled or your firewall is blocking javascript than you get a blank page. So..

ASP job portal with SQL Serve - Hi, I am looking for an ASP jpb portal application to integrate with my content site. Is there any open source stuff available? I need the back end as SQL Server. Rgds Muthu
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]