Jump to content

3 quick questions(php idea related)(1 about htaccess)


Ninjakreborn

Recommended Posts

I have 3 quick questions, 2 of them are related to php ideas.
1.  What is the real word for what I call universal pages.  They are 1 master page, that a lot of links go to.  I used it 3 times to far, and it seems to be my favorite.  I call them universal, or gateway pages, where it decides the outcome from a bunch of different links that pass variables to it.  I was given the idea on 2 accounts, one from a friend, and one from here, and I started adopting the idea almost excesively, what are they really called, I wanted to look up general information about how they were developed from wikipedia.  Another thing I wanted to ask was.
2.  I have a paypal system created, but I am scared of security, I have to payment notification system setup properly, but none of the information is encrypted, by what paypal says, and by waht I know the prices could be changed, but I don't care if a few people do it occassionally I would care however if a lot of people did, is this something the average user's are going to take the time to do.

HTACCESS-
1 question.
I am still learning htaccess, I am wanting to have something set up to where all the informaiton can be viewed through one page, using a directory.  I need to figure out how to block out one directory, and make it redirect anything going there to another page.
I wanted to set the url's relative on the link like
http://www.elostandfound.info is the site
then I have the relative url set to
<a href="/view/">
But the thing is on the /view/
after that trailing forward slash I am going to append the number of the post, the id number of it, and I Wanted to set it up to where it goes to a display.php and I can use the id, to retrieve the information from that post, and make them show up.  The thing is, it's not going to be view, there are 2 types of posts.
Lost/found posts.  I need to display it properly to where that if someone wanted to see a lost one, the links are like this on the related url.
<a href="/lost/id">
and then for the found it could be
<a href="/found/id"
How do I set this up with ht access.
Link to comment
Share on other sites

The reason I was asking by the way, I was going to do this
/view/lostpost/id
/view/foundpost/id
and if I know the basic framework for doing this, but then that leads me to another question about php, I have heard about php, and working with directories, is this the same thing it's talking about or somethign else.
Link to comment
Share on other sites

question 1: I have no idea..lol

question 2: I wouldn't realy be worried that much about that because the average user would not have any clue about how to do this. Now this depends on what your customer base would consit of.

question 3: here is a set of .htaccess tutorials by Javascript.com [url=http://www.javascriptkit.com/howto/htaccess.shtml]http://www.javascriptkit.com/howto/htaccess.shtml[/url]. I am sure that you may already know most of the information here but check it out. They may point you in the right direction.

Tom
Link to comment
Share on other sites

[code]RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR]
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]
RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]
RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]
RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]
RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]
RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]
RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]
RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]
RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]
RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]
RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]
RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]
RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]
RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]
RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]
RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]
RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]
RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]
RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]
RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]
RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]
RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule ^.* - [F,L][/code]
I did find something useful, I am still looking through I learnt a lot with that, I am about to get to redirects so this may have helped, and now I can start replicating this on every site.  This will help a lot, do you know of any more names of bad bot's I can add to this list.
Link to comment
Share on other sites

ok I found something.  Is this formatted properly.  The reason I am still running this through php is to save space, you can move it if you want, but I will be changing back to php questions in just a second.

Redirect /olddirectory http://yoursite.com/newdirectory/
I saw this
so I am thinking if I put the following 2 lines of code in my htaccess file it should do what I want right.

[code]Redirect /view/foundpost http://www.elostandfound.info/displayfound.php
Redirect /view/lostpost http://www.elostandfound.info/displaylost.php[/code]
Link to comment
Share on other sites

actually it works perfectly, if I had of known it was THat easy to learn htaccess I would have started it along time ago.
One last question, is there a way to chain together file commands for isntance can I take.
[code]<Files php.ini>
  Order allow,deny
  Deny from all
</Files>[/code]
and
[code]<Files .htaccess>
order allow,deny
deny from all
</Files>[/code]
and do
[code]
<Files .htaccess php.ini>
order allow,deny
deny from all
<Files>
[/code]
I tried it but i have no way of knowing whether it will actually work or not.,
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.