How can I avoid misuse of my web server?

Asked

Viewed 54 times

1

example I have the domain http://marcaregistradanb.com

and on this site I have way to 2 files one html and another jpg

  1. http://marcaregistradanb.com/home/nikobellic/public_html/marcaregistradanb.com/logo_site_rm.jpg
  2. http://marcaregistradanb.com/home/nikobellic/public_html/marcaregistradanb.com/constitucional.html

how can I do so that external hosts can not refer files on my server mainly imgens and comsumirem bandwidth from my server

there is some solution for this case with php?

  • 2

    With PHP has a diversity of different ways, with . htaccess already has an answer here: http://answall.com/questions/112384/comor-blockr-hotlinks-de-imagens-notic - remembering that blocking even, there is no way, but checking the referrer helps well. One precaution to take is to accept blank referrer as well, for cases where the referrer is blocked by the browser. It’s worth not serving the image only when you’re sure it’s not a legitimate request (the referrer filled in and evidently different from your domain)

  • Is there any way I could know if someone is quoting an article from my blog on their website as well? type I write an article on my site about the are Joao, then someone decides to reference my article on your site there is this possibility also to know the origin of reference ?

  • and that I have a hosting fulera and does not provide me the log files but I think should have as

  • Likewise, you can see the $_SERVER['HTTP_REFERER'] to know the link that originated the request. Note that the spelling of the referrer when using us headers is wrong for "historical reasons": REFERER

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.