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)
-   -   script needed to make a paysite plugin, cant find one (https://gfy.com/showthread.php?t=848564)

pornguy292 08-17-2008 12:51 PM

script needed to make a paysite plugin, cant find one
 
Hello,

Where can I find a script to make a paysite plugin, I just want to have something that will block all access to an html page, unless its in an approved URL list.

im sure theres scripts that will do this, but I cant find one online. anyone have links to any?

Thanks!

Eriic 08-17-2008 12:55 PM

www.hotscripts.com for $725.00

k0nr4d 08-17-2008 01:00 PM

do you JUST need it to block access to the html page? or block access to the files as well as tracking bandwidth used?

If its just blocking file and html access, i can whip that up in about 2 hours for you.

pornguy292 08-17-2008 01:15 PM

nothing fancy, just a way to control who is able to view an html page.


example..
site.com/mypage.html would be blocked for everyone trying to link to it, unless it's added to an approved domain or URL list. say google.com was linking to site.com/mypage.html and I did not have them in the approved URL list, they would just get access denied, or maybe redirected to the URL of my choice.

actually I don't even care if bookmarkers can access it, just don't want a bunch of sites linking to it.

Babaganoosh 08-17-2008 01:17 PM

You don't even need a script. Assuming you are on a *nix server you can use .htaccess to handle that.

k0nr4d 08-17-2008 01:32 PM

If you ujst want to block the html page, then you could do
<?php
$array[] = 'http://www.site1.com';
$array[] = 'http://www.site2.com';
if(!in_array($_SERVER[HTTP_REFERER],$array)) { exit(); }
?>

This could of course but done more compactly code-wise but that should get you started.

just a punk 08-17-2008 01:40 PM

Better to do this with .htaccess :2 cents:

pornguy292 08-17-2008 01:49 PM

Quote:

Originally Posted by cyberxxx (Post 14621622)
Better to do this with .htaccess :2 cents:


I already talked to my tech support and they said it could not be done by htaccess.

pornguy292 08-17-2008 01:51 PM

this was the last reply from them.

"I think that it is impossible to protect the page through htaccess if you dont know all ip clients. You should ask php programmers to develop some php script for it."

pornguy292 08-17-2008 01:56 PM

Quote:

Originally Posted by k0nr4d (Post 14621593)
If you ujst want to block the html page, then you could do
<?php
$array[] = 'http://www.site1.com';
$array[] = 'http://www.site2.com';
if(!in_array($_SERVER[HTTP_REFERER],$array)) { exit(); }
?>

This could of course but done more compactly code-wise but that should get you started.


what is that supposed to do? I added it to the page but it's not doing anything

pornguy292 08-17-2008 05:29 PM

anyone? please :)

SkeetSkeet 08-17-2008 06:33 PM

hit up strongbox, they can set this up for you :) tell um skeet sent you :) he will treat you nice :)


All times are GMT -7. The time now is 12:44 AM.

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