• Now They Signed Up – Learn How To Keep Them

    Date: 2011.02.22 | Category: General | Response: 0

    Member retention is going to have a large effect on the adult industry over the next few months, with Visa chargeback rates being lowered and, many affiliate programs lowering their payout model something has to give and, hopefully, the thing that does give will be that affiliate programs start to realize that once they have your surfer, it becomes their responsibility to make that member retain.

    With that in mind this article will look at a few things that we have been doing on some of our paysites for the last few months and, instead of having to provide an excess of plug in content we have started updating our sites regularly within the niche confines of what our members are actually looking for, also, despite this increase in content, we have started doing something unique so far as member retention goes – actually communicating with the member directly.

    Communication Pays.

    Actually spending the time to listen to what your members want can be beneficial on many levels for example, how many of the big sponsors offer the member a chance to become involved in a ‘community’ inside their paysites, i can only think of 3 paysites that i have personally visited that do this.

    Often, offering your members a way to communicate to YOU what they want inside the site can, and usually will increase the value of their membership to you in the long run. offer your members weekly polls, offer them incentives to keep an active membership, perhaps some kind of loyalty program, in addition to a method of your paysite members being able to communicate to each other inside your site.

    Content Updates.

    We all know that paysites need to update however, how many paysite owners spend the time to ask their member what they are looking for? As mention in the previous section, offer your members polls on the next updates you will be doing, ask them what sections of the site need improving and, more importantly, ask them if they are happy with how your site looks and feels overall.

    Renewal Time.

    So you have managed to keep hold of your paysite member for a few days without them canceling and, their trial period is ending what now? Well, more often than not, communicating to the member that they are about to get rebilled can have a positive effect, send them an email prior to the rebill informing them of what your next set of updates will be, let them know they are a valued member of the site and, more importantly than this, that you are there to help them and listen to their suggestions. This is also an ideal time to remind them of why they joined your site in the first place, you have a lot of exclusive content that, simply put, no other paysite can offer them, you listen to their feedback and, again, value their feedback, all of these things will ensure that your member base retains well over the trial period.

    Second Month Renewals.

    So you have managed to keep your member for a month, and, again they are due a rebill, as with the first rebill you gave them, re-iterate the points of your site and, tell them what has changed over the past month, give them some sales speak about how your site is doing and, more importantly, what you have coming next month, by communicating these updates to your members a day or so before they have to renew, you should, in all honesty, keep their interest in your paysite and, more importantly, make more money from your members.

    So Your Member Cancels.

    Okay, so perhaps you managed to rebill your member for a few month or, perhaps they left after the trial period, what now? Simple, send them a follow up email, find out the reasons they cancelled their membership to your site and, see if you can offer them an alternative to stay, perhaps a reduced cost membership or, maybe even an alternative site altogether, if they entered your teen pay site and, were looking for amateur teen pics, even though you know you don’t have them yet, you will probably know of a site that does, tell this cancelled membership about this site and, get them to try it out, if you can match what the surfer is looking for to a site you own then you have a second chance at keeping their membership and, making money.

    Retention Overview.

    When all is said and done the one thing that is apparent so far as pay sites go is that a lot of them do not communicate with their members and build the sites they operate around what their members are looking for, we can all say we actually do this constantly but, how many of us really, hand on heart, can prove that they ask, listen and, more importantly, implement the feedback from their members base?

    Article written by Lee

  • European Surfers – Gold Waiting To Be Harvested

    Date: 2011.02.22 | Category: Promotion, Traffic | Response: 0

    80% Of the internets content is English. 40% of internet surfers cant even read English, let alone understand it. Out of all the countries in the world, German internet users spend an average of 59.2 minutes looking at porn a month closely followed by Norwegian surfers who looked at it 55.4 minutes every month, how many of you have sites catering to this market? Not one of you… I would bet!

    Most webmasters that I know of automatically assume, European surfers = Freeloading Bestiality Loving Sicko’s. That’s bullshit! In fact, a larger and larger percentage of European surfers are looking for porn. Sure, they can find it by the bucket load but, lets be honest, Herman from Munich who cant speak a word of English is going to be making a lot more from this industry than Jason in Miami.. WHY? Because Herman has a captive audience, most of his surfers are German speaking after all, that’s the language he makes his sites in, that’s the language of the sponsors he uses and, like it or not, German surfers are proven to be avid porn surfers and, more importantly, Credit Card spenders!
    But Wait…

    Hang on a second, Credit Card spenders? But I thought the best way of milking $$$ out of foreign surfers was to send them off to a dialer program? hmmm…. perhaps I’m missing something??

    You are! there are a lot of sponsors that don’t have any sites in English, Germany has a load of high converting AVS sites, why is this? Because they are written completely in German, Spain has a lot of good quality sponsor that work wonders, Why? Again because they are written in Spanish.

    You have a lot of AVS, TGP and free sites that don’t make as much as they could, WHY? because you haven’t considered the global market! Let’s be honest here, the big sponsors of this world you use, how many of them say in their terms and conditions, they don’t allow access to German, Spanish, Ukrainian, Russian surfers? Ill bet at least 50% or more of them right? that’s money you have just lost! Sure, you can ship them off to a dialer program and hope they download it, most wont, sure you can send them to an opt-in email program and hope to make some money from them long term, you wont, In fact, European surfers detest having to give any information about them out. Its a privacy thing, they don’t want you to know who they are, so you cant tell their governments who they are, it sounds harsh but, its true.

    So How Do I Do It??

    The best way to milk money from the European surfers is to treat them EXACTLY the same as American surfers, but, with one major difference… You need to build for their language, get this right and you’ll be laughing all the way to the Bundesbank :)

    But, where do you start, how can you build a site in a language you know nothing about? Simple, do some research, there are places out there that cater to European based webmasters, go to the forums, ask for help, you wont be laughed at, you wont be ridiculed and, who knows, you may just learn something in the process!

    Sign up to a foreign sponsor, you can find a lot on our site, most of, if not all of these foreign sponsor will gladly help you out, they have email support in a variety of languages themselves, drop them a line, tell them you need help, Ask for it… It will come.

    Now you have the help you need what next? use it, ask everyday if you have to, there are some good translation services available on the net, spend $50 to get an existing site you have that’s working well translated into a foreign language, I guarantee you, its money well spent! Once you have this translated ‘template’ site use it time and time again, tweak it until you find the best converting site you can, submit it to all the foreign search engines around, you’ll soon pick up that its not much different to working your ‘standard’ sites except, you’ll have trapped a larger percentage of internet porn surfers and, what’s more, this is a percentage that YOUR competitors wont have!

    Integration..

    Is it possible to build foreign sites and English site to work together? YES but, its hard, you have to mimic the responses you have learnt from the trial you did with the first translated site, once you start to see trends happening, build on them, if something doesn’t work, swap it out, put something in its place, even if.. Its a US sponsor. You have the framework, the surfer is in your site, they know what its about, that’s the time to start introducing the foreign (to them) sponsors ads.

    The Results..

    The results of your trial will speak for themselves, you will have tapped into an as yet untamed market, You will have more scope of growth for your business, You will have established a new traffic source, You will be able to reap the benefits. Of course, you need to work for it, don’t expect magic overnight, it just isn’t gonna happen! Remember when you first started webmastering? it was hard work, tapping into the European market is even harder, its like starting all over again from scratch then, realizing you know what your doing but you have been doing it wrong all these years.

    Article written by Lee

  • SEO Pyramid Scheme

    Date: 2011.02.24 | Category: Search Engine Optimization | Response: 0

    I thought i would spend a little time to let you guys in on a little something i like to call the SEO Pyramid Scheme

    Basically, we all know the importance of targeting specific keywords and phrases however, this isn’t necessarily the easiest of things to do until now…

    Lets take a simple free site as our example, We know we have to have Meta Tags, Descriptions, Alt Texts and Body text on our site but how do we keep this all in within the theme of our site and, more importantly, how do we make sure we target as much of our niche traffic as needed? Actually the process itself is a simple one that has been around for many years however, very few people make good use of it.

    So we have our free site all ready and waiting to be optimized for the search engines the first thing we need to do is take a look at our sites content (read as images) and make a short mental description of them so for example, if we have a teen site the pictures may be of a ‘blonde sexy teen model wearing stockings’.

    That description is the basis for our keyword pyramid.

    We now have to construct our pyramid based on that brief description so we start o break it down word by word for example:

    Blonde
    Sexy
    Teen
    Model
    Stockings

    That is our primary layer in the pyramid already completed, not so hard really was it

    Now comes our second level in our SEO pyramid:

    Blonde Sexy
    Sexy Teen
    Teen Model
    Model Stockings

    As you can see from this we now have our secondary layer of the pyramid all worked out onto our tertiary layer:

    Blonde Sexy Teen
    Sexy Teen Model
    Teen Model Stockings

    Now we have our tertiary layer for our pyramid we can continue this for further layer like this:

    Blonde Sexy Teen Model
    Sexy Teen Model Stockings

    Again, we can break this down one more level like this:

    Blonde Sexy Teen Model Stockings

    We now have 5 layers to our pyramid.

    The next stage is to incorporate these layers into both your Meta Tags and, more importantly you body text.

    Take each layer in turn and, where possible include one line from each later into each portion of our HTML code from the Meta Tags, Alt Tags, Main Body Text, Hyperlink Text and, Image File Names.

    By working through each layer of this SEO pyramid at a time you will not only discover keyword rich phrases that you could otherwise be missing out on in the search engines but, you will give your sites a theme making your chances of being listed for the correct search terms even better.

    Article written by Le

  • The Web Safe Color Palette

    Date: 2011.02.24 | Category: WebDesign | Response: 0

    The “Web Safe” palette is a bit controversial. It is a set of 216 colors that are, supposedly, guaranteed to appear as intended on all graphical displays when used in HTML, CSS, and images embedded in Web pages. Many Web developers believe that sticking to these colors is one of the holiest commandments in the Web design scripture.

    This was mostly a concern when most computers had 8-bit color displays; these days, most people run at 16-bit or 24-bit color. Although these bit-depths render the Web Safe palette pointless, dithering and quantification bugs in browsers and operating systems still cause problems in 16-bit displays (16-bit display, also known as “High Color” mode or “Thousands of Colors,” is generally problematic). Extensive testing has led to a new palette, called “Really Safe,” whose colors are guaranteed to appear correctly on all displays and all browsers.

    If you use different colors than these, you might see images and backgrounds of the same color appear at a slightly different tint, so that a “box” will be visible around them if the background extends beyond the image’s edges.

    Below is the table of ‘Web Safe’ and ‘Really Safe’ colors, you will see some of the color hex codes are in red, these are ‘Really Safe’ colors.

    Code Color Code Color Code Color Code Color Code Color Code Color
    000000 000033 000066 000099 0000cc 0000FF
    003300 003333 003366 003399 0033cc 0033ff
    006600 006633 006666 006699 0066cc 0066ff
    009900 009933 009966 009999 0099cc 0099ff
    00cc00 00cc33 00cc66 00cc99 00cccc 00ccff
    00FF00 00ff33 00FF66 00ff99 00FFCC 00FFFF
    330000 330033 330066 330099 3300cc 3300ff
    333300 333333 333366 333399 3333cc 3333ff
    336600 336633 336666 336699 3366cc 3366ff
    339900 339933 339966 339999 3399cc 3399ff
    33cc00 33cc33 33cc66 33cc99 33cccc 33ccff
    33ff00 33FF33 33FF66 33ff99 33FFCC 33FFFF
    660000 660033 660066 660099 6600cc 6600ff
    663300 663333 663366 663399 6633cc 6633ff
    666600 666633 666666 666699 6666cc 6666ff
    669900 669933 669966 669999 6699cc 6699ff
    66cc00 66cc33 66cc66 66cc99 66cccc 66ccff
    66FF00 66FF33 66ff66 66ff99 66ffcc 66FFFF
    990000 990033 990066 990099 9900cc 9900ff
    993300 993333 993366 993399 9933cc 9933ff
    996600 996633 996666 996699 9966cc 9966ff
    999900 999933 999966 999999 9999cc 9999ff
    99cc00 99cc33 99cc66 99cc99 99cccc 99ccff
    99ff00 99ff33 99ff66 99ff99 99ffcc 99ffff
    cc0000 cc0033 cc0066 cc0099 cc00cc cc00ff
    cc3300 cc3333 cc3366 cc3399 cc33cc cc33ff
    cc6600 cc6633 cc6666 cc6699 cc66cc cc66ff
    cc9900 cc9933 cc9966 cc9999 cc99cc cc99ff
    cccc00 cccc33 cccc66 cccc99 cccccc ccccff
    ccff00 ccff33 CCFF66 ccff99 ccffcc ccffff
    FF0000 FF0033 ff0066 ff0099 ff00cc FF00FF
    ff3300 ff3333 ff3366 ff3399 ff33cc ff33ff
    ff6600 ff6633 ff6666 ff6699 ff66cc ff66ff
    ff9900 ff9933 ff9966 ff9999 ff99cc ff99ff
    ffcc00 ffcc33 ffcc66 ffcc99 ffcccc ffccff
    FFFF00 FFFF33 FFFF66 ffff99 ffffcc FFFFFF

    Hopefully, you will find a use for the two different color palettes that are now available and, you can begin designing for your surfers, regardless of which browser they use.

    Article written by Lee

  • Adult Search Engine Optimization

    Date: 2011.02.21 | Category: Promotion, Search Engine Optimization | Response: 0

    Gone are the days when adult webmasters could Spam the search engines and get highly trafficked sites within a month of the search engines updating many of the search engines caught onto the adult industry very early on and started changing the way in which they indexed sites they went from meta tag optimized listings to theme indexing to almost every type of search engine optimization method in between.

    Search Engine Optimization Techniques.

    It would seem with the changing times of search engine optimization that there is no longer a single solitary way to get your adult sites listed highly in the search engines but rather a mixture of different adult seo methods being used on a single site ranging from increasing your pagerank, including relevant meta tags and page content to standard adult search engine optimization methods such as getting other popular websites linking to yours but with this comes a new challenge of its own webmasters need to get back to the basics to figure out what worked then and, what will work now so far as adult search engine optimization goes.

    Adult Search Engine Optimization Companies.

    There are many companies currently online that can offer adult webmasters their search engine optimization services however, how do you choose an SEO company that will not only work for you but, is cost effective for your needs, the simple answer is to ask around, there are sites online presently that offer monthly memberships to gain access to their adult seo techniques in the form of articles and tutorials just as their are sites that offer no information whatsoever or, information that, while it worked three years ago, it no longer works in today’s adult seo marketplace. You need to ask for advice from customers who have used adult optimization companies in the past and see how their results improved as well as making sure that what you are actually purchasing is a service that doesn’t just guarantee you improved site rankings but actually guarantees you will see a profit from the money you spent on the optimization services.

    Adult SEO Breakdown.

    Adult search engine optimization companies have only really become apparent in the adult industry over the last 6-12 months however, many well known and respected webmasters have been working on optimizing their adult sites for years and, whilst doing so, they have also achieved a vast knowledge base on how to optimize your adult sites for the search engines, again, ask around on the message forums to find the solution that will best suit your needs and budget and you wont go far wrong, the adult search engine optimization business model is one that in all actuality should change on a regular basis however, as mentioned above some companies are still using the same optimization methods they used three or four years ago, make sure you do your background checks before parting with any money and, most importantly, use the search engines to find their sites in search terms where, if they were any good at all, they would already have first page listings.

    Article written by Lee.

  • Redirecting Questionable Adult Traffic

    Date: 2011.02.24 | Category: 2257, Scripts | Response: 0

    The one thing almost all reputable adult webmasters agree on is that one way or the other, we want to rid the net of those webmasters that profit from traffic primarily gained from either the direct promotion of or, targeting of, keywords relating to child pornography however, how can you tell what traffic you are being sent and, more importantly, how can you do something about the type of traffic that you receive to your site in order to filter out this unwanted traffic? The answer is simple, use a script to redirect the traffic elsewhere before it even hits your site.

    Child Porn Redirection Php Script.

    The following php script when used on your server will enable you to send unwanted traffic gained by the promotion of using ‘illegal’ keywords in the search engines and sites which link to your own.

    <!– Start Copy Here –>

    <?

    // Redirect “Lolita” traffic

    $refer_full_path = “$HTTP_REFERER”.”$PATH_INFO”;

    if(( preg_match(“/lolita/i”, $refer_full_path)) ||
    ( preg_match(“/child/i”, $refer_full_path)) ||
    ( preg_match(“/preteen/i”, $refer_full_path)) ||
    ( preg_match(“/pre-teen/i”, $refer_full_path)) ||
    ( preg_match(“/pedo/i”, $refer_full_path)) ||
    ( preg_match(“/underage/i”, $refer_full_path)) ||
    ( preg_match(“/beast/i”, $refer_full_path)) ||
    ( preg_match(“/rape/i”, $refer_full_path)) ||
    ( preg_match(“/kinder/i”, $refer_full_path)) ||
    ( preg_match(“/incest/i”, $refer_full_path)) ||
    ( preg_match(“/kiddie/i”, $refer_full_path))) {

    header(“Location: $refer_full_path”);
    exit;
    }

    ?>

    <?
    $words=array(“childporn”,”underage”,”beast”,”interracial”,”lolita”,”preteen”);
    for($i=0;$i<count($words);$i++){
    if(eregi($words[$i],$HTTP_REFERER)){
    header(“Location: http://www.fbi.gov/?CHILD_PORN_ON_DISK_LOGGED_AND_REPORTED”);
    }
    }
    ?>

    <!– End Copy Here –>

    In order to use this script, simply add additional keywords or partial word matches to the top part of the script and, include the bottom half of the script at the top of your HTML coding.

    Any traffic being sent to your site via keywords which you have specifically told the script not to allow access to your web site will be forwarded to the url in the bottom part of the php script which again, can be changed to wherever you like.

    Article written by Lee

  • Resource Forums – The Changing Face Of The Adult Industry

    Date: 2011.02.24 | Category: General | Response: 0

    Online adult webmaster resource sites are becoming a thing of the past instead, we have witnessed a new breed of resource site being birthed in the adult industry, the resource forum. It seems like almost every major adult sponsor and webmaster has their own resource forum as of the current time however, what is making these forums stand out from one another and, more importantly, can you actually learn anything valuable from them.

    Webmaster Resource Forums.

    Back in the day there were only a handful of resource forums made available for adult webmasters to educate themselves further, these included such sites as Ynot Masters, Netpond (then The Condom Chronicles) and Porn Resource, however, to date there are no less than 200 webmaster resource forums floating around the internet for adult webmasters to post on.

    With this amount of resource forums available to webmasters it seem impossible that many webmasters cant be making a profit however, upon closer inspection a disturbing trend seems to be taking place.

    Resource Forums – Webmasters Posts.

    With the sudden surge of webmaster resource forums in the last 6-12 months there is one thing that is apparent, most of, if not all of the resource forums to have spawned during this time have one thing in common, the webmasters who post on them, often, these webmasters are posting for a single reason, to get other webmasters to click on their signatures, nothing more, nothing less.

    It would appear that the adult industry is heading towards a meltdown of the adult resource forums, with more and more webmasters grabbing free scripts such as phpbb to load onto their domain and launch their own resource forum it would appear at first glance as if the industry is a thriving community of webmasters all willingly helping each other out however, this is not the case, instead, we find post after post duplicated across multiple resource forums in the effort of making the longest thread, getting the most page views and, ultimately, getting the most signature clicks.

    Webmaster Resources.

    So with all of this going on what’s happening to the actual resource sites? Well they are still around and, they are still being used however, these have now become second place to the message forum, often as mentioned above, webmasters will post the same message on several message boards and get several replies of exactly the same answer from exactly the same people. Whilst this in itself is a good thing (the exchange of information) my personal feelings are that we are heading towards an excess of resource forums and, whilst communication is needed, there also becomes a point at which you can get an information overload, new webmasters entering the adult industry will see the variety of forums made available to them and start posting however, in doing so they forget the one thing that they actually should be doing, working.

    Webmaster Resource Forums – Overview.

    I think within the next 12 months we are going to see one of two things start to happen, either the resource forum phenomenon will continue as it is doing now or, the resource forum will become a thing of the past whilst a new medium takes its place, one thing is certain though all these webmasters posting on forums to get sig views and post counts are not doing the one thing they should be, making money and, this becomes all to apparent after watching the same old posts, make the rounds to the same old forums time and time again.

    Resource forums can be great help to the adult webmaster however, at the same time, they can also become a webmasters biggest downfall, remember why resource forums are there, to help you when you need it and to socialize when you have to, at what point to do you stop getting help and start becoming a post whore? Well only you can answer that question.

    Article written by Lee

  • What’s A CHMOD?

    Date: 2011.02.24 | Category: Hosting, WebDesign | Response: 0

    CHMOD is another name for setting the permissions of files on your server.

    All UNIX based web servers understand the concept of permissions. these are broken down into three distinct areas.

    Permissions for the person who OWNS the file.
    Permissions for the group (all users are members of one or more groups).
    Permissions for everyone else.

    Permissions are listed one of two ways either using numbers such as 755 or, using letters such as rwx-xr-x however they both mean the same thing.

    The first number or first group of three letters stands for the permissions of the owner (IE 7 or rwx).
    The second number or second group of letters stands for the permissions of the group (IE 5 or xr).
    The third number or third group of letters stands for the permissions of everyone else (IE 5 or x).

    The way the system works is as follows:

    1 = x = you are able to execute (run) this program.
    2 = w = you are able to write to this file.
    4 = r = you are able to read the contents of this file.

    so if you add it up rwx = 7.

    So, in the example given above (755 or rwx-xr-x) the owner is allowed to read and write the file AND execute it.
    The group is allowed to execute and write to the file.
    Everyone else can execute the file.

    We hope this gives you a little more insight to how CHMOD’ing or, setting the permissions on your server can affect how files act.

    Article written by Lee

  • Building Your Brand – Business Basics

    Date: 2011.02.21 | Category: Branding | Response: 0

    Many online businesses have a good solid brand name attached to them already for example, ARS (http://www.adultrevenueservice.com), Webair (http://www.webair.com) and, WEG (http://www.wegcash.com). These companies have worked long and hard to build up their own brand name on the internet and, specifically, in the adult industry where, it almost seems that everyone is out to make a name for themselves so, how do you as a small business owner get a piece of this branding pie?

    Branding Basics.

    The word ‘Brand’ or ‘Branding’ can refer to several items when used as a noun to describe a company name, product, service or, trademark. Branding started centuries ago when cattle ranch owners used to place their unique insignia on their cattle so that surrounding ranch owners knew who the cattle belonged to and, so that the owners of the brand knew if their cattle were being stolen by others.

    Starting The Branding Process.

    From the very first site you build you should start working on your own inimitable brand name or logo, perhaps it will consist of a small logo on top of every page you build or even a simple text link for your sites domains, either way, the one thing that is important in recognizing a brand is being able to place it to a product instantly.

    Building Your Brand Name.

    Now that you have started the branding process how can you continue to grow your businesses brand name or product even further? This is what we will take a look at next.

    Domain Name Registration.

    Buy the domain name that is representative of your ‘brand name’ if your brand is going to be 123pornosex then go and register 123pornosex.com be cautious though, just because you think of a brand name, you should ensure the domain is available to register BEFORE you start using that brand in detail.

    Getting The Word Out.

    This may seem like the hardest of tasks at first but, once you make a start in branding your site or, yourself this is relatively easy to keep up on an ongoing basis.

    Visit the boards, use your tagline as often as possible and, either mention your brand name in the tagline or, link to your brand names website. This is especially easy to do if you run a TGP or some other site that needs to attract webmaster traffic in order for it to succeed.

    Start your own newsletter, this may seem an odd way to build your brand up but, if you name your newsletter the same as your brand name for example you might have a text link saying:

    Join the BRANDNAME Newsletter.

    This keeps the branding process alive and well. The next step you should take it to ensure that the sender address of the email is something like brandname@brandname.com again, even though you have collected the email addresses by sending out mailings from an address like the one above you have more of a chance of your brand name actually staying in the mind of the newsletter recipient.

    In addition to a newsletter, you might also like to consider having a designer make you a logo or button you can use on your site/s this will come in handy for several uses for example, if you own a traffic site you can use this logo as a reciprocal link, you can use it in your signature on message forums and, you can even include it on sites you build.

    You might also like to consider writing articles for other sites to use, usually the sites that publish your articles will place a link or a small bio to you or your site, this is another way to increase the ‘exposure’ of your brand.

    Branding Overview.

    All in all, building a brand name for yourself or your business need not be a hard and tedious task in fact, if you start off almost immediately building up name recognition for you and your sites. Regardless of what type of product, service or site you operate getting your brand name recognized by both webmasters and surfers can lead to a lot of money long term, start now and reap the benefits later in your career.

    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