![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
So Fucking Banned
Join Date: May 2003
Posts: 1,076
|
Referring URL's protection - how to in PHP?
The following code works pretty well, but spoofing easily gets past it. Is there a stronger way to protect certain pages short of using passwords? Free, preferably.
Thanks!!! $Referer = getenv("HTTP_REFERER"); if (strchr($Referer, "URL")) { echo "text"; } elseif (strchr($Referer, "URL2")) { echo "text"; } else { echo "[script];window.location='http://www.redirectURL.com';[/script]"; } Obviously < changed to [ and > changed to ] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
So Fucking Banned
Join Date: May 2003
Posts: 1,076
|
Anyone?
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: May 2002
Location: CT
Posts: 5,246
|
what error does it give you
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
So Fucking Banned
Join Date: May 2003
Posts: 1,076
|
It actually works fine.
But I've been playing around and it just isn't secure against spoofers. I used zspoof and I got around it very easily. I was just wondered if there's anyway to make it a little more secure against spoofing? (sorry about using the word spoof quite so many times). |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Registered User
Join Date: Jun 2003
Posts: 83
|
A fair security measure is to insist that your members have
cookies enabled to view the site. Use a combo of .htaccess and cookies to verify members on login. As far as I know, there isn't really a way to stop spoofers when your only validation is through reading the Referrer. Not an expert, just my experiences. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
So Fucking Banned
Join Date: May 2003
Posts: 1,076
|
Quote:
I'll search phpbuilder.com to see how I can integrate cookies as a security measure too. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |