How do I get the url to stay the same when using a redirect script?
View Single Post
04-02-2009, 02:32 PM
Join Date: Mar 2009
Location: Springfield, IL USA
Spammers and hackers have ways of spoofing the HTTP referrer. It's actually not really that difficult to do. Trust me, I know. I've been there, done that.
I own a rather large website (over 50,000 pages wide) and it's quite popular. It'll be 10 years old this year, and in that time I've ran up against just about everything you can imagine.
One guy put my entire site into his web-based proxy and it was indexed by Google that way (which is how I found out about it). Of course Google took care of the problem real fast -- and having access to a few high level employees there doesn't hurt me either. ;)
Then there was another guy that kept requesting nonexistent URLs on my site using an automated script to hammer my server with requests at 1 second intervals 24 hours a day. I put a stop to that one real quick too by writing some code to do host lookup on the fly and if it's a request from that guy's site my dynamic codes return the request right back to him. So, in essence, he ends up hammering his own site with his own script for nonexistent URLs in 1 second intervals 24 hours a day. He quit after 2 days. I have left the codes there just in case he changes his mind. ;)
Then, another guy wrote this automated rank checking software and listed my site in it so his users could check their ranks in my SERPs. I then changed the fields on my search script to output a different query string based on known data at different intervals. It would cause his program to break, and by the time he had it fixed again my output query strings had of course changed again. He couldn't keep up, so he finally gave up and removed my site from his program. I still have the codes in place in case he changes his mind. ;)
OK, now enough of my history ;P Let's move on to your situation. There's a much easier, better, and safer way to do what you want to do. I'll post step-by-step instructions with codes in about an hour. It's just now 9:30 AM here and I'm just getting started working and have a few tasks to complete first.
After I post the codes and instructions, if there's anything you have any questions about, please feel free to ask and I'll help you as much as possible.
One last thing, are you using PHP5 or PHP4?
The Following User Says Thank You to WebSavvy For This Useful Post:
View Public Profile
Send a private message to WebSavvy
Find More Posts by WebSavvy