GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   i need URGENT HELP !! .htaccess problem (https://gfy.com/showthread.php?t=154126)

pantymaniac 07-18-2003 05:44 AM

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 :BangBang:

SportLife 07-18-2003 05:45 AM

I thinbk you could set the refferer for out.php to your own ip/server/domain.

pantymaniac 07-18-2003 05:51 AM

someone know how to do it ?

SportLife 07-18-2003 05:51 AM

.htaccess HOWTO?

zoic 07-18-2003 08:27 AM

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

psili 07-18-2003 08:27 AM

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/");

psili 07-18-2003 08:28 AM

yea, Dave's is actually quicker and easier. do his.

darius 07-18-2003 08:30 AM

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.

Calvinguy 07-18-2003 08:31 AM

Don't use htaccess. Use some scripting like Dave's

darius 07-18-2003 08:32 AM

nice code Dave

that would be easier

vending_machine 07-18-2003 08:50 AM

If it really is a hitbot, keep in mind that there probably will not be any referrer info.. :)

swedguy 07-18-2003 09:12 AM

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?


All times are GMT -7. The time now is 11:15 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123