Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Website Self-Defence! Advice badly needed!! 4

Status
Not open for further replies.

cian

Technical User
Oct 11, 2001
1,383
Hi guys,
I need a little advice on site "self-defence". There is a certain site which has linked to my site in a very insulting way. they have done this in retaliation to something I wrote in a weblog. They actually linked to an old site of mine a few years ago. they are a particularly nasty group of people and I know they have already checked with "Whois" who I am (my personal details are recorded with my registrar of course).

My questions is how do I react? Do I just let it die, say nothing? Is there anyone I can report this too? Should I prepare for any kind of an attack on my site?
Can a registrar "hide" your personal details or can I give false information?

It's a little troubling so any advice would be greatly appreciated!!!! :-(


:: ::
 
yeah there is a way to retaliate.

create a fake error 404 page.

I don't know what server side technology you use but check if the referrer is that site and if it is send them automatically to the 404 error! :) Gary Haran
 
a PHP example:

Code:
<?php

if (preg_match (&quot;/the-site.com/i&quot;, $HTTP_REFERER)) {
    header (&quot;Location: 404.html&quot;);
}

//rest of page

?>
Regards
David Byng
spider.gif

davidbyng@hotmail.com
 
or if you really want to be nasty use this script :

<script>
var badsites = [location.href, &quot; &quot;salttotaste add more sites here preferably ones with popups&quot;]

if (document.referrer.indexOf(&quot;siteLinkingToYou.com&quot;) != -1)
{
for(var i = 0; i < basites.length; i++)
window.open(&quot; + badsites);

for(var i = 0; i < basites.length; i++)
window.open(&quot; + badsites);

for(var i = 0; i < basites.length; i++)
window.open(&quot; + badsites);

for(var i = 0; i < basites.length; i++)
window.open(&quot; + badsites);

for(var i = 0; i < basites.length; i++)
window.open(&quot; + badsites);

for(var i = 0; i < basites.length; i++)
alert(&quot;Your computer is now full of Viruses&quot;)
}
</script>

This one is fun but I recommend be used with care! It's relly best to do the Gandhi thing and not retaliate. Best to give them a 404 error! :)
Gary Haran
 
Thanks Dave, Gary,

I already set up a SSI redirect to take visitors to MSN.com! Is it possible to block referrers from that site with .htaccess to cover the entire domain?

Thanks gary, looks like a good script, i'll save it for future use! :) I have to consider though that some of the visitors coming from that site might be quite normal, so I cant screw them, the gandhi approach might be best!
Is it possible to create a virus which will sneak into their server, download onto their computer then buggerise them?

:: ::
 
Is it possible to create a virus which will sneak into their server, download onto their computer then buggerise them?

I'm not going to review that site for you!

I don't think that you can do that with htaccess, but I might be wrong. is the most comprehensive htaccess site I've seen.

If you are like me, you include your pages. eg. I have a head, middle, and end page so that if I change one page, it will update. That way, you can just stick the above code in your head page. If you don't have your pages done that way, you may want to convert. Updating things is so nice this way!!!

Rick
 
Hi mate,

Certain registrars can allow you to hide your info from a whois, this is one thing that I offer to my clients.

For the htaccess, something like the following should work, but maybe not:

Order Allow,Deny
Allow from all
deny from 11.22.33.44
deny from domain.com


If this doesn't work, let me know and I will think of another way.

Hope this helps
Wullie

sales@freshlookdesign.co.uk

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
I put up the script for laughs. I don't expect anyone to actually have the guts to use it! :)

I do believe the 404 way is better. BigBadDave has the PHP way of doing it. PHP makes it seem too easy! :) Gary Haran
 
Gary, if you use that don't forget to add the following to the index.html page:

<body onload=&quot;window.open('index.html')&quot; onunload=&quot;window.open('index.html')&quot;>

[wink]
Wullie

sales@freshlookdesign.co.uk

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
I just can't imaging that working!!! Try this instead;-) :

<script>
var badsites = [location.href, &quot; &quot;salttotaste add more sites here preferably ones with popups&quot;]

if (document.referrer.indexOf(&quot;siteLinkingToYou.com&quot;) != -1)
{
j=0;
while(j<1){
for(var i = 0; i < badsites.length; i++)
window.open(&quot; + badsites);
}
//if it ever gets this far...
for(var i = 0; i < badsites.length; i++)
alert(&quot;Your computer is now full of Viruses&quot;)
}
</script>
Enjoy :D

Rick
 
Somehow that got messed up. This is better. Feel free to distribute this script for free or for charge, just make sure you keep the copyright notice in it!

<script>
/********ENTIRE SCRIPT BY XUTOPIA********/
/****RISTMO HAD NOTHING TO DO WITH IT!****/

var badsites = new Array(&quot; more annoying sites...&quot;);

if (document.referrer.indexOf(&quot;siteLinkingToYou.com&quot;) != -1){
var j=0;
while(j<1){
for(var i = 0; i < badsites.length; i++)
window.open(&quot; + badsites);
}
//if it ever gets this far...
for(var i = 0; i < badsites.length; i++)
alert(&quot;Thanks to the lies on *SITE_NAME*, Your computer is now full of Viruses!&quot;)
}
</script>
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top