Tom's Newbie Booster

Easy Porn Search
A free search engine script

Freeware
Version 2.1



Description

Running your own private search engine can be a highly profitable addition to your online business. We're going to set something up on your webspace similar to Google - that only lists YOUR sites. You can choose to list your free sites, galleries, or even link directly to your sponsors paysites (which is a great way to filter traffic and make sales).

Is Easy Porn Search really FREE?

You bet! This is a very simple program that I have written and it's free to use wherever you wish. I'll be working on the script as time goes by, but it will be fully upgradeable. All you'll need to do is upload one or maybe 2 new files, and that will be it.


Possible Uses

You can send any kind of traffic here or you might even make a search engine for each niche you promote. OR - use this to link to the pic of the day programs - OR your full page ads / surfer traps. You can add this search box to exit consoles, hubs, portals, search engine mini sites, include it with SSI and much more.


Working Example

Check out http://www.hardcore-kickstart.com/ and search for "amateur porn". You should see that the mini search engine finds you a couple of sexy porn sites to check out, related to the amateur niche. If you follow one of these links, you'll end up at one of my sponsors.


Download & Installation


Download the latest version HERE.
Version 2.1


1) Download the zip file.

2) Unzip the files to your hard disk with something like Winzip.

3) Decide which of your websites will be home to the search engine.

4) Open up settings.php in a text editor.

5) ALL that needs changing here are the "user" and "pass" - there's no paths, or anything else like that.

6) Connect to your website with FTP.

7) Create a folder for the search engine to go in, in one of your domains.

8) Upload the 4 files there.

9) Create a folder called "listings".

10) Right click it, and choose CH MOD.

11) Tick ALL of the 9 boxes (chmod 777).

12) Edit index.html to taste - make it look as cool as you like!

Adding The Search Box On Other Pages:
---------------------------------------------------------------

There's no need to install this search box on EVERY one of your domains. You can easily link to it from other pages.

Check out my site: http://www.amateurfeet.net - see the search box, near the base of the page? Test it out - do a search for "porn". (Bear in mind I've not added much to my search database yet).

You should see that you're then taken off to a page that shows the search results.

To do this, here's the code:

<FORM ACTION="http://www.hardcore-kickstart.com/search.php" METHOD="POST">
<TABLE BORDER="1" CELLPADDING="5" CELLSPACING="0" BGCOLOR="#FFDDFD">
<TR>
<TD ALIGN="center"><FONT FACE="Arial Black, Helvetica" SIZE="2">SEARCH FOR:</FONT></TD>
<TD ALIGN="center"><input type="text" size="30" name="phrase"></TD>
<TD ALIGN="center">
<input type="hidden" name=from value=0>
<input type="hidden" name=to value=10>
<input type="submit" value="Search">
</font></TD>
</TR>
</TABLE>
</FORM>


... add that ANYWHERE on your network of pages where you'd like the search box to be shown.

Change http://www.hardcore-kickstart.com/search.php to the address to the search.php file on your domain.

That's about it! Give me a shout if you have problems.


Notes:

Adding Sites To Your Easy Porn Search

• The ADD URL area is password protected.

• The site TITLE also becomes the text in the status bar.

• The keywords text box is OPTIONAL.

• The search engine scans the title and description for possible matches, so if you've got "amateur sex" in there somewhere - you don't need to put "amateur sex" in the keywords box.

• Use goto to dig out some phrases to add into the 'keywords' box. Remember - you only need ONE occurrence of a word to have that entry returned under various searches.

Example: Site title (as added on the ADD URL page) is: "amateur porn".

The site will be returned under ANY phrase that they search for with "amateur" in it. "amateur fucking", "amateur screwing" - without you needing to specify "screwing" as one of your phrases.

• The database is just a text file. It's stored in listings/, and is called list.txt. You can open this to change it, run a spell checker, or anything else.



A Question About Commas In The Database Keywords Section

"The instructions mention separating keywords with a comma. Should a space follow each comma?"

My instructions are actually a little misleading. Let me explain how the SE works - which should answer the question as well as help you alter the results that come up effectively.

Here's one of the listings in my search engine database:

Title: Anal Sex V

Description: Hot anal sluts show you how deep they can take it. Special anal sex movies and pictures.

Keywords: anal sex,free anal sex,free anal sex picture,anal sex pic,anal,sex anal, rimming, rimmed, rim

Let's say that the surfer comes and searches for "anal sex".

The search engine script's first job is to break the phrase down into two separate words. From this phrase, it would get:

anal

and...

sex

It then takes the first word, in this case "anal", and compares that with each of the entries in the database. It counts the number of times "anal" appears in the title, the description, and in the keywords.

It should count ALL "anal" words in:

Anal Sex V|Hot anal sluts show you how deep they can take it. Special anal sex movies and pictures.|anal sex,free anal sex,free anal sex picture,anal sex pic,anal,sex anal, rimming, rimmed, rim

This is a score of 8 for "anal". It then goes and does the same for "sex".

Remember that for each word in the phrase, it counts the occurrences in the database entry as a whole - title, description AND keywords.

I mentioned that my instructions were misleading. This is because the search engine does not really care about the commas, spaces, or any other punctuation. It just counts the number of times the word matches up.

So in the case of the keywords tag on this database entry:

anal sex,free anal sex,free anal sex picture,anal sex pic,anal,sex anal, rimming, rimmed, rim

... it could have looked like this:

anal sex free anal sex free anal sex picture anal sex pic anal sex anal rimming rimmed rim

... and we would have gotten the EXACT same score for "anal sex".

If anything - the commas are to make it more readable to us humans.

As for the three word phrases - that's fine too. If the surfer searches for a phrase which is NOT specifically entered by you in the keywords section - that is not a problem. Let's run through an example of that briefly:

"kinky anal fucking"

"fucking" nor "kinky" are found anywhere in:

"Anal Sex V|Hot anal sluts show you how deep they can take it. Special anal sex movies and pictures.|anal sex,free anal sex,free anal sex picture,anal sex pic,anal,sex anal, rimming, rimmed, rim"

But that's not a problem. Because the word "anal" gets a score of 8, the search engine would see this site as being very important to surfers looking for ANY phrase "anal" in it.

By going to overture and adding in the main phrases for under something like "anal" - you'll automatically 'load' the database entry with the "anal" word. It's also important to test the search engine and see if various "anal" phrases are returning relevant sites. If they aren't - go into the database and add say 5 x "anal" to the end of each anal entry (ooer missus!).

I spent a considerable amount of time in the beginning watching the log file - and typing in what the surfers had been searching for. I asked myself: "did that surfer find what they were looking for?" If not, I edited the database entries accordingly. It doesn't take too long to do.

Of course - if this was a 'real' search engine - where the public were adding in their sites - then that would not be acceptable. We'd have to work up a better algorithm for Easy Porn Search which didn't rely on editing the database to make certain sites rank better. It would have to do that itself - something I'm sure gives Google and the other SE's nightmares on a regular basis. We've got the luxury of being able to manipulate how the results appear.



Make your results page work like Google's

Let's say you want to be able to link from one of your pages directly to some results in your search engine. I've posted before how this is possible, but here's an even easier way to do it.

Where you paste the search box, look for this line of code.

<FORM ACTION="search.php" METHOD="POST">

And try changing it to:

<FORM ACTION="search.php">

This removes the 'neat' url which you will get after searching and gives you the FULL URL to the search. This won't make much sense until we've looked at the following example.

1) Do a search for foot fetish on this page:

http://www.hardcore-kickstart.com/

This page has the METHOD="POST" part in it's code. You'll be taken to this page:

http://www.hardcore-kickstart.com/search.php

Which has the results for foot fetish.

2) Now go to this page:

http://www.hardcore-kickstart.com/example.html

And do a search for the same thing - foot fetish. This page has had the METHOD="POST" part removed.

You'll be taken to this page:

http://www.hardcore-kickstart.com/search.php?phrase=foot+fetish&from=0&to=10

Which is more similar to the kind of URL you get when you do a search on Google.

