![]() |
![]() |
![]() |
||||
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 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Registered User
Join Date: Jul 2003
Location: The Netherlands
Posts: 94
|
.htaccess HOWTO?
__________________
Blow Your Mind, SportLife. Icq: 331073439 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Oct 2002
Location: European Union
Posts: 1,752
|
Don't use htaccess. Use some scripting like Dave's
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Registered User
Join Date: Sep 2001
Posts: 51
|
nice code Dave
that would be easier |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
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..
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
Quote:
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? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |