• Using Basic Server Side Includes (SSI)

    Date: 2011.02.24 | Category: WebDesign | Response: 0

    Server side includes are what their name sounds like.  A way to include the contents of another file into your current web page BEFORE the web page gets sent off to the surfer.  Not only does this include contents of a static file but you can also include the results of a CGI program and on some web servers, you can even have it display the current date and time.

    Now, many web hosts do not normally have server side includes turned on. You will have to ask your host if they have SSI turned on and if they do, what is the file name extension for SSI.  By default, SSI files have an .shtml extension.

    Sometimes, you can turn SSI on yourself.  If you host doesn’t have SSI turned on for you already, you can try adding the following two lines to your .htaccess file.  Then create a file with the .shtml extension, include a SSI command and see if it works.

    AddType text/html .shtml
    AddHandler server-parsed .shtml

    When you use SSI commands, you place them exactly in the location within your web page where you want the output of the SSI command to appear when you finally browse the page.  If you have SSI, then you can use the following command to include a file.  When you include a file, you can either give it a path name to the file or you can give a URL to the file. I’ll list both here.

    <!–#include file=”/some/path/above/my/web/to/my/header.html” –>

    This is an example of how to include a file based on its path name.  Now,
    here’s the same file put included with its URL.

    <!–#include virtual=”/to/my/header.html” –>

    And this is an example of how to use a URL.  With a URL however, it cannot be a complete URL such as http://www.somesite.com/somefile.html.  It has to be within your current website.  You can also use the URL method to run a CGI script!  Here’s an example of that:

    <!–#include virtual=”/cgi-bin/somescript.cgi?myfirstarg=1amp;mysecondarg=2″
    –>

    As you can see, we can even pass arguments to the CGI script just as if you typed it into your browser!  There is also another way of running a CGI script but this is not as widely used any more and you should use the #include virtual method instead.  Here is the same example so that you will know what it means when you see it.

    <!-exec cgi=”/cgi-bin/somescript.cgi?myfirstarg=1amp;mysecondarg=2″ –>

    As I mentioned earlier, you can use SSI to display the current time and date. Here’s how:

    <!-echo “$DATE_LOCAL” –>

    This will display the current date and time. SSI is usually used when you  want to have a standard header or footer on each page.  It’s also used for displaying rotating banners or page counters. As you see above, you can also  use it to display the current date and time or the date when the page was  last modified.

    SSI has also been used for cloaking and some tracking  software uses SSI to track each incoming hit to the web page.  If you would  like more information about SSI, go to
    http://www.apache.org/docs/mod/mod_include.html.  This is the definitive guide on SSI on the Apache web server.

    Most other web servers that use SSI also follow these conventions.

    Article written by Lee

  • Seasons Greetings For The Adult Surfer

    Date: 2011.02.24 | Category: General, Promotion, WebDesign | Response: 0

    How do the national and, international holidays affect our sponsors sales? More than you would think especially if you can offer your surfers something ‘seasonal’ when they hit your site. However, that said, when should you start planning for these holidays and, more importantly, how can you ensure that once you have implemented your seasonal marketing campaigns that they actually work?

    Seasonal Marketing – The Basics.

    Seasonal marketing is, in effect a method of changing your marketing approach around different times of the year to affect both the volume of sales you make and, more importantly, the uniqueness of the product you are offering your surfers. A good example of this is at Christmas time, many of the sponsors will provide their webmasters with banner with a holiday feel to them, perhaps using scantily clad men in Santa outfits or half naked women in elves costumes. By offering a seasonal marketing approach to your site surfers you actually increase the chances of making a sale.

    Holiday Porn.

    One of the best ways to offer your surfers a fresh marketing angle is to ensure that you plan for all of the major holidays throughout the year in advance so for example, as mentioned above, Christmas is a big holiday as are, New Years, Easter, Thanksgiving (US), Independence Day (US) and, Halloween. By building sites specifically for these holidays you are increasing the chances not only of building your sales but, of gaining additional traffic that you might otherwise lose out on. It has been said certainly over the last four years i have worked in the adult industry that many webmasters experience an increase in search engine traffic searching on keywords such as ‘Christmas Porn’ and, ‘Ghost Porn’ around the various holidays, build now for next year and, when the holiday season arrives, you will be one step ahead of your competition.

    Seasonal Marketing Overview.

    As already mentioned the holiday season especially Christmas time, can be a great way to gain additional traffic, not only from those surfers specifically looking for Christmas Porn but, also the newbie adult surfers who have perhaps only just got their first computer on Christmas day, by adding to your collection of seasonal porn sites year after year you will not only learn a lot about the way the various holidays and seasons affect your sales but, you will also be able to profit from your surfers in a way that not many other webmasters do.

    Article written by Lee

  • JavaScript Know How

    Date: 2011.02.22 | Category: Scripts | Response: 0

    JavaScript can be one of the most useful additions to any web page. It comes packaged as standard in Microsoft’s Internet Explorer and, Netscape Navigator and allows webmasters to perform field validations, mouse-over’s, pop ups and a whole entourage of other nifty little features on our sites.

    In this article we will show you how to:

    – Display the browser name and version number
    – Change the text in the status bar of the browser
    – Use an input box to get text from the user
    – Use a message box to display text to the user
    – Change the title of the browser window

    Before that, however, we need to know how to setup our web page so that it can run the JavaScript. JavaScript code is inserted between opening and closing script tags: <script> and </script>, like this:

    <script language=”JavaScript”>

    –> JavaScript code goes here <–

    </script>

    These script tags can be placed anywhere on the page, however, it’s common practice to place them between the <head>and </head> tags. A basic HTML page that contains some JavaScript looks like this:

    <html>
    <head>
    <title> My Test Page </title>
    <script language=”JavaScript”>

    function testfunc()
    {
    var x = 1;
    }

    </script>
    </head>
    <body>
    <h1>Hello</h1>
    </body>
    </html>

    For the examples in this article, you should use the basic document format I have just shown you, inserting the JavaScript code between the <script> and </script>tags. When you load the page in your browser, the JavaScript code will be executed automatically.

    Displaying the browsers name and version number.

    The “navigator” object in JavaScript contains the details of the user’s browser, including its name and version number. They can be displayed in a browser using the document.write function:

    document.write(“Your browser is: ” + navigator.appName);
    document.write(“<br>Its version is: ” + navigator.appVersion);

    I run Windows 2000 and Internet Explorer version 6, so the output from the code above looks like this in my browser window:

    Your browser is: Microsoft Internet Explorer
    Its version is: 4.0 (compatible; MSIE 6.0b; Windows NT 5.0)

    Changing the text in the status bar of the browser.

    To change the text in the status bar of a browser window, just change the “status” member of the “window” object, which represents the entire browser window:

    window.status = “This is some text”;

    Using an input box to get text from the user.

    Just like in traditional windows applications, you can use an input box to get some text input from the user. The “prompt” function is all you need:

    var name = prompt(“What is your name?”);
    document.write(“Hello ” + name);

    The prompt function accepts just one argument (the title of the input box), and returns the value entered into the text box. In the example above, you get the users name and store it in the “name” variable. You then use the “document.write” function to output their name into the browser window.

    Using a message box to display text to the user.

    You can display a message box containing an OK button. These are great when you want to let the user know what is happening during their time on a particular page. You can use a message box to display the “name” variable from our previous example:

    var name = prompt(“What is your name?”);
    alert(“Your name is: ” + name);

    The “alert” function takes one argument, which is the text to display inside of the message box.

    Changing the title of the browser window.

    To change the title of a web browser’s window, simply modify the “document.title” variable, like this:

    document.title = “My new title”;

    One bad thing about the “document.title” variable is that it can only be manipulated in Microsoft Internet Explorer. Netscape’s implementation of JavaScript doesn’t allow for modification.

    In Closing.

    As you can see from the examples in this article, JavaScript is a powerful scripting language that can be used to enhance a visitor’s experience with our site. However, you shouldn’t use JavaScript too much because in some cases it can annoy visitors and send them packing before your site even loads!

    Article Written By Lee

  • Choosing The Right Sponsor For Your Site

    Date: 2011.02.21 | Category: Sponsors | Response: 0

    Affiliate programs (also frequently called referral or associate programs) have grown today to become one of the most popular ways for you to earn an income from your web site’s traffic. Most affiliate programs are designed to allow you to simply set up and begin earning commissions on visitors and sales you refer. However, the quality of the programs, and the results you will see, very greatly from program to program, making it important to choose wisely which are best for you and your site. It is the purpose of this article to help sort through many of the programs, and offer assistance in determining what to look for.

    My personal experience with affiliate programs goes back over a year and a half, pretty long in Internet terms. Over this period, I researched many of the affiliate programs available on the Internet and, tried to best determine what works best. From my experiences, here are several of the top factors you should take into consideration:

    1- Stability of the company and program

    What I found to be the one of highest priorities for most webmasters is the stability of the affiliate program, and the company. This should be one of your top considerations when evaluating programs. Is the company stable and financially sound? Do they offer assistance with promoting the opportunity? And, do they pay in a timely fashion? Often, webmasters have been lured in by offers of high commissions, only to find out they will never see a paycheck, despite referring hundreds, or even hundreds of thousands, of visitors.

    2- Synergies with your site

    I am a big proponent of this. All too often, I see sites sign up for every affiliate program they can, figuring if they make a few bucks on each, that they will be profitable. For a select few, this may very well work. However, for most sites it will not, and many cases you will turn off your audience because of the ‘over-commercialization’ of your site. As you are considering the various affiliate programs available, be sure to consider what exactly your audience, your visitors, might be interested in clicking on, and eventually buying.

    For example, if your site caters to a general audience, then perhaps general affiliate programs such as Adult Revenue Service, will be effective. Or perhaps Evidence Eliminator, which allows you to sell privacy / security software. If your site only caters to a specific niche, programs such as Adult Revenue Service should be excellent money-makers as they have a wide and varied selection of adult sites which you may promote. The key is to not just think of the affiliate program as a way for you to make some easy money, but rather an extension of your web site, a service you offer your visitors to help them find the products or services they are interested in, at good prices, and with a company they can trust.

    3- Commission Tracking

    An important aspect to consider is whether or not the affiliate program offers some way for you to track your sales, and even the number of visitors you refer. There are several ways this can be accomplished, such as real-time, online reports showing you sales and your commissions. Or perhaps sales can be tracked through a simple email each time you receive a new customer. This can be very important for allowing you to test and evaluate the effectiveness of the program, make comparisons with other programs or advertising opportunities, and give you piece of mind that you are receiving what is fairly do.

    4- Opportunity for Repeat Sales

    As any business person knows, a business can not generally survive on one-time purchases. Instead you have to find ways to not only attract new customers, but also keep the ones you have. This is also very true with affiliate programs. One of the largest complaints many webmasters have had with sponsors is that they refer a customer once, see their $35 commission, but in the process the customer bookmarked the Sponsors tour page. The next time the surfer is interested in buying a membership, they return to the sponsors site through the bookmark, and the webmaster never sees another penny.

    Several programs have tried to alleviate this. Programs such as Adult Revenue Service avoid this problem by offering services (Daily Updated Pictures, Email Newsletter) which customers, once signed up for, use month after month. This allows them to pay residual commissions for as long as the surfer maintains their free membership to the site or, alternately, keeps returning to the page. This helps turn average programs into exceptional opportunities, because you can earn for months, perhaps even years, on referrals you made in your first, and subsequent months.

    Other Factors

    In summary, it is important to look at all of these main factors and several others, including the commission rates they pay (I didn’t discuss this because they are generally easily comparable), the frequency of payment checks (they generally range from weekly to quarterly), and/or the minimum dollar value you must accumulate before receiving a check (they range from nothing to $50). A couple of other important factors: be VERY wary of any program the requires a payment or ‘membership fee’ for you to join or act as an affiliate. And, be sure to check what method they use to track sales themselves. Programs that require the visitor to remember your name, or your site’s name, and enter it in when ordering, will result in many lost commissions.

    Article written by Lee.

  • The Gay Adult Market – Gay Subcultures

    Date: 2011.02.24 | Category: Promotion | Response: 0

    I thought I would take a break from writing about online adult marketing for a change and instead, give many of the straight webmasters looking to break into the gay market a bit of an insight into what makes a gay man ‘tick’ and, whilst this is going to be different from guy to guy, the one thing that will remain constant throughout is that this article is based on the gay lifestyle and subculture in both society and, the internet.

    What Is A Subculture?

    Lets start at the beginning shall we? To understand this article you are first of all going to need to understand what a subculture is well, a subculture as defined by http://www.dictionary.com is, ‘A cultural subgroup differentiated by status, ethnic background, residence, religion, or other factors that functionally unify the group and act collectively on each member.’

    In layman’s terms, that means, that a subculture is a group of people (or individual) that have something different about them than other people.

    In the instance of this article we are going to be looking at the gay subculture and specifically, how this culture is broken down into its own set of subcultures.

    The Gay Subculture – Lets Define The Gay Culture.

    Gay culture is the heritage of culture, knowledge, and references to which gay people fall heir by the fact of their sexual orientation.

    Some individuals argue that there are to many gay people who do not participate in ‘gay culture’ for the concept to be meaningful or that gay culture in itself is placing labels on the stereotype most people think of when they thing about gay people however with this said, there are also those who argue the flip side of the coin. One thing is for sure however, gay culture certainly does exist and, within this culture itself there are many complex facets ranging from sexual preferences through to the types of vacation people take.

    Gay Subcultures – The Facets.

    Whether we choose to think about the different subcultures within the gay community or not one thing is for certain, the subcultures in our community are wide and far reaching from your local gay bar to Soho in a city thousands of miles away most of the gay subcultures can be found almost anywhere in the world and, from this aspect, it makes gay individual no different than other person. For example, the BDSM lifestyle is large in the straight culture however, it is also hugely popular in the gay culture to often with groups of individuals who devote their whole way of life to this. In essence however, many of the gay subcultures are no different to that of their straight counterparts the only difference being, the individuals who practice them, are gay.

    Gay Subcultures – An Overview.

    For many webmasters who currently work in the straight market their first attempt and even their second attempt at marketing to the gay lifestyle may fail however, many do not realize the simplest of rules when it comes to marketing products and services to gay individuals online, you need to be as, if not more, detailed and direct to gay surfers than straight, give them something they can find anywhere at anytime and the chances are they will not buy however, give them something that suits their tastes perfectly and you have a customer for life.

    Article written by Lee

  • Bandwidth Explained

    Date: 2011.02.21 | Category: Hosting | Response: 0

    Bandwidth is the total amount of data that can be sent in a given time between two computer devices. The more bandwidth that is available, the faster the server.

    Any webmaster expecting a decent amount of traffic to their adult site will require a web hosting package that includes a large amount of bandwidth. This is so important, especially with the growth of your online business and, ultimately your sites. The more bandwidth your server has, the larger the number of surfers who will be able to view it at the same time, and the access it quickly will be. If you don’t have enough bandwidth, surfers will not be able to access your site as quickly, and that may turn them off which in turn, will mean they will leave your site.

    For this reason alone, it is important to select a hosting company that can offer you a great deal of bandwidth. As an example, larger hosting providers will have T1 lines or fiber-optic relays to access the Internet; these will provide a fair amount bandwidth. Another way is to get a dedicated server which, in turn, gives you exclusive access to your server’s connectivity instead of sharing it with others, as such allowing for maximum hardware performance.

    To calculate your bandwidth needs, you must know how large each page on your site is, including the graphics and any script usage you may have. Then, you multiply that by the number of views you expect the site to get every month.

    For example, say you have three 5k images on your page and a 2k HTML file – you would have 17k of data on that page. Multiply that by your expected page views (let’s say in this case it is 100,000 per month), and you get 1.7 G of data to be transferred that month for that page alone. Now calculate this for each page, and you will know approximately how much bandwidth your entire site requires.

    The best way of using bandwidth efficiently is to keep the size of your html pages low. In other words, ensure your HTML programming is adequate enough to use minimal amounts of coding for the purpose you want and, that your photos and graphics are small. To reduce photo file sizes you should always use JPEG format, which can reduce files up to 5% of its original size. Make sure to use the GIF format for graphics, as opposed to TIFFs or BMPs, which are generally much larger in file size.

    If you attach URLs to your IMG SRC that link to another person’s images without their permission, this is known throughout the online industry as hotlinking which, costs the person you are linking the image of money and not yourself. For this reason, hotlinking, is looked upon dimly.

    The unfortunate truth is that hotlinking is rife in the online industry. However, lets not let that deter you, by utilizing a file called .htaccess on your server, you can prevent other dishonest webmasters hotlinking your images.

    As with most things in this industry, you need to shop around to find the best prices available to you. However, that said, as a general rule of thumb, a gig of transfer can cost between $1 and $5 these are usually thought to be good prices for a gig of bandwidth. You can also get certain hosting packages that have a specific amount of bandwidth included in the price, however, the one draw back of these types of deals is that, if you go over that limit, you will either need to pay and excess bandwidth usage fee or, upgrade your hosting plan.

    Article Written By Lee

  • The Gay Opinion – Obscenity Laws and the Gay Market

    Date: 2011.02.23 | Category: General | Response: 0

    Let me begin by saying this is not a legal dissertation, but a collection of opinions on the recent comments and events inside the industry.

    Obscenity Laws have always been the “fly in the ointment” for adult. Not knowing when, if or how the government will act toward webmasters or companies.

    So what do I think? Every indicator out there says something or someone is coming. Big Brother is on the prowl. But, how will webmasters in the gay market act to ward off the evil?

    While discussing this with a number of webmasters, I found that the gay opinion is spread as wide as a gigolo’s legs on payday. The thoughts that have been shared vary from ultra conservative to down right militant. And once again, I find myself stuck dead in the middle.

    Here is a sampling of the opinions at large:

    I’ve heard from some webmasters who have a “come and get me attitude”. Their approach is the government has done enough damage to the gay community over time.

    Their attempts to sanction the gay adult industry will be simply another shot at taking us down – and that attempt will garner a public/media fight of the government acting as a bully. Now does this have anything to do with adult? No matter how I look at it, the one subject isn’t related to the other. Personally, the government’s reaction/treatment to the gay community has little to do with the government’s action towards adult. Yes, I can totally see how they got there, but it’s not enough for me.

    There is the “what else is new” set. This is a group of webmasters who own pay and/or free sites, have been doing this for a long time and they have adapted their companies and their marketing to sell memberships to the surfers. They use softcore and stories already on their feeder sites, have webmaster programs and they are happy with the results and will not change a thing. Their methods work – methods are not blatantly sexual but more sensual and the conversions are a testament to that. By the way, this is where I stand (right in the middle). The general thought is nothing has happened yet. Work smart and don’t panic.

    The other side of this is the “oh shit’ers”. These webmasters are re working their entire networks of gay porn to follow a well-established method of softcore only. Make them Pay for the Meat! They are reacting by taking down all hardcore images from their sites in order NOT to stir up any government dirt. Well as far as I’m concerned, they should have been doing this to begin with… sell the hardcore to members don’t give it away on a free site. For this, group the panic is on.

    Finally I spoke with the “fuck ’ems”. Now their idea isn’t that the government is suppressing the gay community. They look at this totally as a first amendment issue of freedom speech and expression. They use both hardcore and softcore to resell for webmaster programs and frankly, they feel that they will prevail over any government attack simply by way of Bill of Rights. They’re making money and they don’t care who knows about it.

    What does this all mean? Well here’s my take…

    First, it’s apparent that the opinions are just as varied as webmasters working the straight market.

    There is a general feel of, don’t panic – more than I have seen with straight market webmasters. I honestly, think this comes from our years of battle against the government on many other issues. Until the rumors become fact we will move as we always have – then deal with what is concrete rather than the abstract.

    Overall, the most resolute business people I have heard from, all said the same thing. If you use common sense, use methods that work and that do not go overboard there will be no need to panic. The hobbyist who is trying to make a million will leave out of fear, the “over the top” websites will be the target and those businesses run with common sense will continue with no major issues. I think my favorite statement to come out of these conversations is, “The government will bite, if you give them the bone. Don’t feed them and they go hungry.”

    I see the same “proceed as usual” attitude out there, as I have always seen in the gay community. Deal with the facts and only and not rumors.

    Once again, this is totally based on opinion and by no means a legal stance. If you have any doubts, concerns or questions about obscenity laws in your area or in general, please consult your attorney.

    Article written by Gary-Alan

  • Writing A Business Plan – The First Step To Success

    Date: 2011.02.21 | Category: Forms & Contracts, Writing | Response: 0

    Regardless of what type of business you want to run be it a bakery, a funeral home or an online marketing empire the one thing that you will require is a business plan however, having never taken any business basics 101 classes what do you need to have and, what is required in your business plan?

    That is what we will touch on in this brief article from the basics to the not-so-basics by using a few simple steps you can be sure your business plan will contain all the information you need to make it up the ladder of success.

    Information Summary.

    As the name suggest this is a simple summary of what you are hoping to achieve from the name of your business, the goals, the concept and your plans. This should actually be no longer than two pages so that you can fill the needed information out clearly and concisely.

    Business Details.

    This will be the founding information of your business again you need to mention your business name, what type of business you will be running (Sole Trader, Partnership, Corporation, etc) in addition you will also need to include details of who the company owners are, whether it be yourself alone or a list of your business partners, this information will be invaluable to you at a later date you also need to include a brief history of the business whether you have been running it already for a number of days, weeks, month or, years.

    Products And Services.

    Basically, you need to write what exactly it is you will be selling. Are you going to be selling baked goods, marketing services or custom solutions. Keep this section simple, if you need to go into depth then do so at the end of your business plan by way of an appendices. Once you have listed several of the products or services you will be selling you should also list the features and benefits (Marketing points) of the products and services in addition, why do you think your business idea will succeed, what do you offer your clients that no-one else currently does? In addition you also need to have a basic pricing structure planned out, this will assist you in the future as, from your initial plans you can see what, if anything needs to be changed.

    Marketing.

    A business is more than just an idea. You need to have good pricing, affordable suppliers and a great marketing plan. This is what is also needed in your overall business plan. You should include details of your competitors products and how they compare to your own or, if applicable why your product will be a benefit to the market place should it not already be readily available. In addition the marketing section of your business plan should include a list of advantages as well as some of the pitfalls you are likely to see. You also need to include a section detailing your specific marketing strategies regarding your overall and individual products and services.

    Industry Economics.

    This area should detail some of the more specific areas of the industry you are going to be working in for example, what type of industry are you entering, how does the future for this industry look and, more importantly, how many existing companies work this industry as well as how do you successfully launch yourself into the industry. Parts of this area you may have covered in the marketing and previous section non the less, go over them again here in more detail.

    Target Market.

    We have detailed the business ideas and products and services but, what about your potential clients? What does your product offer then that they need which no other company does? What is your target client base? How will you reach your customers? All of this and more needs to be addressed in this area of your business plan.

    Competing Companies.

    What do your competitors do and, more importantly, who are they? Make a list of your potential competitors and address their weaknesses and strengths ensure that you leave no stone unturned when getting this information together often, you will realize that there are things your competition is doing that you can do much better then they.

    Don’t forget to address their marketing, what are they doing right and, more importantly to you, what are they doing wrong? How can you capitalize on this and make their errors benefit your long term business plans.

    Location, Location, Location.

    Location is everything and, this is particularly true in business for example, will you be working from an office, from your home or even your garage, do you require any special permits to operate your business? Can your customers reach you easily? All of these items and more need to be considered when writing this area of your business plan. By addressing any and all of these items you will find yourself with a much clearer picture of what is needed of you and your business.

    Stock + Supplies.

    Often overlooked in business plans the one thing you NEED to have is a list of potential suppliers and sub-contractors who can provide you with your products and services. What materials (if any) do you need? How much will these cost you? Where will you find your stock and supplies? By getting this information available now you will have a better idea once your business plan is laid out as to what you are able to offer easily and also it will enable you to lay your pricing structure out more concisely.

    Labor.

    So you have this great business idea all laid out but, who will be running this for you? Do you need additional staff or are you going it alone? Do you need to setup accountants, lawyers, insurance companies, consultants, bank accounts etc etc? All of these aspects of your business need to be laid out here.

    Capital.

    Money, as they say, makes the world go round. Your business is no different, how much financial outlay do you require to get your business off the ground? Do you need to ask for a loan from your banking facility to help you out? How much income are you planning on making within the next 6 to 12 months? How much of this income needs to be invested back into the business? All of these ‘financial’ question need to be answered in this area of your business plan only then will you begin to see the bigger picture of your business idea.

    Hopefully this article has given you some solid advice and information regarding planning for your new business and, once you have all of the above laid out you should be able to see whether you will succeed or fail in your new idea.

    Also, by planning now for the future of your business you should hopefully be able to avoid any hidden costs which can often push a company to the edge.

    Article written by Lee

  • Everything You Need To Know About Meta Tags And More!

    Date: 2011.02.22 | Category: Search Engine Optimization, WebDesign | Response: 0

    Everything You Need To Know About Meta Tags And More!

    There’s a plethora of different META Tags that you can make use of on your site. Because there are so many, it’s impossible for me to cover all of them in this article. However, I will describe the most common ones. But let’s start from the beginning, shall we?

    What Are META Tags?

    META tags are similar to standard HTML tags. However, there is one big difference: You have to insert all META tags between the <head> </head> tags on your page(s). META tags are used primarily to include information about a document. The META tags will be invisible to your site’s visitors, but will be seen by browsers and search engines.

    For The Search Engines.

    Several of the major search engines make use of the META Keyword tag, and virtually all of them make use of the Description tag. These tags help the search engine spider determine the content of your web site so that it can be indexed properly.

    This is what they look like:

    <META name=”keywords” content=”Webmaster Resource Site”>
    <META name=”description” content=”Online Webmaster Resource Site”>

    You can also instruct the search engine robot/spider how to index your site using the robots META Tag. This is what it looks like:

    <META name=”robots” content=”noindex,nofollow”>

    What the tag above does is tell the spider not to index the page that it appears on, and not to follow the links on that page. Here’s a complete list of attributes for the robots tag:

    index – the default, the page is added to the search engine database

    noindex – the page is not added to the search engine database

    nofollow – the spider doesn’t follow the links on that page

    none – same as “noindex, no follow”

    To use any of these attributes simply replace the “noindex,nofollow” text in the example above with whatever you want to use. If you need to use more than one attribute, separate them with a comma.

    Client Pull.

    Have you ever seen a page that automatically refreshes to another URL after a few seconds? Did you ever wondered how it was done? I’ll tell you. The page made use of one of the http-equiv META Tags to automatically “pull” you to a different page after a few seconds. Here’s what the code looks like:

    <META http-equiv=”refresh” content=”1; url=newpage.htm”>

    The value of content denotes how many seconds will pass before the new page is called for. If you want it to happen as soon as a person hits that page, then set the value to “0”.

    Prevent Caching.

    If you want to prevent a page being saved in your visitor’s cache you can do so by inserting the following three tags:

    <META HTTP-EQUIV=”expires” CONTENT=”0″>
    <META HTTP-EQUIV=”Pragma” CONTENT=”no-cache”>
    <META HTTP-EQUIV=”Cache-Control” CONTENT=”no-cache”>

    Why would you want a page not to be cached? If your site is updated frequently and you always want your visitors to see the newest content/changes, or if you want to ensure that a new banner is loaded each time from your server when a page is accessed, you’ll want to use the tags above.

    A quick note here on banner caching: In addition to using the tags above, you’ll want to append random numbers at the end of the tag calling the image.

    Rating Your Content.

    By using the rating META tag on your site, you can specify the appropriateness of your web site for kids. The tag looks like this:

    <META name=”rating” content=”general”>
    In addition to the general rating, you can use three others. They are:

    mature

    restricted

    14 years

    Misc. Tags

    Below I’ve listed several other popular tags that you may have seen around the web.

    The generator META tag is used to specify what program was used to create your web site. Many HTML editing tools automatically insert this so that a company can gauge their market penetration. The tag looks like this:

    <META name=”generator” content=”program name and version”>

    The author tag is used to identify the author of a page. Simply replace “author’s name” with your name or email address.

    <META name=”author” content=”author’s name”>
    The copyright tag identifies the individual or company that holds the copyright to a particular page. This is what it looks like:

    <META name=”copyright” content=”This page and all its contents are copyright 2003 by Lee Windsor. All Rights Reserved.”>

    I hope this article gave you some insight into the usage of Meta Tags and how they can benefit your day to day business.

    Article written by Lee

  • Using .htaccess Effectively

    Date: 2011.02.24 | Category: WebDesign | Response: 0

    The .htaccess file is an ASCII text document that can be placed in any directory on your site. It can be used to control access to files and directories, and customize some server operation in your site. A .htaccess file can be created in any word processor but must be saved as text only. You must use FTP software in ASCII mode to upload or edit your .htaccess file. For the examples provided here, place the .htaccess file in your root directory.

    There are a variety of functions that you can control using .htaccess some of the more useful of these are explained below:

    Custom Error Messages.

    Add the following to the .htaccess file::

    ErrorDocument 404 /notfound.html

    After “ErrorDocument” specify the error code, followed by a space, and then the path and filename of the .html file you would like to be displayed when the specified error is generated, each specific error code is detailed below with the recommended codes to be used in the .htaccess file in bold :

    200 OK
    206 Partial content
    301 Document moved permanently
    302 Document found elsewhere
    304 Not modified since last retrieval
    400 Bad request
    403 Access forbidden
    404 Document not found
    408 Request timeout
    500 Internal server error
    501 Request type not supported

    Using the codes above your error section of the .htaccess file should look like this:

    ErrorDocument 301 /notfound.html
    ErrorDocument 400 /notfound.html
    ErrorDocument 403 /notfound.html
    ErrorDocument 404 /notfound.html
    ErrorDocument 500 /notfound.html
    ErrorDocument 501 /notfound.html

    Redirect to a Different Folder.

    Add the following to the .htaccess file:

    RewriteEngine on
    RewriteRule ^/oldfolder(.*)$ /newfolder/$1 [R]

    This redirects the user from /oldfolder/anyfile.html to /newfolder/anyfile.html, when the .htaccess file is uploaded to the otherwise empty “/oldfolder” directory.

    Denying User Access.

    Add the following to the .htaccess file:

    <Limit GET>
    order allow,deny
    deny from 000.00.00.
    deny from 000.000.000.000
    allow from all
    </Limit>

    This is an example of a .htaccess file that will block access to your site to anyone who is coming from any IP address beginning with 000.00.00 and from the specific IP address 000.000.000.000 . By specifying only part of an IP address, and ending the partial IP address with a period, all sub-addresses coming from the specified IP address block will be blocked. You must use the IP addresses to block access, use of domain names is not supported

    Redirect a Machine Name.

    Add the following to the .htaccess file:

    RewriteEngine On
    Options +FollowSymlinks
    RewriteBase /
    # Rewrite Rule for machine.domain-name.net
    RewriteCond %{HTTP_HOST} machine.domain-name.net $
    RewriteCond %{REQUEST_URI} !machine/
    RewriteRule ^(.*)$ machine/$1

    This will redirect requests for the machine name machine.domain-name.net to the directory machine on the site domain-name.net.

    Different Default Home Page.

    Add the following to the .htaccess file:

    DirectoryIndex filename.html

    Then a request for http://domain-name.net/ would return http://domain-name.net/filename.html if it exists, or would list the directory if it did not exist.

    To automatically run a cgi script, add the following to the .htaccess file:

    DirectoryIndex /cgi-local/index.pl

    This would cause the CGI script /cgi-bin/index.pl to be executed.

    If you place your .htaccess file containing the DirectoryIndex specification in the root directory of your site, it will apply for all sub-directories at your site.

    Preventing Hot Linking.

    Add the following to the .htaccess file:

    # Rewrite Rule for images
    RewriteCond %{HTTP_REFERER} <URL of page accessing your domain>
    RewriteRule ^(.*)$ http://<same as above URL>

    You would replace the <URL of page accessing your domain> above with the domain name and path of the page that is referring to your domain. For example: www.theirdomain.com/users/mypage/

    The RewriteCond directive states that if the {HTTP_REFERER} matches the URL that follows, then use the RewriteRule directive. The RewriteRule directive will redirect any reference back to the referring web page.

    Using the above you should, safely be able to publish your sites on the internet knowing that you will not be privy to bandwidth thieves via hotlinking and also, that you will not lose any traffic through pages that are ‘not found’.

    Article Written By Lee

Premium Sponsors















Categories

Site Links