This is more useful to you. You can link to this URL from your other sites as follows:

<a href="http://www://www.hardcore-kickstart.com/search.php?phrase=foot+fetish&from=0&to=10>Foot fetish</A>

Which will look like this:

Foot fetish

And take the surfer directly to your set of foot fetish results.


Optional Add-on:

Thank you do Dandy11 for this amazing little extra! He writes:

"Today, I wanted to update the sites in my search engine which is based on Tom's Easy Porn Search.

Since I am a lazy bastard I soon got fed up with entering all the stuff by hand so I tweaked the add-url.php a little so that you only have to enter the URLs by hand, press 'Add' and the script than fetches title, description, and keywords automatically and writes it to list.txt.

Here's the hacked version of add-url.php if somebody wants to use it. WARNING: I *think* I kept all the variables and settings of the original script so it should work smoothly with the rest of the search script but I'm not quite sure. You might better check it (or backup the old version) before using this.

[ Download Here ]

PS: I just updated my list with 900 sponsor-urls in less than 10 minutes"


Version Updates:

Version 1.1

The only file that has been changed is the search.php file.

The problem with the first script, I found, was that it was a little too 'strict'. What I mean is that if you searched for something like "free sex pics" - and one of the sites in the search engine database had keywords such as "free porn, sex pictures, sexy pics" - the script wouldn't recognize that site as being 'relevant' to the search that the surfer had made.

In the newer version, the script does things a little differently. Instead of hunting for an exact match for "some phrase", it takes each word "some" and "phrase" and compares them separately to each site listed in the site database. If a word can be found in that database entry, the entry is given a score. If you searched for a 3-word-phrase, and all three words are found in one site's database entry, then that site would get a score of '3'. The highest scoring pages are ranked towards the top of the listings.

---------------------------------------------------------------

Version 1.2

- Now displays results over multiple pages.

- Improved search algorithm. Should handle larger numbers of sites better.

- Added keyword logging. Keywords now appear in /listings/log.txt and can be downloaded or viewed.

- Relevancy score is now displayed as a % under the results.

---------------------------------------------------------------

Version 1.3

- Edit database page added.

---------------------------------------------------------------

Version 1.4

- Default page now shown if no results can be found.

---------------------------------------------------------------

Version 1.5

- Fixed error with quotation marks etc...

---------------------------------------------------------------

Version 1.6

- Fixed problem with "amature" sites being found under a search for "mature".

---------------------------------------------------------------

Version 1.7

- Fixed a problem with apostrophes, where a search for:

Karas Playground

For example, would not find a site with the title:

Kara's Playground

---------------------------------------------------------------

Version 1.8

- Fixed a problem with apostrophes, where any link with an apostrophe in the title would cause a problem with the mouseover javascript.

Upgrading to 1.8 from an older version:

Download the new zip file and upload search.php over the old one on your webspace. :-)

---------------------------------------------------------------

Version 1.9

- Incorporated a new idea which Ponfar came up with on TNB. If a search is made, but no matches were found relevant to that search, the phrase the surfer entered is added to /listings/error.txt. You can view this file from the admin / add url page of your script. Or by downloading it.

If you've never installed Easy Porn Search before, this is already installed if you follow the above steps. Upgrading from an older version, do this:

1) Back-up the files in listings/ just in case.

2) Download and unzip the .zip file.

3) Upload all the .php files over the older ones.

---------------------------------------------------------------

Version 2.0

- Totally revamped the search routine to make it much more efficient. It will use less server resources and also run faster. This becomes more important as more entries are added to the database, and the bigger your search engine gets.

If you have not installed Easy Porn Search before, then this does not apply to you. By following the steps in the instructions, you will already get the latest version on your webspace.

Instructions for upgrading from an older version.

1) *IMPORTANT* Back-up all of the php files and the files in /listings/ If anything goes wrong - you won't have lost anything.

2) Download and unzip the .zip file above.

3) Upload search.php over the older version.

---------------------------------------------------------------

Version 2.1

- Fixed a bug in the ranking algorithm.




Enter Tom's Newbie Booster here
More tips, scripts and help...