GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How do I block *****? (https://gfy.com/showthread.php?t=33700)

tenletters 05-19-2001 02:18 PM

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!

ldinternet 05-19-2001 02:25 PM

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

Henrik 05-19-2001 02:32 PM

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 ?

TFCash 05-19-2001 02:48 PM

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

tenletters 05-19-2001 02:48 PM

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 05-19-2001 02:51 PM

hardcore... I don't know anything about php... where would I put that code on my server?

Susan 05-19-2001 03:35 PM

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 http://bbs.gofuckyourself.com/board/frown.gif

HCH - I have started reading the PHP book - its not so bad, just finding the time that's the problem.

Paul Markham 12-13-2003 06:06 AM

UNBAN ME, LENSMAN! :thumbsup

mrmovie 12-13-2003 06:08 AM

I have been EATEN!

http://www.stormfront.org/forum/


All times are GMT -7. The time now is 01:40 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123