Ninjakreborn Posted August 1, 2006 Share Posted August 1, 2006 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 likehttp://www.elostandfound.info is the sitethen 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. Quote Link to comment https://forums.phpfreaks.com/topic/16204-3-quick-questionsphp-idea-related1-about-htaccess/ Share on other sites More sharing options...
Ninjakreborn Posted August 1, 2006 Author Share Posted August 1, 2006 The reason I was asking by the way, I was going to do this/view/lostpost/id/view/foundpost/idand 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. Quote Link to comment https://forums.phpfreaks.com/topic/16204-3-quick-questionsphp-idea-related1-about-htaccess/#findComment-67017 Share on other sites More sharing options...
tomfmason Posted August 1, 2006 Share Posted August 1, 2006 question 1: I have no idea..lolquestion 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 Quote Link to comment https://forums.phpfreaks.com/topic/16204-3-quick-questionsphp-idea-related1-about-htaccess/#findComment-67019 Share on other sites More sharing options...
Ninjakreborn Posted August 1, 2006 Author Share Posted August 1, 2006 [code]RewriteEngine On RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR] RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:[email protected] [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. Quote Link to comment https://forums.phpfreaks.com/topic/16204-3-quick-questionsphp-idea-related1-about-htaccess/#findComment-67028 Share on other sites More sharing options...
Ninjakreborn Posted August 1, 2006 Author Share Posted August 1, 2006 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 thisso 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.phpRedirect /view/lostpost http://www.elostandfound.info/displaylost.php[/code] Quote Link to comment https://forums.phpfreaks.com/topic/16204-3-quick-questionsphp-idea-related1-about-htaccess/#findComment-67033 Share on other sites More sharing options...
Ninjakreborn Posted August 1, 2006 Author Share Posted August 1, 2006 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,denydeny from all</Files>[/code]and do[code]<Files .htaccess php.ini>order allow,denydeny from all<Files>[/code]I tried it but i have no way of knowing whether it will actually work or not., Quote Link to comment https://forums.phpfreaks.com/topic/16204-3-quick-questionsphp-idea-related1-about-htaccess/#findComment-67037 Share on other sites More sharing options...
Ifa Posted August 1, 2006 Share Posted August 1, 2006 I have heard of peole that talk to themselves, but this is funny :D Quote Link to comment https://forums.phpfreaks.com/topic/16204-3-quick-questionsphp-idea-related1-about-htaccess/#findComment-67038 Share on other sites More sharing options...
Ninjakreborn Posted August 1, 2006 Author Share Posted August 1, 2006 I do that a lot here, it helps me think. most of the time even if someone doesn't respond, me talking with myself for a few hours it ends up making sense, adn I figure it out anyway.Sometimes one is one's own best friend. Quote Link to comment https://forums.phpfreaks.com/topic/16204-3-quick-questionsphp-idea-related1-about-htaccess/#findComment-67041 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.