![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Too lazy to set a custom title
Join Date: Jan 2003
Location: Los Angeles
Posts: 10,557
|
![]() Hey, can someone tell me the difference in the code for blocking an IP from viewing a domain vs. redirecting an IP vs. banning anyone at a particular domain from looking at anything on a server? .htaccess vs. apache? Thanks much.
__________________
![]() ![]() ![]() ![]() ![]() Blue Blood's SpookyCash.com Babe photography portfolio |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jan 2005
Posts: 551
|
If you ban an IP, any domain that resolves to that IP will be banned. If you ban a domain, the IP that resolves from that domain gets banned. If you have a custom resolver, set it to 3600 on TTL and every IP will reverse both to its RDNS and hostname to IP quickly and painlessly. Please be advised that it may consume bandwidth and system resources if not set properly.
Everything with a * is considered a wildcard. IP 66.59.* bans everybody on that block, which is yea, alot! HOST *.domain.com bans eveything using that dns on the said domain name. Set effective TTL to 3600 (it's the number of seconds, push it more down and you'll have trouble). resolv.conf and hostname.id.db sets TTL. httpd or .htaccess. Both works fine as long as you know what you're doing. Both can be customized in many different ways. .htaccess can control access on individual/multiple dir/domains and httpd/apache will entirely control everything. .htaccess will cry.
__________________
I don't have a signature. ! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Too lazy to set a custom title
Join Date: Oct 2002
Location: Global Traveler
Posts: 51,271
|
Hmmm...interesting info.
|
![]() |
![]() ![]() ![]() ![]() ![]() |