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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-15-2003, 01:31 PM   #1
Andy
Confirmed User
 
Join Date: Jan 2001
Location: A nice little folder on some C drive inside a huge server ;)
Posts: 460
PHP guys .. how to detect nocookie traffic ?

the topic's name says it all .. I need to know who does have cookies enabled and whoe doesn't ..
Andy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-15-2003, 01:34 PM   #2
jwerd
Confirmed User
 
Industry Role:
Join Date: Jun 2003
Location: Costa Rica
Posts: 1,953
You could log all the ip addreses daily, and then at the end of the day have them deleted. Each ip address, uniquely, would count as a hit. Then at the end of the day, tally up everything and delete that file via cron job

simple stuff.
__________________
Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com
jwerd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-15-2003, 01:42 PM   #3
nibbi
Confirmed User
 
Join Date: Sep 2002
Location: Nashville, TN
Posts: 104
when someone comes to the page, set a cookie and try to read it back. If you can read it, then their cookies are enabled.

PHP Code:
<?php
setcookie
("foo","bar"); 
if(
$_COOKIE['foo']) {
    echo 
"Cookie is enabled"
} else {
    echo 
"No Cookies enabled";
}
?>
nibbi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-15-2003, 01:42 PM   #4
plsureking
bored
 
plsureking's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: PORNCMS.com
Posts: 4,821
http://www.codingclick.com/article.php/aid/19
__________________
PornCMS / low cost large library paysite management
plsureking is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-15-2003, 02:41 PM   #5
richard
Confirmed User
 
Join Date: Feb 2001
Location: UK
Posts: 543
Here's one i made earlier:

http://www.ip-sorter.com/php/cookie_test.php.txt

remove the .txt extension to demo it.
__________________
richard is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.