Facebook Twitter Pinterest Share

vBulletin Compatible Scripts All vBulletin Compatible Scripts.


New Thread  Post Reply
lordsyntax's Avatar
lordsyntax : 50+
lordsyntax will become famous soon enough
offline Joined: Sep 2007 Posts: 132 Thanked: 6
  #11  
Unread 11-23-07
Originally Posted by Smeker View Post
Hover to view full quote
Weeeeeeeeell... vbseocp.php can't have a htaccess file.

Oh, and i've got a valid vBulletin license, but not money for vBSEO.
What i'm afraid is that they might contact Jelsoft and they might remove my license.
Yes, it can be protected by .htaccess

Another way to protect the file from being accessed would be something like this:

// $index['public'] = $index['public']; 
$phpkd['username'] = "put_username";    // Here Is the User Name 
$phpkd['password'] = "put_pass";    // Here Is The htaccess Password 

if(!$index['public']){ 
if(
$_SERVER['PHP_AUTH_USER'] != $phpkd['username'] || $_SERVER['PHP_AUTH_PW'] != $phpkd['password']){ 
Header("www-Authenticate: Basic realm=\"put_message\""); 
Header("http/1.0 401 Unauthorized");echo "<head><title>Unauthorized</title></head><body bgcolor='#000000'><center><br> 
<a href=\"../index.php\" style=\"text-decoration: none\" target=\"_blank\"> 
<font face=\"MS Sans Serif\" color=\"#FFFFFF\" size=\"8\"><b><br>Fuck off....<br></b></a></body></html>"
;exit;}} 
This will prevent the file from being opened in the browser.
Similar can be done with file-level based protection via .htaccess and .htgroups
Smeker's Avatar
Smeker : 50+
Smeker will become famous soon enough
offline Joined: Sep 2007 Posts: 99 Thanked: 21
  #12  
Unread 11-24-07
Yup... that works dude, thanks a lot.
ALilHope's Avatar
ALilHope : Member
ALilHope is on a distinguished road
offline Joined: Sep 2007 Posts: 40 Thanked: 3
  #13  
Unread 11-24-07
Originally Posted by lordsyntax View Post
Hover to view full quote
Yes, it can be protected by .htaccess

Another way to protect the file from being accessed would be something like this:

// $index['public'] = $index['public']; 
$phpkd['username'] = "put_username";    // Here Is the User Name 
$phpkd['password'] = "put_pass";    // Here Is The htaccess Password 

if(!$index['public']){ 
if(
$_SERVER['PHP_AUTH_USER'] != $phpkd['username'] || $_SERVER['PHP_AUTH_PW'] != $phpkd['password']){ 
Header("www-Authenticate: Basic realm=\"put_message\""); 
Header("http/1.0 401 Unauthorized");echo "<head><title>Unauthorized</title></head><body bgcolor='#000000'><center><br> 
<a href=\"../index.php\" style=\"text-decoration: none\" target=\"_blank\"> 
<font face=\"MS Sans Serif\" color=\"#FFFFFF\" size=\"8\"><b><br>Fuck off....<br></b></a></body></html>"
;exit;}} 
This will prevent the file from being opened in the browser.
Similar can be done with file-level based protection via .htaccess and .htgroups
So what exactly do I do with this to prevent the file from being accessed?
lordsyntax's Avatar
lordsyntax : 50+
lordsyntax will become famous soon enough
offline Joined: Sep 2007 Posts: 132 Thanked: 6
  #14  
Unread 11-24-07
Originally Posted by ALilHope View Post
Hover to view full quote
So what exactly do I do with this to prevent the file from being accessed?
Insert it into the first few lines of the file you want to protect by user authentication. Replace user/pass/realm message with something you like and you are done
Smeker's Avatar
Smeker : 50+
Smeker will become famous soon enough
offline Joined: Sep 2007 Posts: 99 Thanked: 21
  #15  
Unread 11-25-07
Another great idea would be to make it look like the file isn't there when trying to access it... to display something like this:
Not Found

The requested URL /asd (or whatever the filename is) was not found on this server.
Apache/2.2.6 (Unix) DAV/2 mod_ssl/2.2.6 OpenSSL/0.9.8e PHP/5.2.4 mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.7 Server at mydomain.com Port 80
And the title: "404 Not Found"

This would be the greatest way to defy them
C'mon lordsyntax... i know you can come up with something
ALilHope's Avatar
ALilHope : Member
ALilHope is on a distinguished road
offline Joined: Sep 2007 Posts: 40 Thanked: 3
  #16  
Unread 11-25-07
Thanks lord it works great
Where do I type in what I need to login with?

Last edited by ALilHope; 11-25-07 at 09:21 AM.
Smeker's Avatar
Smeker : 50+
Smeker will become famous soon enough
offline Joined: Sep 2007 Posts: 99 Thanked: 21
  #17  
Unread 11-25-07
Originally Posted by lordsyntax View Post
Hover to view full quote
$phpkd['username'] = "put_username";    // Here Is the User Name
$phpkd['password'] = "put_pass";    // Here Is The htaccess Password 
Replace put_username with the username you want and put_pass with the password you want.
ALilHope's Avatar
ALilHope : Member
ALilHope is on a distinguished road
offline Joined: Sep 2007 Posts: 40 Thanked: 3
  #18  
Unread 11-25-07
Didn't work... It just re-opens the login window
lordsyntax's Avatar
lordsyntax : 50+
lordsyntax will become famous soon enough
offline Joined: Sep 2007 Posts: 132 Thanked: 6
  #19  
Unread 11-25-07
then u fucked up the installation of that
Works for sure ^^
ALilHope's Avatar
ALilHope : Member
ALilHope is on a distinguished road
offline Joined: Sep 2007 Posts: 40 Thanked: 3
  #20  
Unread 11-25-07

Isn't working
New Thread  Post Reply

Thread Tools

Bookmarks
  • Submit Thread to Facebook
  • Submit Thread to Twitter
  • Submit Thread to Pinterest
  • Submit Thread to LinkedIn
  • Submit Thread to Reddit
Tags
removal, copyright, 3.1.0, vbseo
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Powered by GYSN Underground 2021