-
JavaScript – Redirecting Foreign Surfers
At some point or another we are no doubt going to have the need to redirect some or all of our surfers based on the language they speak, this snippet of JavaScript when placed on your page will enable you to do just that without the need for .php or other more complex scripting.
Here is the coding that you need to place between your <head> and </head> tags:
<SCRIPT LANGUAGE=”JavaScript1.2″>
<!– Begin
if (navigator.appName == ‘Netscape’)
var language = navigator.language;
else
var language = navigator.browserLanguage;if (language.indexOf(‘en’) > -1) document.location.href = ‘english.shtml';
else if (language.indexOf(‘nl’) > -1) document.location.href = ‘dutch.shtml';
else if (language.indexOf(‘fr’) > -1) document.location.href = ‘french.shtml';
else if (language.indexOf(‘de’) > -1) document.location.href = ‘german.shtml';
else if (language.indexOf(‘ja’) > -1) document.location.href = ‘japanese.shtml';
else if (language.indexOf(‘it’) > -1) document.location.href = ‘italian.shtml';
else if (language.indexOf(‘pt’) > -1) document.location.href = ‘portuguese.shtml';
else if (language.indexOf(‘es’) > -1) document.location.href = ‘Spanish.shtml';
else if (language.indexOf(‘sv’) > -1) document.location.href = ‘swedish.shtml';
else if (language.indexOf(‘zh’) > -1) document.location.href = ‘chinese.shtml';
else
document.location.href = ‘english.shtml';
// End –>
</script>To add additional language redirects to this JavaScript all you need to do is duplicate the:
else if (language.indexOf(‘zh’) > -1) document.location.href = ‘chinese.shtml';
Section of the coding changing the (‘zh’) language code to that of the language you wish to redirect.
Article written by Lee
-
Marketing Anime Sites
Anime and the various styles associated with it, such as Hentai, Manga, Comics and Toons is one of the hottest niches on the net. It is presently experiencing a huge growth, with many of the larger companies launching sites dedicated to the genre.
When someone unfamiliar with Adult Anime and Hentai hears the word Anime, they tend to think in terms of Sailor Moon, Dragon Ball Z, Pokemon or Speed Racer (if they are of my generation.) Make no mistake; what we are discussing today is NOT for children. Adult Anime and Hentai are as different from the example above as Disney Movies are from HomeGrown Video.
Targeting and marketing to the anime surfer is not that much different from any other niche, with a few notable exceptions. Taking the time to learn a little about the subject matter will make a difference in your profit margin. Even though you are still selling “sex”, or more accurately “hentai” (more on that later), with anime the “sell” is more in the fantasy aspects than reality. Anime characters can perform any way and do anything that the surfer wants, even the impossible. So you must use more creative text links and graphics to create the right feel for the surfer and lure him in, and not treat the art as if it were just mere cartoons.
True anime fans do not consider anime to be cartoons. You will get fans that like it for its sexual aspects and yet others who have a love of the art form itself. If you make light of the art or fail to create the fantasy for them, you may lose surfers. Anime is truly an art form; each picture is unique in its beauty and in its style. Each artist will render a vision of his or her own, and the variety is as wide and varied as one’s imagination. This is the appeal of anime, that and the fact that in Anime a surfer can have a character created to fulfill his fantasy, no matter how outrageous.
Bear in mind while designing, targeting and eventually linking your anime site, that this particular genre covers all age groups and appeals almost equally to woman as to men. It is also a niche that will attract surfers from many countries. It is extremely popular with your North American surfers, but a great deal of the anime surfers come from Australia, Europe and Japan, for some reason these country’s surfers love their anime! So make sure to expand the scope of the Search Engines you normally submit to, if you are not already submitting to Japanese, Australian, and other foreign SE’s. A great place to find a list of these SE’s is http://www.beaucoup.com/1geoasia.html. Don’t forget to look at alternative link lists as well, though many of the “big” list have anime and toon sections, you will definitely want to get listed on lists that are targeted to the niche, some examples would be:
http://www.toonplaces.com
http://www.hentaikitty.com
http://www.hentaiseeker.comTo help you understand a bit more about the Anime niche I have listed some descriptions of common anime terms:
Anime: In the US and many other western nations, it is limited to meaning Japanese animation (AKA Japanimation, although a lot of people don’t like that term). Characteristic features would be large eyes, funky hair colors, and often, er, accentuated physiology. In Japan, anime means animation in general, Warner Brothers, Disney as well as Macross and El Hazard.
The modern-day anime style is an adaptation of Disney style (introduced to the Japanese after WWII, by the American occupation), most notably the large eyes. However, unlike animation in America, animation or “anime” in Japan is not just for kids and the subject matter can range from deep, action packed science fiction stories to slapstick humor to even soap-opera-ish romance. In short, the only real difference between anime and other television shows and movies is that they are animated. While it’s true that in recent years there have been several American animated shows that have been aimed at a broader audience than your Saturday morning cartoon crowd, such as Titan AE, and the soon to be released Final Fantasy, the Japanese have actually been doing this for quite some time.
Japanese law formerly banned the depiction of genitals or pubic hair in art; as a result, most of the true Japanese images you’ll see distributed in Hentai Anime circles have either been censored by the Japanese government prior to distribution or auto censored by the artists themselves in compliance with the law. Underground artists have been known to produce full, all out, no holds barred uncensored works and of course not all Hentai Anime comes from Japan. Artists who were not Japanese citizens were not bound by Japanese law so uncensored Hentai Anime usually came from those countries.. The law has since been repealed. (See the book Dreamland Japan by Frederick Schott for more information on this law.)
Although the law has changed, people’s attitudes are slow to change with it and many Japanese artists continue the practice of censoring or avoiding depictions of the genitals or pubic hair. However, now that it has become legal, such depictions are sure to become more common. Sometimes, net artists will take it upon themselves to uncensor mosaic images, however, it isn’t easy to find someone who does this arduous job well, so even these are uncommon.
Hentai: The classical meaning is “metamorphosis, transformation.” It later came to mean “abnormality,” and in modern colloquial Japanese is used almost exclusively to mean “pervert” or “perversion.” When a woman insults a man in anime, she generally uses on of three terms: hentai, sukebe, and ecchi. Sukebe implies “oversexed” rather than “deviant.” Ecchi can be quite mild in some contexts, comparable to “lewd” or “Fresh!” These three terms are often used interchangeably, especially when someone is stringing together insults. In adult anime, hentai normally would lend itself to what we consider hardcore images, such as the very popular bondage anime images. In the Adult market Anime has come to signify more softcore images and Hentai hardcore.
Manga: This is what comics are called in Japan. The artist Hokusai coined the word manga in 1815, usually translated to mean “irresponsible pictures.” Traditionally drawn in black and white, sometimes with blue inks mixed in, Manga can be action comics, love stories or even hardcore fantasy.
Doujinshi: Amateur/underground Manga that often parody existing Anime or Manga. Usually done in small print runs and often Hentai in nature. They are frequently “proving grounds” for aspiring “professional” Manga artists.
Yaoi: Male homosexual relationships, or Anime or Manga stories about relationships between “beautiful boys” (bishounen). Comes from “YA-ma-nashi O-chi-nashi I-mi-nashi” (No climax, no punchline, no meaning)
Shoujo: Shoujo anime is anime originally aimed at young girls. “Shoujo” literally means “little girl”. Shoujo anime includes such series as Sailor Moon and Magic Knights Rayearth. Also referred to as Bishoujo, “Beautiful Girl”
Shounen: Shounen anime is anime originally aimed at young boys. “Shounen” literally means “Little Boy”. Shounen anime includes such series as Pokemon, Speed Racer and DragonBall Z. Also referred to as Bishonen, “Beautiful Boy”.
It is important that you educate yourself on the difference in definitions for the various styles of art. Using the wrong phrases could attract children to your site and responsible use of terms is extremely important.
As with any Website, knowing your subject matter and the surfers that view it is essential. This niche is growing more popular everyday. Many sponsors are realizing it’s potential and adding it to their sites as well as building sites specifically for this traffic. There are TGP’s and link lists dedicated solely to these sites, and legal content is available. The Anime/Cartoon surfer is an extremely loyal breed; once they discover quality sources they keep coming back. I hope this sheds some light on this highly unique niche and that the information will help webmasters market their sites to higher profits.
Article written by Bestat
-
Do You Keep The Surfers Attention?
A new discovery says that people are born to respond to information a certain way. It also indicates that when we use our in-born or natural style to process information, we relax and feel good. The same research also indicates that 92% of thousands tested have changed that style to one they think works better. The change causes stress. So 92% of the viewers of your site are stressed. Because people often visit your site and click off almost instantly, you face the problem of getting their attention and keeping it long enough to persuade them to buy.
The fact is that people today have shortened attention spans. If you don’t get them in the first few seconds, you lose them! You can either build a terrific web site — or just end up with “click thrus.” Many site owners think it enhances a site to add animation or cool sounds. But the answer is to make your site appeal to the individual. Great sites of the future will know how to “individualize” their message.
Even though we all have to learn how to use a computer, high tech has not made people think the same way. You are not battling high technology; you are fighting to keep the attention of three (3) basic in-born styles. This may sound overwhelming, but it is really a simple matter of anticipating a viewer’s response before he or she gets to your site. Anticipation of responses makes or breaks your site.
So how do you anticipate how a viewer responds before it happens? It is really simple. You start by learning how you personally respond to information. Why is this the beginning place? It is because you and the way you react when receiving or giving out information influences everything about your site. Next you learn about the other ways people respond to information. It is easy to begin anticipating reactions as you get a whole new perspective on how people are born to process information. Things start to make sense to you and people are no longer such a mystery.
These conclusions are drawn after over 20 years of research. The research verifies that it is possible to appeal to most views rather than 2 – 4 in a thousand. So, when someone tells you how to write killer copy, or make your site jazzy with new technology, you are hearing from only one of the basic in-born styles. Take everything with a grain of salt until you evaluate it according to the simple guide that lets you appeal to ALL styles rather than only one.
Article written by Lee
-
Building Your Brand – Business Basics
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.
-
Domain Name Transfer Agreement
Domain Name Transfer Agreement
For most people, buying and selling domain names is a fundamental income provider for their business model, as such, you should ensure that when buying or selling domain names you should have a legal contract to assist in the transfer of sale.Domain Name Transfer Agreement.
This Agreement is made on the Day of 2001 between:
(1) [Your name and address goes here]. (hereafter referred to as the assignor) and;
(2) [The buyers name and address goes here]. (hereafter referred to as the assignee).
RECITALS:
(a) The parties have been in discussion concerning the transfer to the assignee of the registration of the designations ‘[full domain name goes here]’ and ‘[further domain name goes here]’ (whether in lower or upper case) hereafter referred to as (the “domain names”) as website addresses on the internet.
(b) The parties wish to reach a mutually acceptable arrangement in relation to such discussions.
Now therefore, in consideration of the parties’ mutual covenants and undertaking, the adequacy and sufficiency of which are acknowledged, the parties agree as follows:
1. The assignor hereby agrees to assign, and/or cause to be assigned, to the assignee the domain names. The assignor shall do such things and execute such documents as reasonably requested by the assignee at the assignees expense to perfect such assignment and shall comply with the standard requirements of [insert domain name registrar here] as in force at the time of this agreement.
2. In consideration of the parties mutual obligations under this agreement the assignee agrees to pay the assignor the sum of $$ [Amount in words goes here] [currency goes here, Dollars, Sterling Etc] immediately following notification that all of the domain names within this agreement have been recorded at the relevant registries as in the ownership of the assignee thereby evidencing the transfer of the domain names to the assignee.
3. The assignor, whether through himself, any alias and/or his servants or agents shall immediately cease and desist from and shall not resume using the domain names or any other designation whether a trade or service mark, trading name or domain name that contains words colourably similar to that of the assignee.
4. The assignor further agrees that he shall not, directly or indirectly, individually, through any alias, or in conjunction with any person, firm or corporation, apply to register any trade mark, service mark and/or any other word or words colourably similar to any such trade names or marks.
5. The assignor further agrees that he shall not, directly or indirectly, individually, through any alias, or in conjunction with any person, firm or corporation, apply to register any trade mark, service mark and/or any other word or words colourably similar to any such trade names or marks, cause enable or assist any third party to do the same.
6. The assignor represents and warrants that it has not, directly or indirectly, through any alias or in association with any other person or entity, filed, reserved, received or granted a transfer of license of any domain name that contains the trade marks or any word or words confusingly similar thereto in any country or federal, local government, region or state authority, or with [insert domain name registrar here], or any other internet registration agency. The assignor covenants that it will not, whether through himself, any alias, through his servants and/or agents undertake any such registration, filing, or reservation or cause or assist any such registration, filing, or reservation to be made, by itself, or in connection with any other person or entity.
7. The assignor represents and warrants to the best of its actual knowledge, as of the date of its execution of this agreement, that:
(a) The assignee has the right to dispose of the domain names;
(b) The assignor has not received notice of any existing or threatened claims or proceedings by any third party other than the assignee relating to the assignors use of the domain names;
(c) The assignor has not received notice that the domain names are subject to any outstanding order, decree, judgment, stipulation, written restriction, undertaking or agreement that would prevent the assignor complying with this agreement;
(d) The domain names are not subject to any lien, charge, security interest, mortgage, third party interest or other encumbrances;
(e) The assignor has not granted any licenses to or authorized any third parties (including any affiliate of the assignee) to use the domain names or any other confusingly similar domain names; and
(f) The assignor, does not own directly or indirectly through any alias, third party or likewise any other domain name containing words similar to that of the assignees.
8. Each of the parties hereto warrants and represents that the person (s) executing this agreement on its behalf has full authority to execute this agreement and bind it as a party to this agreement.
9. The terms and conditions of this agreement shall be maintained in confidence. No party may disclose such terms and conditions to any third parties other than to the attorneys, accountants, officers or members of the boar of directors of the assignee or assignor or otherwise without the express written permission of the other party.
10. This agreement shall be binding upon and inure to the benefit of the parties hereto and their respective heirs, clients, licensees, representative, successors, predecessors, and assigns. In this agreement words denoting persons shall include bodies corporate and unincorporated associations of persons and vice versa.
11.This agreement incorporated herein constitutes the entire agreement of the parties. It may be modified only in writing signed by both parties. This agreement may be executed in one or more counterparts, all of which shall constitute a binding agreement when one or more counterparts have been signed by each of the parties.
12. This agreement shall be construed in accordance with the laws of the [Your country goes here, United Kingdom, United States, Etc], and the parties hereto submit to the non-exclusive jurisdiction of the courts of the [Your country goes here, United Kingdom, United States, Etc].
13. Both parties acknowledge that if either party violates all or part of this agreement the other party may seek legal remedies to restrain any further violation of this agreement and in such a case, the violating party will be wholly liable for the cost of any such order.
Signed by: ……………………………….. Date: ………………………..
For and on Behalf of [Your company / legal name].
Signed by: ……………………………….. Date: ………………………..
For and on Behalf of [Buyers company / Legal name].
Article written by Lee
-
The Curse Of The Broken Image
At one time or another we have all done it, uploaded a new site only to find out that when we view the page in our browser one of the images are broken because we either didn’t link it properly or the filename wasn’t named correctly on our server.
We may think that this is a bad thing however, recent experimentation on my part has found quite the opposite.
We all search for new ways of getting the surfer to visit our sponsors in order to have them buy a membership and earn us a nice little slice of $$$ in the process but, what methods could we use that quite simply are overlooked?
One such method is that of utilizing broken images, lets be honest here, no-one wants broken image son their site, it makes the site look unprofessional but, lets think about this, on a page full of banners and graphics all nested together neatly on an FPA (Full Page Ad) what’s more likely to grab the surfers attention, a completely loaded heavy bandwidth graphic or a single solitary broken image placed in a such a spot the surfer actually notices it?
Makes you think doesn’t it. Our recent testing of this method has actually shown that our CTR (Click Through Ratio) rose slightly on a couple of sponsors we used this method on all of the sites in question had nice looking text and banners with corresponding thumbnails leading tot he full size image but, upon deliberately leaving an image off the server thus resulting in the ‘appearance’ of an erroneous broken graphic the spot where that image should have been was were a great deal of our click throughs came from.
I am not saying you should immediately go and delete all graphics from you pages but, a single, well placed broken image on a free site can work wonders in getting traffic off your site and to your sponsors pay site tour which ultimately, is what we want to happen at the EARLIEST possible time.
Article written by Lee
-
Adult Exit Traffic
How Do You Use It?
I honestly do not think there is a webmaster working in the adult industry to date who has not seen a warning page for a free or avs site with both an enter and an exit link, the enter link goes to the main body of the site in question whilst the exit link goes to some other link, normally disney.com or google.com or some other url where the webmaster in question is quite literally throwing their traffic and money away.
Instead of wasting your exit link traffic to a site that doesn’t make you a cent why not utilize this traffic to feed additional revenue streams, for example, most of the larger adult sponsors now have penis pill programs or dating sites, you could include your affiliate id in the exit link and send your traffic there, after all, the surfer you have on your site isn’t looking for porn so, offer them an alternative which, can still add to your bank balance.
So What Are The Alternatives?
The alternative types of sponsors you should be using on your exit links can vary widely however, the best type of site to send them to would be a sponsor offering products and services such as penis enlargement programs, online pharmacies, history eraser type products or, even a link to a site like amazon.com if the program you use allows for that.Basically you should try to maximize all the traffic you get to your site whether that be by using exit consoles or links, make sure that for each and every surfer you send to the front page (warning) of your site that if they decide to back out or click on a link to leave that you send them somewhere to give them the option of spending money and ultimately earning you revenue.
Article written by Lee.
-
Building A Surfer Trap – Stage 5
So we hit stage 5 in this surfer trap tutorial.
It was brought to my attention this morning that we never added any ALT tags to our single FPA link so, in a change to the planned tutorial I am going to touch on this stage as, once the search engines get to our surfer traps this is going to be a crucial aspect on how highly we get ranked.
So what’s next?
Ok, now what you have to do is go back to manually editing the FPA’s (All of them!)
What you need to do is this…
Take the Multi-Site FPA first then, on ALL of the links that lead to the single site FPA’s you need to add the ALT tag. Again, in the same way as we did originally however, instead of using this tag on the images we will use this on the actual TEXT of the link so, for example the link which may be:
‘Voyeur Porn’ leading to the FPA you have for the Voyeur niche in the HTML coding will already look like this:
<a href=”mydomain.com”>Voyeur Porn</a>
Will get turned into:
<a href=”mydomain.com” ALT=”More Niche Related Keywords”>Voyeur Porn</a>
The reason we are going back over these links now and not earlier on is because you should hopefully have started to get a small amount of traffic from your counter impressions. These counters are virtually ALWAYS being crawled by the search engines due to the amount of people linking to them so, by optimizing our site at this stage, it makes it less work in getting into the search engines.
One other thing that we can now start to do (as we did a couple of stages back) is to create some more HTML pages with some tables on them, however, these will be HTML pages on their own with no images on them. Again however, you should make them 4 columns across and two rows high.
What you want to add into these tables are NICHE links so for example, taking the TEEN niche we would make eight links like:
Teen Sex
College Girls
Erotic Teens
Teen Porn
Etc
Etc
Etc
Etc…You should do this for each of the MAIN niches so you would have a table for Teen, Gay, Mature, Asian, Ebony, Fetish and one for General and again, these should link to the NICHE FPA’s that you already have created.
These tables will be used for another console on our surfer trap however, before we implement this console we are going to have some fun with them.
Article written by Lee
-
Using .htaccess Effectively
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 supportedUsing 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.htmlRedirect 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/$1This 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
-
Using SSI For Auto Updates
We all realize the benefits of being able to save time when building sites so, I got into thinking, how can I make my sites look as if they are continually updated without the need to go in and update them manually? Enter the world of SSI.
SSI is actually a nifty little tool, not only can you include files from a central location but, you can include them at specific times of the day, days of the week or even months of the year, very handy indeed if you are building any type of site that needs updating periodically.
Once the main burst of work has been completed you can pretty much use the same files over and over again to help you out.
So onto the auto updating SSI, the following SSI coding will enable you to update a page or pages based on which day of the month it is. It will check the day the page has been accessed and display the relevant information again, this is a handy thing to have should your sponsor be running a promotion over several days, all you need to do is update a selection of SSI files and all of your sites are updated instantly.
<!–#config timefmt=”%d”–>
<!–#include virtual=”/yourdirectory/$DATE_LOCAL.txt”–>What you need to do is create 31 text files named 01.txt right the way through to 31.txt take the SSI call above and edit the location of the SSI files on your server, you may like to have a central folder named /SSI/ for this purpose so the location would be changed to /domain.com/SSI/$DATE_LOCAL.txt
I the 31 files you created you could have a table ad with eight of your sponsors links, an article in each one or even just a simple text link, anything that you may want to update can be included in these files.
As I mentioned above you can base the time, date and even month of rotation to whatever you like to alter how the files are rotated and ultimately viewed on the web you should change the %d in the timefmt field to one of the following:
%d : Day of the month requires 31 files named 01.txt to 31.txt
%w : Day of the week requires 7 files named 0.txt to 6.txt
%j : Day of the year requires 365 files named 001.txt to 365.txt
%u : The week of the year requires 52 files named 00.txt to 53.txt
%m : The month of the year requires 12 files named 01.txt to 12.txt
%H : Hour of the day requires 24 files named 00.txt to 23.txt
%M : Minute of the hour requires 60 files named 00.txt to 59.txtAs you can see from the above there really are no limitations to the uses of updating using SSI and, apart fro the relative ease of use and the time saved using them should one sponsor not be converting for you all you need to do to swap sponsors is alter your central set of SSI files and you have instantly changed sponsors over all of your sites.
Article written by Lee
Premium Sponsors
Categories
- 2257
- Billing Solutions
- Blogging
- Branding
- Content
- Domain Names
- Employment
- Forms & Contracts
- General
- Hosting
- Link Lists
- Opt-in Mail
- Paid Traffic
- Pic Posts
- Promotion
- Scripts
- Search Engine Optimization
- Sponsors
- TGP
- Traffic
- Tutorials
- Viral Marketing
- WebDesign
- Writing