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
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 07-18-2003, 05:44 AM   #1
pantymaniac
Confirmed User
 
Join Date: Feb 2003
Location: In Your GF's Panty.
Posts: 1,192
i need URGENT HELP !! .htaccess problem

do you think i can .htacess my out.php
for not be called from anoher site , another server ??

Someone use my Traffic Trading Out.php From His Site
And hitbotting my trades and my sponsor like crazy

i need urgent .htacess code to
stop this fucker
__________________
This place is for RENT
pantymaniac is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-18-2003, 05:45 AM   #2
SportLife
Registered User
 
Join Date: Jul 2003
Location: The Netherlands
Posts: 94
I thinbk you could set the refferer for out.php to your own ip/server/domain.
__________________
Blow Your Mind,

SportLife.
Icq: 331073439
SportLife is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-18-2003, 05:51 AM   #3
pantymaniac
Confirmed User
 
Join Date: Feb 2003
Location: In Your GF's Panty.
Posts: 1,192
someone know how to do it ?
__________________
This place is for RENT
pantymaniac is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-18-2003, 05:51 AM   #4
SportLife
Registered User
 
Join Date: Jul 2003
Location: The Netherlands
Posts: 94
.htaccess HOWTO?
__________________
Blow Your Mind,

SportLife.
Icq: 331073439
SportLife is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-18-2003, 08:27 AM   #5
zoic
Registered User
 
Join Date: Nov 2001
Posts: 84
Put this at the start of you out.php to redirect them...


if (strpos($_SERVER['HTTP_REFERER'], 'somedomain.com') ! = = FALSE) {
header('Location: http://www.someotherdomain.com/');
exit;
}


(remove the spaces in ! = = seems to be a banned word!)

Dave

Last edited by zoic; 07-18-2003 at 08:34 AM..
zoic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-18-2003, 08:27 AM   #6
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
Don't know if this is what you're talking about but....(and please be double check my syntax as it could be bad.

do a mod.rewrtie:


RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://yoursite.com/.*$ [NC]
RewriteRule out\.php$ http://redirectto.com/ [R,NC]

// that basically says is a request to out.php isn't coming from yoursite, redirect them somewher else.


or you could lock your "out.php" file from EVERYONE by denying access to that file in .htaccess:

<FilesMatch out.php>
Order deny, allow
Deny from all
</FilesMatch>

Then, when you want to use the file's functions, say in "sendTraffic.php", and let noone else:

if(// check for host / domain coming from you)
{
include_once("/d2/mydir/out.php");
// do out code.
}
else
header("Location: http://send.fucker.elsewhere/");
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-18-2003, 08:28 AM   #7
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526

yea, Dave's is actually quicker and easier. do his.
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-18-2003, 08:30 AM   #8
darius
Registered User
 
Join Date: Sep 2001
Posts: 51
I think some people used to move their out.php into its own folder and then put an htaccess like this in the folder.

AuthUserFile /dev/null
AuthGroupFile /dev/null

RewriteEngine On

RewriteCond %{HTTP_REFERER} !^http://yourdomain.com [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com [NC]
RewriteRule /* http://www.yourdomain.com/error.html [R,L]


you just have to change the include line on your main page to point into this folder.
darius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-18-2003, 08:31 AM   #9
Calvinguy
Confirmed User
 
Join Date: Oct 2002
Location: European Union
Posts: 1,752
Don't use htaccess. Use some scripting like Dave's
Calvinguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-18-2003, 08:32 AM   #10
darius
Registered User
 
Join Date: Sep 2001
Posts: 51
nice code Dave

that would be easier
darius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-18-2003, 08:50 AM   #11
vending_machine
Confirmed User
 
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
If it really is a hitbot, keep in mind that there probably will not be any referrer info..
vending_machine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-18-2003, 09:12 AM   #12
swedguy
Confirmed User
 
Industry Role:
Join Date: Jan 2002
Posts: 7,981
Quote:
Originally posted by vending_machine
If it really is a hitbot, keep in mind that there probably will not be any referrer info..
Think about it for a sec.

Lets say that domainA.com is hitbotting you.
How does 99% of the trade scripts work? The prod/return is based on how many times a person from domainA.com clicks.

If the hitbot doesn't carry a referer, then domainA.com isn't sending productive traffic. The trade script doesn't send back to unproductive traffic.

Lets take couple of examples

Hits sent with referer:
domainA.com send 1000 hits with referer
those 1000 hits clicks 2000 times = 200% prod
The trade script willl send good traffic back to domainA.com

Hits sent without referer:
domainA.com send 1000 hits without referer
those 1000 hits clicks 2000 times, but no referer was sent so the trade script doesn't know that it's coming from domainA.com = 0% prod
The trade script will not send back anything.


So why would a hitbot not send a referer?

Last edited by swedguy; 07-18-2003 at 09:19 AM..
swedguy 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



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.