Jump to content

Linking To Your Website


DaffiDuck

Recommended Posts

This guy has not asked my permission to use my website for HIS information and he profits from it.

 

How can I stop him? I have already asked politely and he has told me to ***** off

and told me I can delete my website as he never removes links.

 

Is there a way to block him?

Link to comment
Share on other sites

As far as I know it's not illegal for someone to link to your site as long as they aren't stealing your bandwidth. But you can always change the name/extension of the page he's linking to so his won't work. :D Or rename your page and make the original page say something about him and what he said to you so the people from his site who see it will know what a jerk he is.

Link to comment
Share on other sites

I'm not really clear on what is actually happening, and what you would like to do about it.

 

You can't prevent anyone from merely linking to your site.

 

This guy has not asked my permission to use my website for HIS information and he profits from it.

I'm not sure what this means. Is this person doing something in addition to linking to your site? :D

Link to comment
Share on other sites

But you can always change the name/extension of the page he's linking to so his won't work. :D  Or rename your page and make the original page say something about him and what he said to you so the people from his site who see it will know what a jerk he is.

Rather than renaming files on my own site and break my own permalinks, I'd probably set up something with mod_rewrite that would be triggered when the referer is from the other site. :)

Link to comment
Share on other sites

I'm not really clear on what is actually happening, and what you would like to do about it.

 

You can't prevent anyone from merely linking to your site.

I'm not sure what this means.  Is this person doing something in addition to linking to your site?  :D

 

 

Without going into a lot of explanation, this guy was banned from several sites and now has started his own program. No problem however,

 

He is using my site to give people on his website information on how to set up. He asks for money.

 

I have tried blocking the site but the site does not resolve to an IP

Link to comment
Share on other sites

bellringr I have already thought of that, but feel it the last resort.

 

I don;t need people to be burdened with MY problems if I can resolve them.

 

I need to find a way to convert the website he is on to a numeric value so I can block it with my CPanel.

 

Anyone know how or where to find such a conversion program

Link to comment
Share on other sites

Add the following to the .htaccess file in your public_html directory:

>RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_REFERER} bad-domain.com [NC]
RewriteRule .* alt-file.html

If a visitor comes to your site by clicking a link on the 'bad-domain.com' site (so the domain name appears somewhere in the referer string), then the visitor will be redirected to alt-file.html (in your public_html directory), no matter what page the link was trying to go to.

 

Replace 'bad-domain.com' with the actual domain name, create an alternate page to display and upload it to your public_html directory, and whatever name you use for the alternate page, replace 'alt-file.html' with the name of that page.

Link to comment
Share on other sites

Add the following to the .htaccess file in your public_html directory:

>RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_REFERER} bad-domain.com [NC]
RewriteRule .* alt-file.html

If a visitor comes to your site by clicking a link on the 'bad-domain.com' site (so the domain name appears somewhere in the referer string), then the visitor will be redirected to alt-file.html (in your public_html directory), no matter what page the link was trying to go to.

 

Replace 'bad-domain.com' with the actual domain name, create an alternate page to display and upload it to your public_html directory, and whatever name you use for the alternate page, replace 'alt-file.html' with the name of that page.

 

 

OK I will try this later today and let you know my success..

 

Sorry about delay, Ihad to man the BBQ (Tri-Tip)

 

I do appreciate the response and help.....

Link to comment
Share on other sites

If you wanted to get nasty about it you could have your alt-file.html be a page that warns others about his site as well.  If he isn't going to be nice to you then you have the option to not be nice back.

 

 

That would be my first knee jerk reaction to do, however I have learned that that doesnt stop the really determined jerks who want to mess with you. Its almost a challenge to them.

 

I will try my hand at this and let you all know.....many thanks

Link to comment
Share on other sites

Your information is given away freely so you'd not have any recourse legally... but...

 

I'd make sure that my site's name and the fact that it is free to everyone and the web site address was plastered on every page... they pay him, find your info, and don't pay him again. Sounds fair to me :D

 

David's technique is a good one that you can use to link to a page that says "Here I am, I'm free and you've been ripped off" (however tactfully you wish to say it.)

 

Don't forget that by optimizing your site for the search engines you may be able to "steal" some of the folks that would have gone to his site. If someone enters "Help for XYZ Widgets" then get them to your site first and he'll reap what he has sown.

Link to comment
Share on other sites

You can use your cpanel file manager

goto the public_html folder (click on the folder icon)

select create file

on the right type in .htaccess

then select the file by clicking on the name

on the right select edit

paste the text inside and use the save button at the bottom.

You may find in file manager that you can see an .htaccess file there already

if so the just edit the file.

Link to comment
Share on other sites

Its not working.....

 

Can I talk to one of you TCH people off the forum?

 

because I dont really want to give out the URL of the guy causing me trouble and direct traffic his way just cause people want to see what I am talking about.

 

I did everything exactly as stated but its not forbidding access.....

Link to comment
Share on other sites

OK let me revise that.....

 

Its now blocking it but NOT using the .html script I told it to use.....

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@XXXXX and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

 

 

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

 

 

--------------------------------------------------------------------------------

 

Apache/1.3.33 Server at www.xxxxx Port 80

 

 

I suppose thats better than nothing LOL\

Link to comment
Share on other sites

TCH-David, Rob and I tried for a hour or so last nite and couldnt get it to work.

 

This is what I have in my /home/XXXXXXX/public_html/.htaccess FILE

 

I think half the issue is that the site I am trying to block is www.XXXX.de its in Germany and he is framing my site

 

Yes I am also stopping Hot Linking

 

 

<Limit GET POST>

#The next line modified by DenyIP

order allow,deny

#The next line modified by DenyIP

#deny from all

allow from all

</Limit>

<Limit PUT DELETE>

order deny,allow

deny from all

</Limit>

AuthName www.XXXXXXX.org

AuthUserFile /home/XXXXXXX/public_html/_vti_pvt/service.pwd

AuthGroupFile /home/XXXXXXX/public_html/_vti_pvt/service.grp

 

 

RewriteEngine on

RewriteCond %{HTTP_REFERER} !^$

RewriteCond %{HTTP_REFERER} !^http://XXXXXX.org/.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://XXXXXX.org$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.XXXXXX.org/.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.XXXXXX.org$ [NC]

RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

 

 

<Files 403.shtml>

order allow,deny

allow from all

</Files>

 

 

 

Any ideas?

Link to comment
Share on other sites

I'm no htaccess guru but I did notice that in the original, David had

>RewriteRule .* alt-file.html

and you have

>RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

 

It seems quite a bit different to my novice eyes.

Link to comment
Share on other sites

They are different, because they're doing two different things. :shocking:

 

The code I suggested was for redirecting pages requested from links that were clicked on another site. It looks at the referer - if the referer is a link from the "bad-domain", the server will serve the alternate page instead.

 

The code that was already in the .htaccess file is to prevent hotlinking. It looks at the referer, and if it is not blank or a link from 'your' domain, *and* it is a request for an image file (file has an extension of jpg, jpeg, gif, png, or bmp), it returns a "403 Forbidden" error message.

 

(Now I have an idea about what might be wrong with the code I suggested...off to do some more testing...)

Link to comment
Share on other sites

Oddly enough the code Rob wrote last night seems to be NOW working

 

RewriteCond %{HTTP_REFERER} (XXX\.de) [NC,OR]

RewriteRule .* Forbidden.html

 

 

XXX = the IP i am banning

 

I was looking on some other sites trying to find out what would work and retried what Rob came up with last night

Link to comment
Share on other sites

By the way, for those that were wondering what the big deal was with this, the offending website was framing Daffis' website making it look as though it was part of his own site. In the address bar it still had the other persons site as the URL. We all welcome inbound links but not when it is done in such a way as to make the visitor believe it is the referring sites page.

Link to comment
Share on other sites

I would suggest worrying about one thing at a time. Save the .htaccess file and create a new one with just the code that has been suggested to prevent the remote domain from accessing your site and not include the Hotlink protection. The code that CPanel adds to prevent hotlinking can mess up other things. Once you have one thing working you can try coding in the Hotlink protection manually.

Link to comment
Share on other sites

It didnt do that for me earlier either

 

But then I started getting PM's from users on my website and were telling me they were denied access.....and getting the "forbidden.html" message LOL

 

oops

 

So I went to my webpages and any page I clicked on I got denied

Link to comment
Share on other sites

By the way, for those that were wondering what the big deal was with this, the offending website was framing Daffis' website making it look as though it was part of his own site.  In the address bar it still had the other persons site as the URL.  We all welcome inbound links but not when it is done in such a way as to make the visitor believe it is the referring sites page.

Linking to a web site and framing another person's web site are different things. I doubt that using mod_rewrite to check the referer string would be of much help when you're trying to stop someone from framing your site.

 

I've looked at the site where the framing is occuring. I don't believe that it is done with malicious intent. There are two domains can be used to reach the other web site. One domain uses a frameset to redirect browsers from one domain to the other while keeping the original domain's URL in the address bar. The second domain, which is the target of the first domain's redirect, does not enclose the page in a frame at all. I don't think using frames to redirect browsers from one domain to another is the best way to do it, but it's not my site. :shocking:

 

Still, whether there's malicious intent or not, browsers who try to reach the site through the domain that does use frames will have other links from other sites framed, and this is something that most people don't like and do object to.

 

If you don't want your site framed by this site (or any other site), the best thing to do is add a little javascript to your web page that will break your page out of any frames that it may find itself in. Here is an example of one such javascript, which would go between the <head> and </head> tags in your web pages:

><script type="text/javascript">
 <!--
   if (self != top) {top.location.href = self.location.href;}
 //-->
</script>

If you'd rather redirect the user to a specific page, like you were trying to do by having mod_rewrite check the referer, the script could be modified like this:

><script type="text/javascript">
 <!--
   if (top.location.href.indexOf('bad-domain.de') > -1) 
     { top.location.href = 'http://your-TCH-domain.com/Forbidden.html'; }
 //-->
</script>

If your page is loaded in a frame from the 'bad-domain.de' web site, then the script will break out of the frame and load your 'Forbidden.html' page in the user's browser.

 

You still may want to block referer links from the other site, which mod_rewrite should easily be able to do. I don't know why you get 500 errors, but you've never posted the full .htaccess code you're using when you received them, so it's difficult for someone else to figure out where the problem is.

 

Hope this helps...

Link to comment
Share on other sites

OK Ii finally figured out the work around for this with the URL rewriting to the .htaccess file and so I am posting for others who might need to do the same

 

I have two functions going on:

 

1st set . Blocking a certain German website (.de) from linking to me

2nd set . Preventing Hotlinking of any pictures

 

You have to manually ADD the hotlinking code AFTER, because if you try it from the cPanelX, it actually REMOVES the previous lines for blocking.

 

Also i removed ALL the lines that were there before and had a clean slate

The reason there are 3 lines for a domain is because he uses a variation and i want to get all of those he uses.

 

THIS EXACTLY WHAT IS ON THE .htaccess file

 

RewriteEngine on

RewriteCond %{HTTP_REFERER} ^http://xxxxx.de/.*$ [NC,OR]

RewriteCond %{HTTP_REFERER} ^http://www.xxxxx.de/.*$ [NC,OR]

RewriteCond %{HTTP_REFERER} ^http://www.xxxxx.de/.*$ [NC]

RewriteRule .* - [F]

 

 

RewriteCond %{HTTP_REFERER} !^http://xxxxx.org/.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://xxxxx.org$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.xxxxx.org/.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.xxxxx.org$ [NC]

RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

Link to comment
Share on other sites

I actually have had several others already ask me HOW i stopped this guy as they have been trying to also. They are so ticked at him also.

 

It took MANY rewrites to figure it out but got it......works for mac's also as one guy has already tried it

Link to comment
Share on other sites

Here is an update which I find rather hilarious.....

 

The German guy who has been linking to my website and I finally got blocked has emailed me 2 threatening letters.

 

I have many links on my opening page and ONE links to a different website called Hall of Shame where this guy is now posted and he is also threatening me for "linking" to it gee how ironic.

 

He is in Germany which leads me to believe there is little one can do for threats

Link to comment
Share on other sites

  • 2 weeks later...
Add the following to the .htaccess file in your public_html directory:

>RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_REFERER} bad-domain.com [NC]
RewriteRule .* alt-file.html

If a visitor comes to your site by clicking a link on the 'bad-domain.com' site (so the domain name appears somewhere in the referer string), then the visitor will be redirected to alt-file.html (in your public_html directory), no matter what page the link was trying to go to.

 

Replace 'bad-domain.com' with the actual domain name, create an alternate page to display and upload it to your public_html directory, and whatever name you use for the alternate page, replace 'alt-file.html' with the name of that page.

 

I know someone who used this technique and redirected the people to a I AM A SPAMMER site.

Link to comment
Share on other sites

Here is an update which I find rather hilarious.....

 

The German guy who has been linking to my website and I finally got blocked has emailed me 2 threatening letters.

 

I have many links on my opening page and ONE links to a different website called Hall of Shame where this guy is now posted and he is also threatening me for "linking" to it    gee how ironic.

 

He is in Germany which leads me to believe there is little one can do for threats

 

 

Cool!!!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...