• Redirecting To A Different Page Using JavaScrip

    Date: 2011.02.24 | Category: Scripts | Response: 0

    There are times when a simple JavaScript redirection from one page to another can come in handy and, the following JavaScripting will enable you to do this.

    When a page contains this javascript, it will be redirected to another page that you specify in the “window.location=”. You can change the number of refresh seconds by changing the “move()’,1000 to the number of seconds you’d like.

    Example:

    1000 = 1 second
    2000 = 2 seconds
    3000 = 3 seconds

    Place this JavaScript code between the <head> and </head> tags

    <script language=”JavaScript”>
    <!–hide from old browsers
    var time = null
    function move() {
    window.location = ‘http://www.yourdomain.com’
    }
    //–>
    </script>

    Place this JavaScript code in your <body> tag

    <body onload=”timer=setTimeout(‘move()’,1000)”>

    You should now have a page that will redirect to a new url when it loads in the surfers browser window.

    Article written by Lee

  • Niche Marketing – What Is A Niche?

    Date: 2011.02.23 | Category: Promotion | Response: 0

    The first step as webmasters we must take to become successful is to discover what our niche specialty is however, many webmasters still do not realize exactly what a niche is.

    In fact, from the webmasters I have spoken to it would seem that a ‘niche’ is just another word for the main topics of pornography, Teen, Asian, Fetish, Gay, Straight, the list goes on and, whilst this list is never ending they are all niches in themselves however, you need to look beyond the top level niche and start to develop a feel, a stance of your own as to what niche you will work on for example, Asian Midgets, you probably cant get more niche than that in this day and age however, realistically, the chances of you a) being able to find the content for this niche and b) Being able to find a sponsor are remarkably thin.

    That said, if you can find a niche that you like personally, whether that be she-male, midgets, straight or, gay, this will give you a solid foundation to market your sites on especially if you build on your already vast knowledge of what turns you on.

    Now, onto breaking down the niche you are comfortable working in..

    Lets say for arguments sake that you have chosen to concentrate on the ‘Gay’ market,, within this market (as with any other) there is a remarkable amount of ‘sub-niches’ and, these are what you need to build your business around whether you want to or not, the ‘sub-niches’ of any given adult market is where the $$$ can be earned.

    Now using the gay market as an example the first few niches that come to mind are:

    Twink’s – Young looking hairless 18 – 20 year olds.
    Bear’s – Hairy men over the age of 20.
    Hunk’s – Muscular looking guys in the age group of 20 – 30 .
    Straight Guys – Yes, that’s right, gay men get off on looking at straight guys.

    As you can see from the above four examples we can now start targeting our market audience a lot better.

    The next thing we need to do now that we have found the niche and the sub-niche we will be working is to look for a sponsor that complements the niche of our choice, this is the hard part. Many webmasters will go directly to the highest paying sponsor and throw links up to their ‘sub-niche’ pay site not even looking at the sites tour or members area. This is a huge mistake, the first thing you NEED to do is to look over the sponsors paysites and, more importantly, the sponsors site tour AND members area. What point is there sending your surfers who are after Twink’s if, your sponsors tour has images of a load of guys over the Twink age bracket?

    From this point on and, after you have chosen a suitable tour to send your traffic to you need to build up a flow of ‘niche’ traffic the chances are, if you submit your TGP gallery to an ‘all gay’ TGP that you will receive a substantial amount of unfiltered traffic making your hard work in choosing your sponsors tour worthless.

    So how do you choose a traffic source that is right for you? Simple, you need to experiment, start of with your niche TGP’s, Top Lists, Links Lists etc and see what happens, how much traffic are you being sent from your chosen traffic source and, more importantly, how much of this traffic is actually clicking through to your sponsors tour. Once you can get an idea of what traffic you are being sent from what traffic source you have won more than half of the battle already.

    Record EVERY possible detail about your traffic sources that you can, how much traffic they send a day, how many visits your sponsor gets, how many sales you made, what content you were using etc, etc.

    Once you have a working list of data to use you can start to abuse and filter your traffic like you would have not thought imaginable, if one of your sponsors has a higher payout on Bear traffic, then you instantly know what traffic source gives you traffic for that niche and, you can utilize that information to your benefit.

    The most important thing to remember however when marketing a niche is that you need to have patience, you need to use a process of trial and error and, more importantly, you need to experiment, just because TGP A sends you 100,000 hits of Twink traffic one day, it doesn’t mean you will get the same quantity of niche traffic the next.

    Article written by Le

  • Basic Bookkeeping For Adult Webmasters

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

    Knowing how much you are spending on expenses for your online enterprise each month can be a very powerful tool. Taking out that shoe box at the end of the year and giving it to the Accountant is one way. But a very simple bookkeeping system can provide you with exactly how much you made each month after all expenses. In this article I will provide you with the knowledge to setup a simple system to track your revenues and expenses. Not only will you then know exactly what your Net Income or Loss is each month but at the end of the year you will have a nice neat little package to hand your Accountant. Which will result in lower accounting fees at tax time.

    The first thing you need to do is find a way to file all receipts. Your receipts are the backup for all your transactions. Go to your local office supply store and buy an accordion file labeled with monthly slots. Each time you receive a business related receipt, file in correct month. Remember you need to file all your receipts for your numbers to be accurate. When you receive an email receipt for content or hosting print it out and file it. File sponsor cheque stubs, credit card receipts, ISP bill, etc. At the end of each month take out all your receipts and divide into revenue and expenses. Remember you must have a receipt in order to claim the expense. The receipt should show the detail of the purchase, vendor, amounts and date. Ensure that the expenses are needed or used to generate revenue for your business.

    Now the next step depends on how much detail you would like.
    Revenue-Expenses=Net Income or Loss. For a quick snapshot of the month add up the revenue receipts, staple all receipts together and put the total on the front either adding machine tape or handwritten. Repeat with all your expense receipts. You can put a quick summary of the month in a spreadsheet program. Or for a very small investment you can setup a computerized tracking system. I recommend buying a very inexpensive software such as Quicken. Most major banks, credit cards and even paypal are setup to download transactions to Quicken. You can purchase the Personal Finance version of Quicken for around $70. There are several other inexpensive personal finance software packages that you can purchase that will work as just well. But I personally prefer Quicken. The software you choose will have a list of business accounts already setup. For an adult enterprise you will need to customize the account names. This is very easy and quick to do. Add in accounts for content purchase, hosting, isp, traffic purchase, etc.

    Once a week you will open up your program download your transactions from your bank account, credit card, paypal etc. If you have an expense that you pay cash for you will need to add that transaction in. I am assuming that all your sponsor cheques are being deposited into a bank account or paypal. If you receive a check and cash it, manually add the transaction in. After you have finished entering your transactions for the week ensure that the receipts that you have balance to what you have entered in the software.

    You will be amazed at how simple it is to use a software package such as Quicken to track your revenue and expenses. These software packages come with pre-made report tools. Such as income statement, analysis of expenditures, cash flow projections. You can even setup budget numbers for your business.

    If your business consists of a lot of transactions in a month you might want to consider using a bookkeeping/accounting service. There are many online and locally owned businesses that charge a very low rate for doing small business bookkeeping. Remember you don’t need an Accountant to do general bookkeeping. Many small business owners think they need an Accountant to do the monthly bookkeeping. This could result in unnecessary fees. Depending on the size of your enterprise and your passion for numbers sometimes employing a bookkeeper to do the data entry can be a blessing! Most bookkeeping providers will even provide customized reporting based on your needs.

    Article written by Lorna

  • Converting German Adult Traffic – The Niche Paysites That Work

    Date: 2011.02.21 | Category: Traffic | Response: 0

    With the rapid development of US companies and webmasters looking to attract a larger percentage of international surfers and, wanting to make money off these surfers I thought it would be an idea to share the most prevalent niches for each of the international markets country specific surfers. In this first article we will take a look at the niches which convert best on German oriented surfer traffic.

    German Traffic – Dispelling The Myths.

    First and foremost I think it would be a good idea to let you know that, strangely enough, not all German surfers are looking for kinky, in your face sex, in fact, they pretty much have the same tendencies towards their online porn as US based surfers do, with that in mind, lets take a look at some of the niches that do convert well on German traffic.

    German Traffic – The Niches.

    As with any type of surfer the best way of getting them to convert is to start targeting them from the second they hit your site using Full Page Ads, localized text links and, consoles, over the last 3 (three) months we found that the niches which converted best on German porn surfers were as follows.

    Amateur.

    The German adult surfers we sent to several amateur sites, including live web-cam sites and paysites converted exceptionally well, it would certainly seem from the last three months of stats that German porn surfers like the ‘amateur’ porn angle when it comes to satisfying themselves online.

    Teen.

    As with the US adult surfer, it would appear that the teen niche is truly a global requisite in fact, the teen niche was one of our best converting niches across the globe when we analyzed our international traffic conversion ratios.

    Gay.

    To our surprise the little German traffic we did send to localized German gay sites converted at less than 1:75, bearing in mind that the best converting niche for us was Teen and, that the specific site we sent the teen traffic to converted overall at around 1:138 we will be targeting a lot more German gay traffic in the future.

    Fetish.

    No mystery here, when we started our filtering process we ensured that the various fetish niches were high on our filtering list, after all, everyone seems to know that German porn surfers are looking for the hard to find hardcore scene and, the general fetish niche seemed to work wonderfully.

    Ebony.

    The ebony niche was a vary profitable one for the traffic we filtered to it, in summary, my personal feelings are that it converted so well because ebony men and women in Germany are very few and far between, again the results for this niche would seem to back-up the fact that giving Germans access to something that might be ‘taboo’ in their country converts their traffic well.

    Other Niches.

    In addition to the above niches which converted above and beyond the others we used we did get a few sales to some more micro-niched paysites for example, BBW, Asian, Cumshot and General Hardcore sites had around 3-5 sales per site, per pay period. Given that we did not target this type of traffic as effectively as we could have done and, that the traffic was from TGP’s and Geo Targeted Traffic Brokers we were happy with the results we saw.

    German Adult Traffic – The Results.

    It would seem, given our results from the 3 month test we ran on our traffic that the top converting niches for German adult surfers are the Amateur, Teen and Gay niches. Although, the rest of the niches we filtered out our traffic to did not convert as we would have hoped we still saw a good rate of sales month on month from the previous pay period.

    When all is said and done, as long as you have German porn surfers on your sites you would be wise to start spreading and filtering this traffic to some niches that, perhaps you wouldn’t have ordinarily targeted after all, a sale is more money in your pocket, whether you know the niche or not.

    Article written by Le

  • 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

  • Building A Surfer Trap – Stage 4

    Date: 2011.02.21 | Category: Traffic | Response: 0

    Building A Surfer Trap – Stage 4.

    Here we go with stage 4 in our surfer trap.

    We should now have a pretty basic surfer trap set up with consoles on all of the FPA’s all of the links on all of the FPA’s (Excluding the FPA graphics) should go to either another FPA or, the a POTD Program.

    As mentioned in the last stage we are going to start building up some traffic to our surfer trap even though, we are not finished yet.

    The first place where you can get some good free traffic would be from a toplist counter.

    A good counter that I would recommend would be one of the following:

    Outster http://www.outster.com (A Gay Specific Counter)
    SexTracker http://www.sextracker.com (A General Adult Counter)

    You need to sign up to ONE of the above counters and only ONE.

    Usually a counter will ask you for some details when signing up for them these will usually include:

    Email Address.
    Site Url
    Name

    For the email address, enter a REAL email.
    For Your Name, Enter a name you wish to be known by to the counter owners.

    However, for the URL (The one to SEND traffic to FROM the counter) you should enter the index.html page of your surfer trap (The Multi-Site FPA).

    You will now be given some coding once you complete the counter sign up process. This counter code you now need to place on EVERY page of your surfer trap.

    Place the counter towards the bottom of your FPA’s (Including the Multi-Site FPA) this way, they will load after the rest of the graphics or at least, they should in theory.

    Basically what you are doing by implementing this counter is as follows:

    For each time the counter is displayed or clicked on your site (Depending on the counter you choose) you will earn one credit on the respective counters toplist.

    Each credit you earn on the toplist will move you higher up the list.

    Now, the higher up the list you get, the more visitors to the counter site that you are going to get visiting your surfer trap by clicking your link on the toplist.

    In return, by clicking on your surfer trap link from the toplist, they are ‘registering’ another impression of your counter hence, getting you one more ‘credit’ on the counter toplist hence, moving you higher in the listings.

    See where we are going with this?

    The more clicks you get from the counter to your hub, the higher you will get on the toplist in the process earning you more and more traffic to filter through your surfer trap.

    Adding these counter codes to your FPA’s as they stand at present should take you an hour or so to do so, for now this is where I will leave the traffic generation section of this tutorial.

    Article written by Lee

  • TGP Posting – Automating Submissions Responsibly

    Date: 2011.02.21 | Category: TGP | Response: 0

    TGP Posting – Automating Submissions Responsibly.

    Many an experienced webmaster has endured first hand the labor intensive process of manually building a submitting large quantities of image galleries to TGP’s in an effort to drive traffic, whether it be to their own site or a sponsors, in a bid to generate money. One quickly learns that creating a gallery template is the way to go, whereby one can more quickly and easily swap out the reciprocal links for the TGP’s, which means building customized galleries is more efficient, before going off to submit them to all the relevant TGP’s…

    But this is only the beginning of the story. Manually visiting and posting to all of the TGP’s (there are literally thousands of them) takes a lot of time. Moreover, one must stop and read the rules for each TGP to ensure one is staying within the specified guidelines…

    There is an easier way! Enter the Thumbnail Gallery Submission Wizard (TGSW). It takes much of the labor intensive work out of producing galleries for, and submitting them to, TGP’s. Available in both desktop (PC) and server (Perl based) versions, TGSW has gained rapid and widespread acceptance as the de-facto TGP gallery automation tool. Some of it’s features include:

    Fully Customizable Gallery Templates.

    You can create templates on a niche by niche basis, inserting appropriate sponsor codes and images. For the thumbnails and images they link to, you simply insert some intuitive ‘placeholder tags’, which are interpreted by TGSW at run-time and replaced with the appropriate images. You can be flexible as to how many thumbs/images you would like displayed per gallery to meet your own personal preferences.

    Automated Reciprocal Link Insertion.

    You can also insert placeholder tags for the automatic insertion of reciprocal links. At run-time, TGSW will insert a specified number of reciprocal links in the positions you have inserted those tags in your templates.

    Customizable Filenames.

    You can specify filename options so that when TGSW generates galleries, the filenames it uses are unique to your galleries.

    FTP and ‘Free Host’ Support.

    Do you host your galleries on a free host? Or simply on another of your servers? TGSW can be configured to FTP the completed galleries (along with images and thumbs if necessary) to a server of your choice. There is also a lot of support for ‘free hosts’ that don’t have FTP, but instead used a browser-based upload manager.

    Automatic Gallery Submission.

    TGSW will then automatically submit all of the galleries it generates to all of the appropriate TGP’s. It even sends an email to the TGP’s that require submissions via that method! TGSW can even be configured to place all of your submissions via a proxy server, so you can mask the IP address from where you submit.

    Extensive Reporting.

    There is an optional reporting feature that you can turn on or off. When turned on, TGSW logs all of the submission information at the point of submission, which you can review at your leisure at a later time.

    Regular Updates.

    TGP’s come and go, so TGSW offers an auto-update feature, whereby it will download the latest copy of the database from our site. We usually update at least once per week, sometimes more often, to keep your database current.

    Of course, due to the personalized nature of your galleries, there will be some significant configuration work to do before one can hope to achieve any real results with TGSW. One of the key points is that we do not ship the product with any TGP’s enabled – this way, you are responsible for your own usage of TGSW, and are forced to at least visit the TGP’s in question – we do this in an attempt to remain responsible.

    If you have neither the time nor the inclination to configure the TGSW TGP database yourself, then I highly recommend http://www.tgswupdates.com. They have spent extensive time configuring the current TGSW database for 55 niche categories, and offer fully-configured updates very soon after we release a new auto-update – not only will you be up-to-date, but you will also have all of the available TGP’s enabled, along with all of the reciprocal link images ready to start posting!

    Article written by Robert Purdy.

  • 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.

  • Pop Up Consoles Work – To A Point

    Date: 2011.02.24 | Category: Promotion | Response: 0

    As webmasters we are constantly thinking up new ways to generate sales to our sponsors however, the one medium to generating sales that has been and most likely will remain to be popular is the method of using consoles on our sites. Whether these are exit consoles, blur consoles or, on entry consoles one thing holds true, the more consoles you use, the more you annoy your surfer.

    Marketing Console Numbers.

    Through some research of my own i have noticed that a trend appears when the use of consoles on our sites takes effect this trend is that anything after the first console you use actually cuts your chances of making a sale in half, thus, the maximum amount of pop up consoles we should use on our sites, in my humble opinion should be two or three at the very most.

    Console Sales Figures.

    Okay lets take a look at some average (signups per month divided by days in the month) sales figures based on a three month period (sending roughly 10,000 hits per month).

    Average signups to sponsor (A) = 113
    Sales From Console (1) to sponsor (A) = 11
    Sales From Console (2) to sponsor (A) = 2

    The setup above uses pop up consoles in the following manner, on entering the site you get a Blur Console which hides itself behind the current page you are viewing, once you close the current page you see the blur console, once you close the blur console you see a smaller console, once you close the smaller console, the browser window closes altogether.

    Evaluating The Figures.

    From the above figures we can see an immediate pattern, namely that console (1) makes up roughly 10% of our total sales and also that console (2) makes up roughly 20% of console (1) sales. Putting these figures into practice across further consoles will show you that by utilizing any more than 3 consoles on your sites really does not amount to any significant raise in sales unless you send a higher amount of traffic to your sites in the first instance.

    Console Sales – Recap.

    We have now seen that from a steady flow of traffic over a monthly period we can influence the potency of specific consoles within our exit chains and, by analyzing the figures we get from these consoles we can almost certain figure out firstly, the correct (or comfortable) amount of consoles we use on our sites and secondly, that the more consoles we add to our sites, the lower the potential sales figures will be from each subsequent console.

    I will be the first person to admit that overall pop up consoles are an excellent marketing tool however, the figures above show that the more consoles we use, the less chance we have of making a sale further down the chain, use consoles wisely and they will benefit you however, abuse the use of pop up consoles on your sites and not only will be wasting bandwidth, youll be wasting a surfer too.

    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