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 sites in .htaccess? (https://gfy.com/showthread.php?t=170816)

Jakke PNG 09-03-2003 01:25 PM

How do I block sites in .htaccess?
 
I've found some japanese (?), russian (?), and arabic (?) sites that open my galleries, and sites in frames. How do I fuck them up?

Thanks.

DerekT 09-03-2003 02:05 PM

Try this.

http://java-script.4t.com/#breakframes

Jakke PNG 09-03-2003 02:06 PM

Quote:

Originally posted by DerekT
http://hahahahahahahahahaha.internet...ak-frames.html

Try this.

Lol, gee that's helpful

Jakke PNG 09-03-2003 02:07 PM

No.
I'm not THAT stupid. :1orglaugh

I'll check it out.

Jakke PNG 09-03-2003 02:08 PM

I don't want them to see the pages at all.

DerekT 09-03-2003 02:16 PM

http://www.able2know.com/forums/viewtopic.php?t=5040

This has PHP code and also lists most language codes.

Anothers 09-03-2003 03:45 PM

try this


Code:

# Rewrite engine
RewriteEngine on
# Denied IPs
RewriteCond %{REMOTE_ADDR} ^101.101.101.101$ [OR]
RewriteCond %{REMOTE_ADDR} ^102.102.102.102$
RewriteRule .* - [F]
# Denied Ref
RewriteCond %{HTTP_REFERER} ^http://www.notallowedref1.com/.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://www.notallowedref2.com/.*$ [NC]
RewriteRule .* - [F]

you can block ip accessing your site (# Denied IPs) or Referers (# Denied Ref

when you want to send them to other page you must change

Code:

RewriteRule .* - [F]
into

Code:

RewriteRule .* http://www.sitewhenyouwantthemtogo.com [R,L]
Edited: put this on the end of your .htaccess file


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

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