hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Urgent Help!!! Plz Help!!!!
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Urgent Help!!! Plz Help!!!!

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 10-22-2004, 03:29 AM
HenryJ HenryJ is offline
Disabled
 
Join Date: Oct 2004
Posts: 249

Urgent Help!!! Plz Help!!!!


how to block someone's redirect to your IP/domain

some sucker is redirecting his traffic to my IP address, and creating massive traffic havoc on one of my IPs.

his domain is registered at enom, and he is using enom's DNS, and doing redirect from it.

any idea how to block it from redirecting his domain's traffic to my IP

thank you

Reply With Quote


Sponsored Links
  #2  
Old 10-22-2004, 03:48 AM
Zadmin Zadmin is offline
WHT Addict
 
Join Date: Aug 2004
Posts: 126
why dont use firewall and block any incoming from this ip

Reply With Quote
  #3  
Old 10-22-2004, 04:25 AM
Loon Loon is online now
Community Liaison
 
Join Date: Apr 2003
Location: London, UK
Posts: 2,977
I think he means somebody is directing traffic from another domain to his server not that it's all coming from the same IP. You could discard it based on the refering domain with mod_rewrite.

You could do this from your httpd.conf file or the easiest way would be just to drop a .htaccess file in the home directory of your domain.

Code:
RewriteEngine On
Options +FollowSymlinks

RewriteCond %{HTTP_REFERER} ^(www\.)?refering_domain\.com
RewriteRule .* - [F,L]

That would give any traffic from that domain that shows HTTP_REFERER info (most of it) a 403 (forbidden) error, obviously it's still going to be hitting your server, but unless you have a custom 403 page with lots of graphics and stuff it'll be alot better than each redirected user downloading your regular pages.

Or you could send it somewhere else:

Code:
RewriteRule ^(.*)$ http://www.google.com [R=301,L]
I'm sure google can handle it

You might want to find out why he/she's doing this though, most people like to keep their traffic

If you want to go a step further and stop the traffic in your firewall, you could probally write a rule to do that depending on which firewall you're using, or write a PHP script to check something like.

PHP Code:
if(eregi('refering_domain'$_SERVER['HTTP_REFERER'])) 
And if true, execute some commands with shell_exec() to drop the IP's in your firewall. You're not going to stop the traffic arriving in the first place though, you just need to stop it somewhere, best thing really would be find out why this person is sending it.


Last edited by Loon; 10-22-2004 at 04:33 AM.
Reply With Quote
Sponsored Links
  #4  
Old 10-22-2004, 04:42 AM
HenryJ HenryJ is offline
Disabled
 
Join Date: Oct 2004
Posts: 249
Okie this is the situation:

there is someone with the domain say abc123.com, and lets say my IP is :111.111.111.111

this domain is registered at ENOM.com, and it is redirecting all its traffic to my IP, which is the Main Shared Virtual Host IP of my server.

I want to block this "redirect", any help!

I have already sent email to abuse@enom.com but they wont be in office for next 7-8 hours when i can get hold on someone to tk care of this abuser. BUT what should I do till than

Reply With Quote
  #5  
Old 10-22-2004, 04:51 AM
Loon Loon is online now
Community Liaison
 
Join Date: Apr 2003
Location: London, UK
Posts: 2,977
If they are using something like an A record and the traffic is staying on abc123.com but just that it's A record is pointing to your IP, you can use what i posted above but instead of looking for HTTP_REFERER you're looking for HTTP_HOST:

Code:
RewriteCond %{HTTP_HOST} ^(www\.)?abc123\.com [NC]
But if they are just forwarding all the traffic to your IP using a web forward/redirect (so when the traffic arrives it sees your IP in the browser not the domain) then i don't really think there's much you can do.

I don't understand though, who would get so much traffic then just point it to somebody elses IP, doesn't make sense why somebody would do that, unless he added the wrong IP in his DNS.


Last edited by Loon; 10-22-2004 at 04:54 AM.
Reply With Quote
  #6  
Old 10-22-2004, 05:04 AM
HenryJ HenryJ is offline
Disabled
 
Join Date: Oct 2004
Posts: 249
Wut he is doing is, he is using the ENOM's nameservers! and using the REDIRECT option from ENOM's control panel to redirect his domain to my server's IP.

BTW: when i open his domain in browser, it doesnt show my IP, but his domain.

Can you tell me where to put that code you gave? i have made the file called .htaccess in /usr/local/apache/htdocs/ and putting the code in that. is that the correct location of default webdirectory.

Reply With Quote
  #7  
Old 10-22-2004, 05:10 AM
HenryJ HenryJ is offline
Disabled
 
Join Date: Oct 2004
Posts: 249
i need to find the location where i can put that redirect code for the whole IP address, cos when i put it inside /usr/local/apache/htdocs/ it just gives the 403 for hostname.mydomain.com not the IP address.

Reply With Quote
  #8  
Old 10-22-2004, 05:20 AM
Loon Loon is online now
Community Liaison
 
Join Date: Apr 2003
Location: London, UK
Posts: 2,977
You can add the lines to your httpd.conf file inside a <VirtualHost> section for the IP:

Code:
<VirtualHost 123.45.67.89>
RewriteEngine On
Options +FollowSymlinks

RewriteCond %{HTTP_HOST} ^(www\.)?abc123\.com [NC]
RewriteRule .* - [F,L]
</VirtualHost>
I *think* that'll work.

* edit - remember to restart apache


Last edited by Loon; 10-22-2004 at 05:25 AM.
Reply With Quote
  #9  
Old 10-22-2004, 05:32 AM
HenryJ HenryJ is offline
Disabled
 
Join Date: Oct 2004
Posts: 249
well i have 40 domains hosted on that IP (its a Main Shared IP of the server.) so i have to do it on all the domain names?

Reply With Quote
  #10  
Old 10-22-2004, 05:50 AM
UH-Matt UH-Matt is offline
Corporate Member
 
Join Date: Aug 2002
Location: London, UK
Posts: 9,027
Use your firewall...

Get your server admin to assist you.

__________________
Matt Wallis
United Communications Limited
High Performance Shared & Reseller | Managed VPS Cloud | Managed Dedicated
UK www.unitedhosting.co.uk | US www.unitedhosting.com | Since 1998.

Reply With Quote
  #11  
Old 10-22-2004, 10:44 AM
HenryJ HenryJ is offline
Disabled
 
Join Date: Oct 2004
Posts: 249
I was just on phone with enom tech support, what this guy doing is using his domain's A records and redirecting his domain to our hostname IP address. Is there is any possible way to block it?

since i am getting 150+ hits per second on my httpd (apache).

Reply With Quote
  #12  
Old 10-22-2004, 10:56 AM
UH-Matt UH-Matt is offline
Corporate Member
 
Join Date: Aug 2002
Location: London, UK
Posts: 9,027
Add the domain to local DNS and direct it back to an enom ip, im sure they will then be more than happy to correct the record at their end then

__________________
Matt Wallis
United Communications Limited
High Performance Shared & Reseller | Managed VPS Cloud | Managed Dedicated
UK www.unitedhosting.co.uk | US www.unitedhosting.com | Since 1998.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host 405 Networks Acquires Huevia Web Hosting Web Hosting News 2012-07-30 16:16:02
Open Data Center Alliance Releases Security-Focused Cloud Computing Usage Models Web Hosting News 2012-04-05 15:04:50
Hosts Gear Up for Internet Society-Led World IPv6 Day, June 8 Web Hosting News 2011-06-03 15:27:26


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?