Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-19-2001, 02:18 PM   #1
tenletters
Confirmed User
 
tenletters's Avatar
 
Join Date: Jan 2001
Location: the deep south
Posts: 2,079
How do I block *****?

Wondering how I can, if I can, block certain domains from accessing pages on my domain.

What I need is something that will grab people from other countries and send them off to a url specified in the code.

(example - www.bandwidtheaters.ru)

I've looked around but must be looking in wrong places.

Thanks in advance!
tenletters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2001, 02:25 PM   #2
ldinternet
Confirmed User
 
Join Date: Apr 2001
Posts: 8,245
I've wondered the same thing. I'd like to know how to serve based on country also...

I've mastered .htaccess as per my requirements, hotlink protection, error documents and referrer redirection.

However, with the redirection, I can only redirect, for example, if the referrer is NOT cheatingscumbags.com

I'd like to know how to set up .htaccess redirect (for example) traffic if it IS coming from cheatingscumbags.com
ldinternet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2001, 02:32 PM   #3
Henrik
Confirmed User
 
Join Date: Jan 2001
Location: Non cheating area, Denmark
Posts: 228
IIS 5.0 has a nice feature, where you can grant access to all Ip adresses or domains except for... <your list> etc.. Those on the list will just get a 403 error. Is that what you are looking for ?
Henrik is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2001, 02:48 PM   #4
TFCash
Confirmed User
 
Industry Role:
Join Date: Apr 2001
Posts: 1,738
you can do this with php pretty easily. Something like this:

<?php
ereg("\.([a-z]+)$", $country, $regs);
switch ($regs[1]) {
case "uk": header("Location: http://....uk site"); break;
case "es": header("Location: http://...spain site"); break;
default: header("Location: http://...default site");
}
?>


Tim
TFCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2001, 02:48 PM   #5
tenletters
Confirmed User
 
tenletters's Avatar
 
Join Date: Jan 2001
Location: the deep south
Posts: 2,079
No more like something I can put on the server that would control all pages on my domain and subdomains.

Is there an htaccess that would make this happen?
tenletters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2001, 02:51 PM   #6
tenletters
Confirmed User
 
tenletters's Avatar
 
Join Date: Jan 2001
Location: the deep south
Posts: 2,079
hardcore... I don't know anything about php... where would I put that code on my server?
tenletters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-19-2001, 03:35 PM   #7
Susan
Confirmed User
 
Join Date: Feb 2001
Location: Amost UK central
Posts: 772
I am working on the same idea but with a few extras for good measure. Wish I had learn't php inline code instead of perl

HCH - I have started reading the PHP book - its not so bad, just finding the time that's the problem.
Susan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-13-2003, 06:06 AM   #8
Paul Markham
Too old to care
 
Paul Markham's Avatar
 
Industry Role:
Join Date: Jun 2001
Location: On the sofa, watching TV or doing my jigsaws.
Posts: 52,943
UNBAN ME, LENSMAN!
Paul Markham is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-13-2003, 06:08 AM   #9
mrmovie
So Fucking Banned
 
Join Date: Jun 2003
Posts: 396
I have been EATEN!

http://www.stormfront.org/forum/
mrmovie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.