Forum Moderators: coopster

Message Too Old, No Replies

Nasty php script that I can't remove without problems to site

an old links exchange program

         

eljefe3

1:22 am on Nov 17, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I just noticed the other day that at the bottom of one of my sites are links about poker and other highly spammy topics. I then noticed I had an old link exchange program in a directory. I went to delete the directory and then a 404 or a 403 would come up for every page request on the site.

There are a few components to the script a user_cfg file, a core.inc file ( this is a big file), an htacess file and a php file which calls the core.inc file.

Any ideas as to how to remove this and allow my site to function normally?

eelixduppy

1:29 am on Nov 17, 2011 (gmt 0)



Sounds like it might be an htaccess problem given that it doesn't seem to be getting to the page that is intended. Unless there is specifically code that is sending headers to the browser on each page, then htaccess is the first place I'd look for things out of place here.

eljefe3

1:51 am on Nov 17, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's what I'm thinking also, so I removed the htaccess all together and the spam still shows up. I then added some lines to htaccess to disable php thinking that might solve it, and that produced an apache error.

Can we post the htaccess file here to get some eyeballs on it?

eljefe3

2:09 am on Nov 17, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OK I found that not only did I have an htaccess in the actual directory itself, but also in the htaccess for the site. I deleted the references to the script in the site's htaccess and the script is now disabled. Thanks for pointing me in the right direction.

eelixduppy

2:10 am on Nov 17, 2011 (gmt 0)



Depends how lengthy it is ;)

But you'd likely get better htaccess help over in the Apache forum

[edit]

Wow, that was easy. Glad you got it resolved!