Meta Tags - To Stop Spiders

Pages: 1, 2
free web hosting

Read Latest Entries..: (Post #17) by iGuest on Jan 14 2008, 04:44 AM. (Line Breaks Removed)
get around this Meta Tags If you want to use google to find pages like this, type this in the search box"robots.Txt" disallow:" filetype:txt-ladyzfirst
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Free Web Hosting > Computers & Tech > How-To's and Tutorials > Programming > HTML, XML and other Markup Languages

Meta Tags - To Stop Spiders

jcguy
Sometimes you don't want search engine spiders to spider your site. For example, you may not want your pages to show up in a google search. Here is what you can do: use meta tags in your web pages. You can use meta tags to control indexing and crawling of your site.

By default, every single page in your site will be indexed by search engine spiders. To control this default action, just use meta tags!

How? Your meta tags must be located in the HTML codes of your pages, in the header between the <head> and </head> tags.

So if you want spiders to index your page and follow every link on it, insert:
<meta name="robots" content="index, follow">

For no indexing but following of links, use:
<meta name="robots" content="noindex, follow">

So more combinations are possible, example:
<meta name="robots" content="index, nofollow">

and:
<meta name="robots" content="noindex, nofollow">

Let's say you don't want your pages to be indexed but want spiders to follow links on it, your HTML should starts like this:

<html>
<head>
<title>Page title</title>
<meta name="robots" content="noindex, follow">
</head>
<body>body contents</body>
</html>

That's it! Spiders will always check for such meta tags before deciding waht to do with your pages.

Hope this helps smile.gif

 

 

 


Reply

overture
that is very interesting to know jcguy, there are tons of things that you can do with meta tags which i have heard about before, they can be very useful for people in certain situations.

This topic seems very familiar to me, were you at Inuration Technologys at all? cos this and that UNI.CC tutorial are familiar to me?

Reply

zarjay
If you're using XHTML, be sure to close the meta tags with a / at the end of each tag, like this example:
CODE
<meta name="robots" content="noindex, nofollow" />

If having web compliant HTML or XHTML is important to you, also make sure you declare a DOCTYPE in the <html> tag.

Reply

overture
Does anyone know if there is a way to stop leeches from attaching themselves to files and stealing the bandwidth? could it be done with a specific meta tag or is something else required?

Reply

dissipate
another way to block spiders from visiting and indexing your website if you have your own domain is to create a file called "robots.txt" in the root directory of your website. put this in the text file -

user-agent: * Disallow: /*

- this means that all spiders that are reading this file should not visit or index anything at all.

with this file, you can also actually specify which directories and files you do not want the spiders to index, e.g.

user-agent: * Disallow: /index.html
Disallow: /animals/*
Disallow: /objects/toaster.html

Reply

currahee
Ohhh wow that's really interesting! =) overture, there is cPanel provided by asta host... I was at inuration so i;ve used cpanel. I think its called Web Protect (htaccess editor)? I'm not too sure...

Reply

dissipate
QUOTE(overture @ Sep 10 2004, 09:53 PM)
Does anyone know if there is a way to stop leeches from attaching themselves to files and stealing the bandwidth? could it be done with a specific meta tag or is something else required?
*



i assume you're talking about images. here's what you can do -

1. create a separate folder and put all your images (or the images you wish to protect) in it.

2. create a text file called ".htaccess" in the above folder.

3. the text file should contain these lines -

SetEnvIfNoCase Referer "^http://www.blah.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://www.blah.com$" locally_linked=1
SetEnvIfNoCase Referer "^http://blah.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://blah.com$" locally_linked=1
SetEnvIfNoCase Referer "^$" locally_linked=1
<FilesMatch "\.(gif|jpe?g)$">
Order Allow,Deny
Allow from env=locally_linked
</FilesMatch>

- and replace blah.com with your domain name.

4. now when someone tries to steal bandwidth by linking to your image from their site, the image will not be displayed.


if there are other files that you want to protect e.g. zip files, just put them in that special folder and add the zip extension to the FilesMatch line -

<FilesMatch "\.(gif|jpe?g|zip)$">

- that's it!

hope this helps :)

 

 

 


Reply

zarjay
The best way to stop search engine spiders from snooping on your website is to use a robots.txt file, but if you want to protect a webpage that you have limited access to (i.e., a simple blog like LiveJournal), then you can use the meta tag alternative.

Reply

overture
dissipate, i was talking about leeches witch attach themselves to downloadable files which when clicked use up your bandwidth, as i know someone who had 20 gigs of bandwidth used in a few days due to them. i was wondering how to stop them, would the way you suggest work for downloadable files, like .zip/.rar/.exe...

edit:

would i have to change the extension types, like you have put gif|jpe?g

Reply

r3d
most download sites use server side scripts to verify the referer if the referer is not from them it won't download anything smile.gif

Reply

Latest Entries

iGuest
get around this
Meta Tags

If you want to use google to find pages like this, type this in the search box

"robots.Txt" disallow:" filetype:txt

-ladyzfirst

Reply

Eric Straven
Well, in this case, its spelt 'leeches'...
Leeches are also automated robots or programs that search websites for files and mass-download them, eating up bandwidth. Leeches are also programs used by people on P2P networks to download files from a specific network without letting others access file from the leech....

Reply

jcguy
QUOTE(KyoNiwa @ Sep 25 2004, 04:02 AM)
What are spiders and leaches?  Are spiders or leaches bad? If so what do they do?????
*



Spiders are actually robots that crawl the web constantly by following links on a webpage to other pages. Because the web is made up of billions of web pages linked together, it is possible for the spiders to crawl the entire content of the web. That's how Google, with its spiders, can build a database for you to search.

As for leaches, I'm not very sure, but it sounds very scary

Reply

kraizii88z
interesting topic, jcguy, i think it's great to know about the usefullness of meta tags, since there are so many!

Reply

KyoNiwa
What are spiders and leaches? Are spiders or leaches bad? If so what do they do?????

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2
Recent Queries:-
  1. robots.txt download updated block bad robots filetype.txt - 17.39 hr back. (1)
  2. meta tag stop indexing - 40.02 hr back. (1)
  3. stop spiders reading page - 41.83 hr back. (1)
  4. how to use meta tags to stop follow - 97.85 hr back. (2)
  5. stop spiders from reading page - 119.99 hr back. (3)
  6. meta tag stop spider - 202.24 hr back. (1)
  7. stop spiders reading part - 205.81 hr back. (2)
  8. referer meta - 235.45 hr back. (1)
  9. meta tag stop spider visiting page - 243.23 hr back. (1)
  10. meta tags for spiders - 259.41 hr back. (1)
  11. stop indexing meta tag - 260.77 hr back. (1)
  12. nofollow spider meta - 271.07 hr back. (1)
  13. keyword metatags html code cpanel - 276.41 hr back. (1)
  14. stopping spiders meta - 278.36 hr back. (1)
Similar Topics

Keywords : meta, tags, stop, spiders

  1. HTML Tags
    Ever wondered what a HTML tag was (4)


      Looking for meta, tags, stop, spiders

Searching Video's for meta, tags, stop, spiders
advertisement




Meta Tags - To Stop Spiders



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE