Home > Features > 404 & Hotlink Traffic • Bookmark   • Newsletters   • Register Search Options

FEATURE

404 & Hotlink Traffic

404 & Hotlink Traffic

April 14, 2003
Text size: 
Get XBIZ News
XBIZ Research
Will virtual reality boost the paysite market?
Yes, it will soon
  39.66%
Yes, but in a few years
  36.87%
No
  23.46%
Out of 179 votes. Results based on votes submitted by members of XBIZ.net social network.

" An .htaccess file placed in the webroot will cover all requests to the server. However, if it is placed in a sub directory, then all requests to that directory and below will be covered – anything above will not... "

I really can't overstress the importance of having a .htaccess file which controls your 404 traffic on your gallery domains. To not have this is throwing away money. If you are struggling to pay hosting bills, or looking for some extra cash every month, then it's time to start using your traffic to it's maximum potential.

404 traffic arises from surfers who (for some reason or another) attempt to access a nonexistent document at your domain. By placing a small file named ".htaccess" on your webserver, you can specify where to route nonexistent document or unauthorized access requests. You will need FTP and telnet/ssh access with your host to do this.

Getting Started:
To get started, you will first have to decide where to send your traffic. I have found that a convenient route is to deal with an Exit/404 traffic broker such as Exitdollar (Signup Link). They will provide you with a URL to send your traffic, and for every thousand unique requests you route to that URL, you get paid $3. A simple, hands off approach that seems to appeals to most webmasters. Other methods coudl be to construct a full page advertisement, or redirect traffic to a domain of your own to punch up it's traffic.

Now that you have chosen a destination for your traffic, open up your favorite text editor, and enter (As an example for choosing Exitdollar):

Options +FollowSymlinks

ErrorDocument 404 http://www.exitdollar.com/track.php?id=XXX
ErrorDocument 403 http://www.exitdollar.com/track.php?id=XXX
ErrorDocument 500 http://www.exitdollar.com/track.php?id=XXX

Where XXX is your unique Exitdollar ID. Save this file as ".htaccess" (without the quotes). You now need to upload this file to your webhost, placing the file at the top of the directory tree where you want the traffic directed. An .htaccess file placed in the webroot will cover all requests to the server. However, if it is placed in a sub directory, then all requests to that subdirectory and below will be covered (anything above will not (i.e. webroot)).

To begin, I would reccomend placing the file in the webroot of your server (After all you don't want to miss out on some traffic). Make sure the file is world-readable by issuing a "chmod o+r .htaccess" from your telnet/ssh command line. As a reference, a HTTP 404 error is "Not Found", 403 is "Forbidden", and 500 is "Internal Server Error".

Testing it out:
Now, try requesting a file in your webbrowser that doesn't exist on your webserver. If you get redirected to your chosen destination, then you are correctly set up.

Part II - Hotlinking:
Image hotlinkers not only cost you bandwidth, but they can also affect your traffic enough to change your stats significantly, something everyone should be concerned with.

Although many anti-hotlinking scripts are available, you can also use .htaccess as a simple free solution. If you open up your text editor again, we can add to the original file to produce:

Options +FollowSymlinks

ErrorDocument 404 http://www.exitdollar.com/track.php?id=XXX
ErrorDocument 403 http://www.exitdollar.com/track.php?id=XXX
ErrorDocument 500 http://www.exitdollar.com/track.php?id=XXX

RewriteEngine on RewriteCond %{HTTP_REFERER} !^http(s)?://([a-z0-9-]+.)*yourdomain.com(:80)?(/.*)? [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.yourdomain.com/consolehell.html [L,R]

This will route all requests for your images to the "consolehell.html" page, except those that have come from *yourdomain.com. To test this setup, you can simply go to Hotlinking.com and enter the URL to one of your images. It should come up as a broken image on the SECOND page.

Depending on the amount of galleries submitted per domain, you can generate quite a bit of traffic to your chosen destination URL simply by making the changes suggested above. As well, you can be mildly protected against hotlinkers. I have always found that 404 / hotlink traffic alone was enough to generate income to pay for my bandwidth each month, and that is nothing to shake a stick at. Good luck!


LEGAL PERSPECTIVES

Porn ‘Public Health Crisis’ Is False, Dangerous

We are witnessing the early stages of a moral panic, the likes of which we have not seen since the Reagan Administration. As I write this, there are 27 states in the process of passing mandatory porn... More »

The Skinny on the New DMCA Requirement

The requirements under the Digital Millennium Copyright Act (DMCA) have changed, but the sky is not falling. We have, even as a law firm, been hit with an unbelievable amount of spam sent out by law firms... More »

2017 Outlook: Legal Matters Around the Corner

The adult entertainment business’ legal community recently weighed in the top issues that companies and the industry, as a whole, should be concerned about. XBIZ asked industry attorneys to discuss... More »
XBIZ NEWSLETTERS
Stay informed of the latest industry developments. Get XBIZ newsletters delivered to your inbox. Subscribe today!
Enter email address:

* To manage existing subscriptions click here.






POPULAR PRODUCTS & SERVICES
Submit your press release to
multiple news outlets with 1 click.
Subscribe to RSS news feeds or
add free content to your website.
Access XBIZ news and articles
with your mobile device.
Access the latest issues of the industry's leading trade publications in digital form. View online or download for offline viewing.

UPCOMING EVENTS

XBIZ.net Paysite Meetup

May 04 - May 04
Prague, Czech Republic

Eurowebtainment 2017

May 17 - May 20
Majorca, Spain

XBIZ Retreat

May 30 - Jun 03
Miami, Florida

XBIZ Miami 2017

May 30 - Jun 02
Miami, Florida
Everyday thousands of business professionals browse XBIZ's industry directory for quality products and services. Not listed yet? Your company could be losing potential new business. Submit your company today!
Use XBIZ RSS feeds to stay informed of the latest industry developments or as a content syndication tool for your website!